【问题标题】:Sencha Touch: Navigation View ui item won't changeSencha Touch:导航视图 ui 项不会改变
【发布时间】:2013-02-19 19:13:34
【问题描述】:

我正在尝试将导航视图的“ui”属性设置为亮,但它只显示在深色主题中。这是我的看法。我错过了什么?

Ext.define('VisitTCMIndy.view.Social', {
extend: 'Ext.navigation.View',
xtype: 'socialcard',

config: {
    iconCls: 'chat',
    title: 'Social',
    layout: 'card',
    ui: 'light',
    items: [
        {
            xtype: 'panel',
            title: 'Social',
            layout: 'vbox',
            items: [
                {
                    xtype: 'panel',
                    layout: 'hbox',
                    flex: 1,
                    items: [
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Facebook',
                            src: "resources/images/facebookbutton.png",
                            flex: 1
                        },
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Twitter',
                            src: "resources/images/twitterbutton.png",
                            flex: 1
                        }
                    ]
                },
                {
                    xtype: 'panel',
                    layout: 'hbox',
                    flex: 1,
                    items: [
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Pinterest',
                            src: "resources/images/pinterestbutton.png",
                            flex: 1
                        },
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Instagram',
                            src: "resources/images/instagrambutton.png",
                            flex: 1
                        }
                    ]
                },
                {
                    xtype: 'button',
                    text: 'Take a Picture',
                    style: 'margin:3%'
                }
            ]
        }
    ]

}
});

【问题讨论】:

    标签: sencha-touch-2


    【解决方案1】:

    如果你的意思是要改变导航视图导航栏的ui,那么应该这样做:

    config: {
      iconCls: 'chat',
      title: 'Social',
      layout: 'card',
      navigationBar: {
        ui: 'dark'
      }
    ...
    

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多