Class MapListModel
Represents a "list"
user interface created with
PanelControl.
Constructor Attributes | Constructor Name and Description |
---|---|
This class is typically only instantiated by Content Studio.
|
Method Attributes | Method Name and Description |
---|---|
add(id, object, index)
Adds a row to the list UI.
|
|
clear()
Removes all the rows from the list UI.
|
|
get(id)
Gets a row of the list UI.
|
|
remove(id)
Removes a row from the list UI.
|
Method Detail
add(id, object, index)
Adds a row to the list UI.
- Parameters:
- {String} id
- The identifier of the row to add.
- {Object} object
- A map representing the row to add. You must use the map keys
that were defined when the user interface model was created
with the PanelControl#show() object. For example:
object = { "from": "someone", "when": "Today", "summary" : "This is a great story" }
- {int} index Optional, Default: size of the list
- The position at which the row is to be inserted.
clear()
Removes all the rows from the list UI.
{Object}
get(id)
Gets a row of the list UI.
- Parameters:
- {String} id
- The identifier of the row to get.
- Returns:
- {Object} A map representing the row.
remove(id)
Removes a row from the list UI.
- Parameters:
- {String} id
- The identifier of the row to remove.