|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Zapatec.DropDown
Constructor Summary | |
Zapatec.DropDown(objArgs)
This is simple class for creating drop-down lists. |
Method Summary | |
void
|
clear()
\internal Clear table content. |
Object
|
fillRows()
\internal Fills table with data. |
Object
|
getContainer()
Returns reference to DropDown container element |
void
|
hide()
Hide dropdown list. |
void
|
init(objArgs)
|
void
|
selectValue(currentRow)
\internal calls user defined function and send values from clicked string to it |
Object
|
setContent(objSource)
Set dropdown content to given array |
Object
|
setWidth(width)
|
void
|
show()
Shows dropdown list. |
Constructor Detail |
Zapatec.DropDown(objArgs)
config
- [object] - pane config. Constructor recognizes the following properties of the config object \code property name | description ------------------------------------------------------------------------------ element | [string or object] Reference to DOM element. | Created list will be displayed below it. | Required. hook | [string or object] Element that invokes dropdown. | Optional. onselect | [function] Function that will be called when user | click on some row in dropdown. One argument | will be passed to function: array of value in | clicked row. \endcode
Method Detail |
void clear()
Object fillRows()
Object getContainer()
void hide()
void init(objArgs)
void selectValue(currentRow)
Object setContent(objSource)
objSource
- - [object] JSON object with structure like: { "header": [ // describes list header. Optional { name: "Col name1", // column name style: "color: blue", // apply this style to current column header colStyle: "color: blue" // apply this style to all cells in this col colClassName: "customCol" // add this class to all cells in this col }, ... ], "body": [ // describes list content. Required. ["str1, col1", "str1, col2"], // array with values ... ] }
Object setWidth(width)
void show()
|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |