Skip to content

Latest commit

 

History

History
205 lines (155 loc) · 6.76 KB

API.md

File metadata and controls

205 lines (155 loc) · 6.76 KB

Classes

ax5combobox

Objects

jQueryExtends : object

ax5combobox jquery extends

ax5combobox

Kind: global class
Author: tom@axisj.com

ax5combobox.setConfig(config) ⇒ ax5combobox

Preferences of combobox UI

Kind: static method of ax5combobox

Param Type Description
config Object 클래스 속성값

Example

ax5combobox.bind(item) ⇒ ax5combobox

bind combobox

Kind: static method of ax5combobox

Param Type
item Object
[item.id] String
[item.theme] String
[item.multiple] Boolean
item.target Element
item.options Array.<Object>

ax5combobox.open(boundID, [tryCount]) ⇒ ax5combobox

open the optionBox of combobox

Kind: static method of ax5combobox

Param Type
boundID String | Number | Element
[tryCount] Number

ax5combobox.update(item) ⇒ ax5combobox

Kind: static method of ax5combobox

Param Type
item Object | String

ax5combobox.setValue(_boundID, _value, [_selected]) ⇒ ax5combobox

Kind: static method of ax5combobox

Param Type
_boundID jQueryObject | Element | Number
_value String | Array
[_selected] Boolean

Example

myCombo.setValue($('[data-ax5combobox="combo1"]'), "1");
myCombo.setValue($('[data-ax5combobox="combo1"]'), ["1", "2"]);

ax5combobox.setText(_boundID, _text, [_selected]) ⇒ ax5combobox

Kind: static method of ax5combobox

Param Type
_boundID jQueryObject | Element | Number
_text String | Array
[_selected] Boolean

Example

myCombo.setText($('[data-ax5combobox="combo1"]'), "string");
myCombo.setText($('[data-ax5combobox="combo1"]'), ["substring", "search"]);

ax5combobox.getSelectedOption(_boundID) ⇒ Array

Kind: static method of ax5combobox

Param Type
_boundID jQueryObject | Element | Number

ax5combobox.close() ⇒ ax5combobox

Kind: static method of ax5combobox

ax5combobox.blur(_boundID) ⇒ ax5combobox

Kind: static method of ax5combobox

Param Type
_boundID jQueryObject | Element | Number

ax5combobox.enable(_boundID) ⇒ ax5combobox

Kind: static method of ax5combobox

Param Type
_boundID jQueryObject | Element | Number

ax5combobox.disable(_boundID) ⇒ ax5combobox

Kind: static method of ax5combobox

Param Type
_boundID jQueryObject | Element | Number

ax5combobox.align()

Kind: static method of ax5combobox

ax5combobox.clear(_boundID) ⇒ ax5combobox

Kind: static method of ax5combobox

Param Type
_boundID jQueryObject | Element | Number

jQueryExtends : object

ax5combobox jquery extends

Kind: global namespace

jQueryExtends.ax5combobox(methodName, [arguments], [arguments])

Kind: static method of jQueryExtends

Param Type
methodName String
[arguments]
[arguments]

Example

<div data-ax5combobox="ax1" data-ax5combobox-config='{
 multiple: true,
 editable: true,
 size: "",
 theme:""
 }'></div>
<script>
jQuery('[data-ax5combobox="ax1"]').ax5combobox();
$('[data-ax5combobox="ax1"]').ax5combobox("getSelectedOption");
$('[data-ax5combobox="ax1"]').ax5combobox("setValue", ["string", "number"]);
$('[data-ax5combobox="ax1"]').ax5combobox("enable");
$('[data-ax5combobox="ax1"]').ax5combobox("disable");
</script>