[code="java"]var movie_form = new Ext.FormPanel({
url : 'movie-form-submit.php',
renderTo : 'haha',
frame : true,
title : 'Movie Information Form',
width : 250,
items : [{
xtype : 'textfield',
fieldLabel : 'Title',
name : 'title',
allowBlank : false
}, {
xtype : 'textfield',
fieldLabel : 'Director',
name : 'director',
vtype : 'name'
}, {
xtype : 'datefield',
fieldLabel : 'Released',
name : 'released',
disabledDays : [1, 2, 3, 4, 5]
}, {
xtype : 'radio',
fieldLabel : 'radio',
name : 'filmed_in',
boxLabel : 'Color'
}, {
xtype : 'radio',
hideLabel : false,
labelSeparator : '',
name : 'filmed_in',
boxLabel : 'Black & White'
}, {
xtype : 'checkbox',
fieldLabel : 'Bad Movie',
name : 'bad_movie'
}, {
xtype : 'combo',
name : 'genre',
fieldLabel : 'Genre',
mode : 'local',
store : genres,
displayField : 'genre_name',
width : 120
}
]
});
[/code]
刚入门EXTJS,看了官方的API 和一些例子,我一直很好奇 每一个控件的属性,像[quote]new Ext.FormPanel[/quote],
它的[quote]url ,renderTo ,frame 这些属性在API 中都没看到,有没有大牛知道这些命名和规范在哪有所定义,还有具体使用参数[/quote]
xtype : 'radio' 的 labelSeparator : ''又是做什么用的?
[b]问题补充:[/b]
[quote]url ,renderTo ,frame 这些属性在API 中都没看到,有没有大牛知道这些命名和规范在哪有所定义,还有具体使用参数[/quote]
主要是这个问题,有人知道吗?