O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a sheet of buttons with ActionSheet

In an application, multiple actions can be performed on an entity. For example, on an inbox item, a user can reply to the sender, reply to all, delete the e-mail, and view the complete mail. Moreover, these actions may vary based on the entity in the context. To handle this kind of scenario, the Sencha Touch framework provides the ActionSheet component, which allows us to show a sheet of buttons that can help the user trigger different actions. This recipe shows us how to create ActionSheet and use it in an application.

Getting ready

Make sure you have set up your development environment by following the recipes outlined in Chapter 1, Gear Up for the Journey.

Make sure you have created the ch06 folder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required