Class Index | File Index

Classes


Class MapListModel

Represents a "list" user interface created with PanelControl.

Class Summary
Constructor Attributes Constructor Name and Description
 
This class is typically only instantiated by Content Studio.
Method Summary
Method Attributes Method Name and Description
 
add(id, object, index)
Adds a row to the list UI.
 
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.
Class Detail
MapListModel()
This class is typically only instantiated by Content Studio.
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.

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Jul 07 2021 16:12:59 GMT+0200 (CEST)