如何让面板内的选择字段工作(sencha touch)

发布于 2024-11-04 06:53:14 字数 832 浏览 5 评论 0原文

我尝试在浮动的模态居中面板中获得一个选择字段,但是当我单击选择时,“母”面板将关闭,只有选择字段的选择面板保留。

if (!this.popup) {
                this.popup = new Ext.Panel({
                    floating: true,
                    modal: true,
                    centered: true,
                    width: 390,
                    height: heightOfPopUp,
                    styleHtmlContent: true,
                    scroll: 'vertical',
items: [{
                                xtype: 'selectfield',
                                name: 'options',
                                options: [
                                    {text: 'This is just a big select',  value: '1'},
                                    {text: 'Another select item', value: '2'}
                                ]
                          }]... 

我做错了什么?

谢谢!

I try to get a selectfield inside a floating, modal centerd panel working but when I click to select, the "mother"-panel closes and only the selection-panel of the selectfield stays.

if (!this.popup) {
                this.popup = new Ext.Panel({
                    floating: true,
                    modal: true,
                    centered: true,
                    width: 390,
                    height: heightOfPopUp,
                    styleHtmlContent: true,
                    scroll: 'vertical',
items: [{
                                xtype: 'selectfield',
                                name: 'options',
                                options: [
                                    {text: 'This is just a big select',  value: '1'},
                                    {text: 'Another select item', value: '2'}
                                ]
                          }]... 

what am I doing wrong?

thnx!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦在夏天 2024-11-11 06:53:14

尝试将其添加到面板选项中:

hideOnMaskTap: false,

Try adding this to the panel options:

hideOnMaskTap: false,
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文