Programming/ExtJS
[ExtJS] Form Field
prinha
2020. 11. 25. 14:25
728x90
반응형
Ext.create("Ext.form.Panel") - 기본 선언만 해도 validation check
Field Types
examples.sencha.com/extjs/6.5.1/examples/kitchensink/?classic#form-fields
Sencha | Examples
examples.sencha.com
docs.sencha.com/extjs/6.5.3/guides/components/forms.html
Forms | Ext JS 6.5.3
Ext JS Classic - API documentation from Sencha
docs.sencha.com
Ext.onReady(function(){
Ext.create("Ext.panel.Panel",{
width:500,
height:350,
title:"폼필드",
renderTo:Ext.getBody(),
items:[{
xtype: 'textfield',
allowBlank : false,
emptyText: '아이디'
},{
xtype:'textfield',
inputType: 'password',
emptyText:'패스워드'
},{
xtype: 'datefield',
format : 'y-m-d'
},{
xtype: 'numberfield',
minValue:0,
maxValue:10
},{
xtype: 'timefield'
},{
xtype: 'filefield',
buttonOnly: true
},{
xtype: 'checkboxfield',
boxLabel: '아이디 기억'
},{
xtype: 'radiofield',
name : 'sex',
boxLabel : '남'
},{
xtype: 'radiofield',
name : 'sex',
boxLabel : '여'
},{
xtype: 'slider',
width:300,
value:50
}]
});
});
728x90
반응형