1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- Ext.define('uas.view.form.basic.Panel', {
- extend: 'Ext.form.Panel',
- xtype: 'basic-form',
- layout:'column',
- bodyPadding: 40,
- defaults:{
- columnWidth:1,
- margin:'10 0 0 0'
- },
- items: [{
- xtype: 'textfield',
- name: 'textfield1',
- fieldLabel: 'Text field',
- value: 'Text field value'
- }, {
- xtype: 'hiddenfield',
- name: 'hidden1',
- value: 'Hidden field value'
- },{
- xtype: 'textfield',
- name: 'password1',
- inputType: 'password',
- fieldLabel: 'Password field'
- },{
- xtype: 'filefield',
- name: 'file1',
- fieldLabel: 'File upload'
- }, {
- xtype: 'textareafield',
- name: 'textarea1',
- fieldLabel: 'TextArea',
- value: 'Textarea value'
- }, {
- xtype: 'displayfield',
- name: 'displayfield1',
- fieldLabel: 'Display field',
- value: 'Display field <span style="color: "green";">value</span>'
- }, {
- xtype: 'numberfield',
- name: 'numberfield1',
- fieldLabel: 'Number field',
- value: 5,
- minValue: 0,
- maxValue: 50
- }, {
- xtype: 'checkboxfield',
- name: 'checkbox1',
- fieldLabel: 'Checkbox',
- boxLabel: 'box label'
- }, {
- xtype: 'radio',
- name: 'radio1',
- value: 'radiovalue1',
- fieldLabel: 'Radio buttons',
- boxLabel: 'radio 1'
- }, {
- xtype: 'radio',
- name: 'radio1',
- value: 'radiovalue2',
- fieldLabel: '',
- labelSeparator: '',
- hideEmptyLabel: false,
- boxLabel: 'radio 2'
- }, {
- xtype: 'datefield',
- name: 'date1',
- fieldLabel: 'Date Field'
- }, {
- xtype: 'timefield',
- name: 'time1',
- fieldLabel: 'Time Field',
- minValue: '1:30 AM',
- maxValue: '9:15 PM'
- }]
- });
|