当前位置: 代码迷 >> Web前端 >> picker 添title
  详细解决方案

picker 添title

热度:638   发布时间:2012-11-23 22:54:33.0
picker 加title

var picker = Ext.create('Ext.Picker', {
            useTitles: true,
            slots: [{
                name: 'months',
                title: 'Months',
                data: [{
                    text: 'January',
                    value: 0
                }, {
                    text: 'February',
                    value: 1
                }, {
                    text: 'March',
                    value: 2
                }, {
                    text: 'April',
                    value: 3
                }, {
                    text: 'May',
                    value: 4
                }, {
                    text: 'June',
                    value: 5
                }, {
                    text: 'July',
                    value: 6
                }, {
                    text: 'August',
                    value: 7
                }, {
                    text: 'September',
                    value: 8
                }, {
                    text: 'October',
                    value: 9
                }, {
                    text: 'November',
                    value: 10
                }, {
                    text: 'December',
                    value: 11
                }] // data
            }]
});
Ext.Viewport.add(picker);
picker.show();
  相关解决方案