ActionSheet
An actionsheet are used to display the popup message with list of buttons.
The difference between ActionSheet and Sheet is ActionSheet are docked at the bottm of the screen the default type of items are button. Sheet is a floated model panel widget
While creating the actionsheet no need to mention xtype: 'button'. There are lot config option to dispaly actionsheet in sencha.
var actionSheet = Ext.create('Ext.ActionSheet', {
items: [
{
text: 'Delete draft',
handler : function(){
actionSheet.hide();
}
},
{
text: 'Save draft',
handler : function(){
actionSheet.save();
}
},
{
text: 'Cancel',
ui : 'confirm',
handler : function(){
actionSheet.hide();
}
}
]
});
Ext.Viewport.add(actionSheet);
actionSheet.show();
An actionsheet are used to display the popup message with list of buttons.
The difference between ActionSheet and Sheet is ActionSheet are docked at the bottm of the screen the default type of items are button. Sheet is a floated model panel widget
While creating the actionsheet no need to mention xtype: 'button'. There are lot config option to dispaly actionsheet in sencha.
var actionSheet = Ext.create('Ext.ActionSheet', {
items: [
{
text: 'Delete draft',
handler : function(){
actionSheet.hide();
}
},
{
text: 'Save draft',
handler : function(){
actionSheet.save();
}
},
{
text: 'Cancel',
ui : 'confirm',
handler : function(){
actionSheet.hide();
}
}
]
});
Ext.Viewport.add(actionSheet);
actionSheet.show();
No comments:
Post a Comment