在ExtJS 4.2版本中,树节点的默认字段有24个,具体查看Ext.data.NodeInterface中的定义。
如果要在树节点中使用自定义的字段,有两种方式实现:
1.在定义树的对象中使用fields配置项定义。
2.在树的Model中定义
?
fields: [
	{name: 'id', type: 'string'},
	'text',    //text属性必须定义
	'action',
	'icon',
	'leaf'
]
?
日期:2014-05-16 浏览次数:20384 次
在ExtJS 4.2版本中,树节点的默认字段有24个,具体查看Ext.data.NodeInterface中的定义。
如果要在树节点中使用自定义的字段,有两种方式实现:
1.在定义树的对象中使用fields配置项定义。
2.在树的Model中定义
?
fields: [
	{name: 'id', type: 'string'},
	'text',    //text属性必须定义
	'action',
	'icon',
	'leaf'
]
?