Kind: global class
Author: tom@axisj.com
ax5select.setConfig(config) ⇒ ax5select
Preferences of select UI
Kind: static method of ax5select
Param | Type | Description |
---|---|---|
config | Object |
클래스 속성값 |
Example
var options = [];
for (var i = 0; i < 20; i++) {
options.push({value: i, text: "optionText" + i});
}
var mySelect = new ax5.ui.select({
theme: "danger"
});
mySelect.bind({
theme: "primary",
target: $('[data-ax5select="select1"]'),
options: options,
onChange: function () {
console.log(this);
},
onClose: function () {
console.log(this);
},
onStateChanged: function () {
console.log(this);
}
});
ax5select.bind(item) ⇒ ax5select
bind select
Kind: static method of ax5select
Param | Type |
---|---|
item | Object |
[item.id] | String |
[item.theme] | String |
[item.multiple] | Boolean |
item.target | Element |
item.options | Array.<Object> |
Example
var mySelect = new ax5.ui.select();
mySelect.bind({
columnKeys: {
optionValue: "value",
optionText: "text"
},
target: $('[data-ax5select="select1"]'),
options: [
{value: "", text: ""}
],
onChange: function(){
},
onClose: function(){
},
onStateChanged: function(){
}
});
ax5select.open(boundID, [tryCount]) ⇒ ax5select
open the optionBox of select
Kind: static method of ax5select
Param | Type |
---|---|
boundID | String | Number | Element |
[tryCount] | Number |
ax5select.update(item) ⇒ ax5select
Kind: static method of ax5select
Param | Type |
---|---|
item | Object | String |
ax5select.setOptions(boundID, options) ⇒ ax5select
Kind: static method of ax5select
Param |
---|
boundID |
options |
ax5select.val(boundID, [value], [selected]) ⇒ ax5select
Kind: static method of ax5select
Param | Type |
---|---|
boundID | String | Number | Element |
[value] | String | Object | Array |
[selected] | Boolean |
ax5select.close() ⇒ ax5select
Kind: static method of ax5select