我需要創建一個包含按鈕的錨定彈出窗口,當點擊一個新的視圖時創建。請參閱下面的屏幕截圖(從yelp移動應用程序獲取)。我一直沒能找到這個功能的例子 - 由於Sencha Touch帶按鈕的固定彈出窗口
0
A
回答
0
我不KNW如何創建一個錨定彈出窗口,但你可以嘗試在煎茶觸摸-2實施Action Sheet。
它不固定,但它可以包含可以提供功能的按鈕。
2
0
This issue can be resolve by calling a panel inside a container.
//添加container1.js鑑於
Ext.define('Sencha.view.container1', {
extend: 'Ext.Container',
alias: 'widget.container1',
xtype: 'container1',
//fullscreen: true,
config: {
scrollable: true,
height: 50,
items: [
{
docked: 'top',
xtype: 'titlebar',
items: [
{
xtype: 'button',
ui: 'confirm',
text: 'Back',
itemId: 'button113',
id: 'rightButton',
handler: function() {
var sh = Ext.create('Sencha.view.panel1', {
extend: 'Ext.Panel',
fullscreen:true,
});
sh.show();
}
}
]
}
]
}
});
//添加panel1.js也查看
Ext.define("Sencha.view.panel1", {
extend: "Ext.Panel",
alias: "widget.panel1",
config: {
html: 'Floating Panel',
//left: 0,
//padding: 50,
items: [
{
xtype: 'button',
ui: 'action',
height: 20,
text: 'Edit Bussiness',
},
{
xtype: 'button',
ui: 'action',
height: 20,
text: 'Add Photo',
},
{
xtype: 'button',
ui: 'action',
height: 20,
text: 'Add BookMark',
},
{
xtype: 'button',
ui: 'action',
height: 20,
text: 'Check In',
},
{
xtype: 'button',
ui: 'action',
height: 20,
text: 'Write Review',
},
{
xtype: 'button',
ui: 'action',
height: 20,
text: 'Make Reservation',
},
{
xtype: 'button',
ui: 'action',
height: 20,
text: 'Cancel',
handler: function() {
this.up('panel').hide();
}
},
],
listeners: [
{ hide: { fn: function(){ this.destroy();} }},
]
}
});
//App.js
Ext.application({
name: 'Sencha',
controllers: ['Main'],
views: ['container1', 'panel1'], //add all the view files here which you wants to call on any other panel so that the instance of it will be created.
stores: [],
models: [],
launch: function() {
Ext.Viewport.add({
xtype: 'container1'
});
}
});
這個工作對我來說會給你相同的輸出。此外,在取消按鈕它會隱藏面板希望這會幫助你。 謝謝
相關問題
- 1. 固定位置的彈出窗口的CSS關閉按鈕
- 2. Sencha Touch:按鈕
- 3. 關閉彈出窗口按鈕上的彈出窗口
- 4. 彈出窗口中的固定元素
- 5. sencha touch - 在彈出窗口中選擇字段
- 6. Sencha Touch 2固定標題
- 7. 點擊按鈕淡出彈出窗口?
- 8. 彈出窗口中的單選按鈕
- 9. Sencha Touch和Facebook按鈕
- 10. 彈出窗口不會指向按鈕
- 11. 彈出窗口最大化按鈕
- 12. Kivy彈出窗口和按鈕文本
- 13. BootstrapX彈出窗口和關閉按鈕
- 14. Facebook發送按鈕彈出窗口
- 15. 點擊按鈕彈出窗口
- 16. 編輯彈出窗口按鈕
- 17. 如何關閉彈出式窗口中的按鈕的自舉彈出窗口?
- 18. 帶彈出窗口的JavaScript彈出窗口
- 19. JPanel - 帶按鈕的窗口
- 20. 如何在點擊彈出窗口上的按鈕時關閉彈出窗口?
- 21. 如何在關閉該彈出窗口的彈出窗口上製作按鈕
- 22. 使用彈出窗口中的按鈕關閉Safari彈出窗口
- 23. 按鈕點擊裏面的jquery彈出窗口產生窗口
- 24. 從iFrame按鈕的父窗口彈出窗口
- 25. 如何打開鏈接按鈕的彈出窗口並使用彈出窗口中的按鈕關閉它?
- 26. 與ASP.Net按鈕彈出窗口點擊,不彈出窗口阻止程序
- 27. 當第二次彈出窗口時,窗口按鈕會消失。
- 28. Facebook like按鈕:彈出窗口中的預定義文本
- 29. 在GridView列的按鈕上綁定彈出窗口
- 30. Sencha-touch:帶有按鈕自動高度的工具欄
動作表看起來很有前途,但這是一個平板應用程序,停靠在屏幕底部是不太理想的用戶界面 – Arkady
請參閱:http://stackoverflow.com/questions/7138899/sencha-touch - 使用 - actionsheet – Arkady