Материал из Module developer
List.AddItem
{{API Function/ru |description=Adding an item to a list |constructor = List.AddItem([Template], [Options], [customID], [position], [Name]) |input=
| Template | type: String Name of popup |
| Options | type: Object Object with settings of graphic items |
| customID | type: String List item ID |
| position | type: Number Location of List item |
| Name | type: String Name of list item |
|output=
| Object | type: Object Object of list item |
|JSsample =
var l_oList = module.GetPopup("Popup 1").GetItem("list"); //getting a list item l_oList.AddItem("Popup 2", { Name: { //name of graphic item Text: "Hello, world!" // text on Name item }, Switcher: { Value: 1 //value of Switcher trigger button }
