extjs 新增對應的元件

2021-08-06 07:12:16 字數 1809 閱讀 5155

1.

新增按鈕:

margin: '10 20 0 80',

xtype: 'button',

text: '

搜尋',

width: 80,

itemid:'queryitemid',

// enabletoggle:true,

handler:dciglobecoordinate.startquery

2.新增文字框:

xtype: 'textfield',

margin: '10 0 0 5',

fieldlabel: 'x

座標',

editable: false,

width: 220,

labelwidth: 40,

allowblank:false,        //

不允許為空

blanktext: '

請輸入x

座標',

regex:/^\d+(\.\d)?$/,//允許出現小數點後20位

regextext: '

請輸入數字',

shadow: false,

listeners:

}新增時間

field

xtype: 'datefield',

margin: '3 0 0 5',

itemid:'dateitemid',

fieldlabel: '

日期',

mindate:'1/1/1800',

format: 'y/m/d',

invalidtext: '

日期格式無效',

editable: false,

width: 235,

labelwidth: 60,

shadow:false,

listeners:

新增數字

field

xtype: 'timefield',

margin: '3 0 0 5',

itemid:'timeitemid',

fieldlabel: '

時間',

invalidtext: '

時間格式無效',

format: 'h:i:s',

increment: 30,

editable: false,

width: 235,

labelwidth: 60,

shadow: false,

listeners:

3.新增

checkbox

xtype: 'checkbox',

//padding:10,

margins:'0 0 0 10',

itemid:'openundergroundmodeitemid',

//bind: '

//},

checked:true,

boxlabel: '

地下模式',

handler:dciglobeunderground.openundergroundmode

4.新增進度條

xtype:'slider',

itemid:'sliderid',

margin:'10 5 10 5',

fieldlabel: '

透明度',

minvalue:0,

maxvalue:255,

width:211,

labelwidth: 60,

shadow:false,

listeners:

}

新增對應的指令碼

prompt eas cj401 boe db oracle tables full install sie.sie deduction invoices.sql eas cj401 boe db oracle tables full install sie.sie deduction invoic...

遍歷Dom節點,新增對應行

1.取得當前節點的所有子結點 var childnodes osrcrow.getattribute domnode childnodes for var i 0 iaddnewrowinonetable tb2 childnode 2.實現addnewrowinonetable的方法 functi...

在QM中新增對應工程的快捷方式

本文是使用qm的外部工具功能編譯代的補充篇。在使用qm的外部工具功能編譯代中,因為mdk沒有提供可以開啟uvprojx檔案的命令列工具,所以將編譯過程分成了兩步 編譯 顯示資訊 實現得比較累贅。如果可以通過qm直接開啟mdk,然後在mdk裡手動進行設定 編譯 或者在qm中直接開啟對應的source ...