About of AntDropDownList library
AntDropDownList, is a turnkey JavaScript objet containing a DropDownList.
2 avaliable types of AntDropDownList:
- AntDropDownList: basic trunkey drop down list.
- AntPairedDropDownList: master and slave drop down lists. The Slave drop down list is filtred when change event of master fired.
Have a question about AntDropDownList or AntPairedDropDownList ? Please use GitHub Issue.
Documentation about AntDropDownList
The basic trunkey drop down list. Elements are loaded by ajax.
Methods | Parameters | |
---|---|---|
LoadAntDropDownList
Single method to fill drop down list by ajax |
$p_elment [jQuery handdle] | A jQuery handdle of selected tag of DOM. In this version, the selected tag must be a select html tag. |
p_urlActionControler [string] | Url of ajax method to fill the list | |
p_withEmptyEntry [optionnal boolean] | Boolean to define if empty entry is required. False by default | |
p_selectedValue [optionnal string] | The selected value. Ignored by default | |
p_jsonAjaxParameters [optionnal JSON Object] |
JSON object sent to Ajax request. Ignored by default
|
Samples about AntDropDownList
AntDropDownList | |
---|---|
Basic usage of AntDropDownList | Try it |
AntDropDownList with supplied parameters to Ajax request | Try it |
Documentation of AntPairedDropDownList
JavaScript object to manage simply master and slave relation of 2 drop down lists. When master change event fired, the slave drop down list is filtred.
Methods | Parameters | |
---|---|---|
initPairedDropDownList
Method to cunstruct JavaScript object and define settings. |
p_fromDropDownList [jQuery handdle] | The master drop down list. A jQuery handdle of selected tag of DOM. In this version, the selected tag must be a select html tag. |
p_toDropDownList [jQuery handdle] | The slave drop down list. In this version, the selected tag must be a select html tag. | |
p_actionControler [optionnal boolean] | Url of ajax method to fill slave drop down list. | |
p_withEmptyEntry [optionnal boolean] | Boolean to define if empty entry is required. False by default | |
p_selectedValue [optionnal integer] | The selected value. Current selected value of master drop down list by default | |
ForceValues
Method to force value of drop down lists. |
p_valFromDDL [integer] | The value of master drop down list |
p_valToDDL [integer] | The value of slave drop down list | |
FromDropDownListChange
An accessor to define a custom callback function to modify the event of master drop down list |
p_fn [function] | The callback function fired on change event of master drop down list |
ToDropDownListChange
An accessor to define a custom callback function to modify the event of slave drop down list |
p_fn [function] | The callback function fired on change event of slave drop down list |
Samples of AntPairedDropDownList
AntPairedDropDownList | |
---|---|
Basic usage of AntPairedDropDownList | Try it |