Over a million developers have joined DZone.

Creating a Sheet in Sencha Touch

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

"Sheet" is a floating model panel widget that animates on top of the view. The image below shows the class diagram of Ext.Sheet class. Sheet is subclass of Panel, which extends the functionality and provides flexibility to add a stack of other widgets to it. It is orientation-awareand it is a generic class for ActionSheet, Picker and MessageBox.

 Sheet Class Diagram

The example below shows the usage of Sheet in action.

 

// Creating a Sheet Instance using Ext.Sheet Class constructor
var sheet = new Ext.Sheet({
  height  : 70,
  stretchX: true,
  stretchY: true,
  layout: { type: 'hbox', align: 'stretch'},
  items: [{html: ""}],
        dockedItems: [{
            dock : 'right',
            xtype: 'button',
            text : 'Close',
            iconCls : 'delete',
      iconMask : true,
            handler: function () {
             sheet.hide();             
            }
        }]
 });

 We can call show() method to push the sheet to appear. Here is the output of the above code.

 sheet-output

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}