Kind: global class
Author: Eugene Gantz (EG) EugenGantz@gmail.com
- MSelectDBox
- new MSelectDBox(arg)
- instance
- ._coldInit
- .get(key, [arg], [e]) ⇒
*
- .set(key, [value], [arg], [e]) ⇒
MSelectDBox
- .trigger(eventName, e)
- .on(eventName, fx) ⇒
MSelectDBox
- .detectLanguage() ⇒
String
- .getText(key, [lang]) ⇒
String
- .setText(key, lang, text) ⇒
MSelectDBox
- ._applyLang(lang)
- .calcPosition()
- .calcScrollBarPosition()
- .getHoveredItems() ⇒
Array
- .getSelectedKeys() ⇒
Array
- .getSelectedValues() ⇒
Array
- .getSelectedLabels() ⇒
Array
- .getSelectedItems() ⇒
Array
- .hasValue(value) ⇒
Boolean
- .hasLabel(label) ⇒
Boolean
- .applySelectedToList([list]) ⇒
MSelectDBox
- .applySelectedToInput() ⇒
MSelectDBox
- .select(arg)
- ._selectByValue(value, reset)
- ._selectByLabel(label, reset)
- .deselect(arg)
- ._deselect(arg)
- ._deselectByValue(argVal)
- ._deselectByLabel(argLab)
- ._getItemsByID(ids) ⇒
Object
- .hideItem(item) ⇒
MSelectDBox
- .unhideItem(item) ⇒
MSelectDBox
- .unhideAllItems()
- .isVisibleItem(item) ⇒
Boolean
- .hoverItem(item) ⇒
MSelectDBox
- .unhoverItem(item) ⇒
MSelectDBox
- .unhoverAllItems() ⇒
MSelectDBox
- .hoverNextVisibleItem(item) ⇒
MSelectDBox
- .hoverPrevVisibleItem(item) ⇒
MSelectDBox
- .getNextVisibleItem() ⇒
Object
|Object
|undefined
- .getPrevVisibleItem(item) ⇒
Object
|undefined
- .selectNextVisibleItem(item) ⇒
Object
- .selectPrevVisibleItem(item) ⇒
Object
- .getLastVisibleItem() ⇒
Object
- .getFirstVisibleItem() ⇒
Object
- ._selectByID(ids, reset)
- ._deselectByID(ids)
- .applyAutoComplete(value) ⇒
- .deselectAll() ⇒
MSelectDBox
- .selectAll() ⇒
MSelectDBox
- .isActive() ⇒
Boolean
- .close() ⇒
- .open() ⇒
MSelectDBox
- static
Param | Type | Description |
---|---|---|
arg | Object |
|
[arg.name] | String |
instance name |
arg.list | Array |
list options |
[arg.autoComplete] | Boolean |
|
[arg.multiple] | Boolean |
|
[arg.zIndex] | Number |
|
arg.width | String | Number |
|
[arg.optionFilters] | Array |
|
arg.freeWrite | Boolean |
Индикатор холодной загрузки. После первой загрузки класса становится true
Kind: instance property of MSelectDBox
Get instance property
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
key | String |
key |
[arg] | Object |
optional arguments (deprecated), |
[e] | Boolean |
event trigger on |
mSelectDBox.set(key, [value], [arg], [e]) ⇒ MSelectDBox
Set instance property
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
key | String | Object |
key or hash of key-value |
[value] | * |
|
[arg] | Object |
optional arguments (deprecated), |
[e] | Boolean |
event trigger on |
Fire specified event
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
eventName | String |
event name |
e | Event | Object |
event or data object |
mSelectDBox.on(eventName, fx) ⇒ MSelectDBox
Attach specified event listener
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
eventName | String |
event name |
fx | function |
event handler |
Detect user language
Kind: instance method of MSelectDBox
Returns text by specified key and language
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
key | String |
|
[lang] | String |
язык выбираемого текста |
mSelectDBox.setText(key, lang, text) ⇒ MSelectDBox
Set text to specified language
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
key | String |
|
lang | String |
language |
text | String |
text key |
Применяет языковые настройки к глобальным (общим) элементам имеющие подписи
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
lang | String |
устанавливаемый язык |
Calculate position of list container
Kind: instance method of MSelectDBox
Calc and apply scrollbar position of list container
Kind: instance method of MSelectDBox
Returns hovered options (Array of objects)
Kind: instance method of MSelectDBox
Return keys of selected options
Kind: instance method of MSelectDBox
Return values of selected options
Kind: instance method of MSelectDBox
Return labels of selected options
Kind: instance method of MSelectDBox
Returns selected list options (Array of object)
Kind: instance method of MSelectDBox
Check existence of value in list
Kind: instance method of MSelectDBox
Param | Type |
---|---|
value | String |
Check existence of label in list
Kind: instance method of MSelectDBox
Param | Type |
---|---|
label | String |
mSelectDBox.applySelectedToList([list]) ⇒ MSelectDBox
Apply selected options to list container
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
[list] | Array |
in purpose of optimisation (performance) you can use specific list options. By default method uses all list options |
mSelectDBox.applySelectedToInput() ⇒ MSelectDBox
Apply selected options to control
Kind: instance method of MSelectDBox
Select specified option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
arg | Object |
|
arg.value | String | Array |
select by value |
arg.label | String | Array |
select by label |
arg.id | Number |
select by id |
arg.blank | Boolean |
reset previous selected options |
Выбрать по значению в списке
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
value | Array |
|
reset | Boolean |
обнуть ранее выбранные строки |
Выбрать по названию строки
Kind: instance method of MSelectDBox
Access: protected
Param | Type | Description |
---|---|---|
label | Array |
|
reset | Boolean |
обнуть ранее выбранные строки |
Снять выделение с указанного элемента
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
arg | Object |
|
arg.value | String | Array |
deselect by value |
arg.label | String | Array |
deselect by label |
arg.id | Number | String | Array |
deselect by id |
Снять выделение
Kind: instance method of MSelectDBox
Access: protected
Param | Type |
---|---|
arg | Object |
arg.value | Array | String |
arg.label | Array | String |
arg.id | Array | String | Number |
Снять выделение по значению
Kind: instance method of MSelectDBox
Access: protected
Param | Type |
---|---|
argVal | Array | String |
Снять выделение по label строки списка
Kind: instance method of MSelectDBox
Access: protected
Param | Type | Description |
---|---|---|
argLab | Array | String |
заголовки строк списка |
Получить элементы списка по ключам (id)
Kind: instance method of MSelectDBox
Access: protected
Param | Type | Description |
---|---|---|
ids | Array |
ключи списка |
mSelectDBox.hideItem(item) ⇒ MSelectDBox
Hide specific list option
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
list option |
mSelectDBox.unhideItem(item) ⇒ MSelectDBox
Make visible specific list option
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
list option |
Make visible all list options
Kind: instance method of MSelectDBox
Check visibility of list option
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
строка в списке |
mSelectDBox.hoverItem(item) ⇒ MSelectDBox
Apply hover to specified option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
list option |
mSelectDBox.unhoverItem(item) ⇒ MSelectDBox
Take off hover to specified option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
list option |
mSelectDBox.unhoverAllItems() ⇒ MSelectDBox
Take off hover to all options in list
Kind: instance method of MSelectDBox
mSelectDBox.hoverNextVisibleItem(item) ⇒ MSelectDBox
Hover next option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
current (relative) list option |
mSelectDBox.hoverPrevVisibleItem(item) ⇒ MSelectDBox
Hover previous option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
current (relative) list option |
Get next visible option in list
Kind: instance method of MSelectDBox
Returns: Object
- item - current (relative) list optionObject
| undefined
Get previous visible option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
current (relative) list option |
Select next visible option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
current (relative) list option |
Select previous visible option in list
Kind: instance method of MSelectDBox
Param | Type | Description |
---|---|---|
item | Object |
current (relative) list option |
Get last visible option in list
Kind: instance method of MSelectDBox
Get first visible option in list
Kind: instance method of MSelectDBox
Выделяет пункт из списка по ключу. Каждый раз определяет новую выборку.
Kind: instance method of MSelectDBox
Access: protected
Param | Type | Description |
---|---|---|
ids | Array | Number | String |
ключи строк списка |
reset | Boolean |
сбросить уже выбранные строки |
Сниманиет выделение только с указанной выборки, не затрагивая остальные
Kind: instance method of MSelectDBox
Access: protected
Param | Type | Description |
---|---|---|
ids | Array | Number | String |
ключи списка |
Apply autocomplete to list
Kind: instance method of MSelectDBox
Returns: MSelectDBox
Param | Type |
---|---|
value | String |
mSelectDBox.deselectAll() ⇒ MSelectDBox
Deselect all options in list
Kind: instance method of MSelectDBox
mSelectDBox.selectAll() ⇒ MSelectDBox
Select all options in list
Kind: instance method of MSelectDBox
Check visible state of list
Kind: instance method of MSelectDBox
Hide list
Kind: instance method of MSelectDBox
Returns: MSelectDBox
mSelectDBox.open() ⇒ MSelectDBox
show list
Kind: instance method of MSelectDBox
Global elements
Kind: static property of MSelectDBox
Global styles by selectors
Kind: static property of MSelectDBox
default autoComplete filters
Kind: static property of MSelectDBox
Return instance of class
Kind: static method of MSelectDBox
Remove instances
Kind: static method of MSelectDBox
Param | Type | Description |
---|---|---|
arg | Object |
arguments |
arg.name | String |
Instance name // msdb.get("name") |