- jQueryExtends :
object
ax5combobox jquery extends
Kind: global class
Author: tom@axisj.com
- ax5combobox
- .setConfig(config) ⇒
ax5combobox
- .bind(item) ⇒
ax5combobox
- .open(boundID, [tryCount]) ⇒
ax5combobox
- .update(item) ⇒
ax5combobox
- .setValue(_boundID, _value, [_selected]) ⇒
ax5combobox
- .setText(_boundID, _text, [_selected]) ⇒
ax5combobox
- .getSelectedOption(_boundID) ⇒
Array
- .close() ⇒
ax5combobox
- .blur(_boundID) ⇒
ax5combobox
- .enable(_boundID) ⇒
ax5combobox
- .disable(_boundID) ⇒
ax5combobox
- .align()
- .clear(_boundID) ⇒
ax5combobox
- .setConfig(config) ⇒
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"]);
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 |
Kind: static method of ax5combobox
ax5combobox.clear(_boundID) ⇒ ax5combobox
Kind: static method of ax5combobox
Param | Type |
---|---|
_boundID | jQueryObject | Element | Number |
ax5combobox jquery extends
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>