请帮助我,如何在字段中插入组合框?
text: "Combo need is here!!!", width: 100, dataIndex: '', sortable: true
这里需要组合框...
关于 extjs 的材料很少:(
还有一个问题,是否适合移动界面的 extjs?我有一个网店,实用用extjs的手机界面吗?
我的代码:
Ext.onReady(function(){
Ext.define('User', {
extend: 'Ext.data.Model',
fields: [
{name: 'id', type: 'int'},
{name: 'day', type: 'string'},
{name: 'time', type: 'string'},
{name: 'what', type: 'string'},
{name: 'combo', type: 'string'}
]
});
var store = Ext.create('Ext.data.Store', {
model: 'User',
proxy: {
type: 'ajax',
url: 't.php',
reader: {
type: 'json'
}
}
});
var grid = Ext.create('Ext.grid.Panel', {
store: store,
columns: [
{
text: "Day", flex: 1, dataIndex: 'day', sortable: true
},
{
text: "Time", width: 115, dataIndex: 'time', sortable: true
},
{
text: "sourse", width: 100, dataIndex: 'what', sortable: true
},
{
text: "Combo need is here!!!", width: 100, dataIndex: '', sortable: true // HERE!!!
}
],
height:700,
renderTo: 'grid-example'
});
store.load();
});