Over a million developers have joined DZone.

Creating a Sheet in Sencha Touch

DZone's Guide to

Creating a Sheet in Sencha Touch

· Web Dev Zone ·
Free Resource

Learn how error monitoring with Sentry closes the gap between the product team and your customers. With Sentry, you can focus on what you do best: building and scaling software that makes your users’ lives better.

"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 () {

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


What’s the best way to boost the efficiency of your product team and ship with confidence? Check out this ebook to learn how Sentry's real-time error monitoring helps developers stay in their workflow to fix bugs before the user even knows there’s a problem.


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}