Combobox属性及使用方法详解
- Ext.onReady(function(){
-
- Ext.QuickTips.init();
- Ext.form.Field.prototype.msgTarget = 'side';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- var localStore = new Ext.data.SimpleStore({
- fields: ["num"],
- data: [["2"],["1"],["5"],["3"],["9"],["6"]],
-
- sortInfo:{field:"num"}
- });
-
- localStore.sort('num', 'ASC');
- var localCb = new Ext.form.ComboBox({
- store: localStore,
- renderTo: 'combobox',
- valueField :"num",
- displayField: "num",
- hiddenName:'number',
- mode: 'local',
- forceSelection: true,
- blankText:'-- 请选择 --',
- emptyText:'-- 请选择 --',
- editable: true,
- selectOnFocus:true,
- triggerAction: 'all',
- id:'localCombo',
- anchor:'95.2%',
- typeAhead: true,
- fieldLabel: '数字'
- });
-
-
- var ExtSelect=new Ext.form.ComboBox({
- transform:"select",
- width:200
- });
- });
-
-
- Ext.onReady(function(){
-
- Ext.QuickTips.init();
- Ext.form.Field.prototype.msgTarget = 'side';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- var localStore = new Ext.data.SimpleStore({
- fields: ["num"],
- data: [["2"],["1"],["5"],["3"],["9"],["6"]],
-
- sortInfo:{field:"num"}
- });
-
- localStore.sort('num', 'ASC');
- var localCb = new Ext.form.ComboBox({
- store: localStore,
- renderTo: 'combobox',
- valueField :"num",
- displayField: "num",
- hiddenName:'number',
- mode: 'local',
- forceSelection: true,
- blankText:'-- 请选择 --',
- emptyText:'-- 请选择 --',
- editable: true,
- <SPAN id=TheWorldHiLightStyleID style="BACKGROUND: #ffff00; COLOR: #000000">selectOnFocus</SPAN>:true,
- triggerAction: 'all',
- id:'localCombo',
- anchor:'95.2%',
- typeAhead: true,
- fieldLabel: '数字'
- });
-
-
- var ExtSelect=new Ext.form.ComboBox({
- transform:"select",
- width:200
- });
- });
-
- <div id="combobox"></div>
- <select id="select">
- <option value="1">男</option>
- <option value="2">女</option>
- <option value="3">人妖</option>
- </select>
|