FR.CheckBoxEditor
Hierarchy
Subclasses
Files
下拉复选框控件
var $root = $('<div>').css({position : 'absolute', top : 5, left : 40}).appendTo('body');
var editor = new FR.CheckBoxEditor({
renderEl : $root,
directEdit : true,
allowBlank : true,
widgetUrl : null, //同下拉框
returnArray : true, //返回值是否以数组形式
delimiter : ',', //字符串返回值的分隔符
startSymbol : '', //起始符
endSymbol : '', //结束符
fontSize : 14,
width : 120,
height : 24,
maxCount : 10,
items : [
{text : "111", value : "aaa"},
{text : "222", value : "bbb"},
{text : "333", value : "ccc"},
{text : "444", value : "ddd"}
]
});
Defined By
Config options
options : JSON
属性配置 ...
属性配置
- delimiter : String (optional)
结果分隔符
Defaults to:
','
- startSymbol : String (optional)
起始符
Defaults to:
''
- endSymbol : String (optional)
结束符
Defaults to:
''
Overrides: FR.ComboBoxEditor.options
Defined By
Properties
Defined By
Methods
根据显示值获取实际值 ...
根据显示值获取实际值
Parameters
- records : Object
实际值
- text : Object
显示值
- index : Object
序号
Returns
- *
实际值
_onEnterPressed( )private
键盘按键选定一个item后的事件 ...
键盘按键选定一个item后的事件
Overrides: FR.BaseComboBoxEditor._onEnterPressed
considerAllowBlankLength( ) : number
返回加入允许为空一项的下拉列表的总元素个数 ...
返回加入允许为空一项的下拉列表的总元素个数
Returns
- number
返回个数
fireEvent( eventName ) : Boolean
触发绑定过的事件 * * ...
触发绑定过的事件 * *
Parameters
- eventName : String
要触发的事件的名字 *
Returns
- Boolean
如果事件函数返回false,则返回false并中断其他同名事件的执行,否则执行所有的同名事件并返回true
initContent( $dom, showValue, index )
isStringTypeNumber( o ) : boolean
"24"这种形式的 * ...
"24"这种形式的 *
Parameters
- o : Object
宽度或者高度 *
Returns
- boolean
是否是"24"这种形式
on( eventName, fn )
once( eventName, fn )
un( eventName, fn )