- /**??
- ?*?@class?Ext.app.ColorPicker??
- ?*?@extends?Ext.container.Container??
- ?*?定义颜色选取类??
- ?*/??
- ???
- Ext.define?('Ext.app.ColorPicker',??
- {??
- ????extend:?'Ext.container.Container',248); line-height:18px"> ????alias:?'widget.smmcolorpicker',248); line-height:18px"> ????layout:?'hbox',248); line-height:18px"> ????initComponent:function()???
- ????{??
- ????????var?mefieldLabel?=?this.fieldLabel;??
- ????????var?mename?=?this.name;??
- ????????var?meheight?=?this.height;??
- ????????var?meid?=?this.id;??
- ????????this.items?=???
- ????????[??
- ????????????{??
- ????????????????xtype:?'textfield',248); line-height:18px"> ????????????????height:?meheight,??
- ????????????????id:meid+'x',248); line-height:18px"> ????????????????fieldLabel:mefieldLabel,248); line-height:18px"> ????????????????name:?mename,248); line-height:18px"> ????????????????flex:?1,248); line-height:18px"> ????????????????listeners:??
- ????????????????{??
- ????????????????????change:function(me,?newValue,?oldValue)??
- ????????????????????{??
- ????????????????????????me.bodyEl.down('input').setStyle('background-image',?'none');??
- ????????????????????????me.bodyEl.down('input').setStyle('background-color',?newValue);??
- ????????????????????}??
- ????????????????}??
- ????????????},248); line-height:18px"> ????????????????xtype:'button',248); line-height:18px"> ????????????????width:18,248); line-height:18px"> ????????????????menu:??
- ????????????????????xtype:'colormenu',248); line-height:18px"> ????????????????????listeners:???
- ????????????????????????select:?function(picker,?color)???????
- ????????????????????????{??
- ????????????????????????????var?amclr?=?Ext.getCmp(meid+'x');??
- ????????????????????????????amclr.setValue('#'+color);??
- ????????????????????????}??
- ????????????}??
- ????????];??
- ??????????
- ????????Ext.app.ColorPicker.superclass.initComponent.call(this);??
- ????}??
- }); ?
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|