Class DHTMLSuite.listModel
Object
|
+--DHTMLSuite.listModel
- class
DHTMLSuite.listModel
Purpose of class: listModel (Demo)
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
options
Object options
DHTMLSuite.listModel
DHTMLSuite.listModel(inputArray)
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
addElement
void addElement(value,text)
Add a single element to the listModel
Parameters:
String
- value = Value of element
String
- text = Text of element
createFromMarkupSelect
void createFromMarkupSelect(elId)
Create listModel object from Select tag. value and text of option tags becomes value and text in the listModel.
This method hides the select box when done.
Parameters:
String
- elId Id of SELECT tag
createFromMarkupUlLi
void createFromMarkupUlLi(elId)
Create listModel object from UL,LI tags. the value is the title of the lis, text is innerHTML, example - Norway
This methods hides the UL object
Parameters:
String
- elId Id of UL tag
deleteAll
void deleteAll()
Clear all options from the list
deleteOptionByValue
void deleteOptionByValue(value)
Parameters:
String
- value - value of option to delete
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007