-
-
Notifications
You must be signed in to change notification settings - Fork 17
Configuration Item List
This type allows the user to make list of items of same type. The item type can be a simple type or a container. the user can add / delete / modify each item instance in the list. The developper can allow item instance to be duplicated, and can limit the minimal and maximal quantity of item instances.
This field define the type as a list
"type" : "list"The item section contains all configuration fields that have to be in each item.
"item" : {
"type": "section",
"name": "",
"description": "",
"content": {
"string" : {
"type" : "string",
"name" : "String parameter",
"description" : "type as string"
},
"color": {
"type": "color",
"name" : "Color parameter",
"description" : "type as color",
"defaultValue": "#00FF00"
}
}
}This parameter permits to set the minimum items that must have into the list in order to be valid. There is no minimum by default.
"nbItemsMin": "1"This parameter permits to set the maximum items into the list. There is no maximum by default.
"nbItemsMax": "5"This parameter add a button to duplicate an item in the list. This function is deactivated by default.
"allowDuplication": "true""listSection": {
"type": "section",
"name": "List of items",
"description": "Here is an example of list items",
"content": {
"listItems": {
"type": "list",
"name": "List parameter",
"description": "type as list",
"nbItemsMin": "1",
"nbItemsMax": "5",
"allowDuplication": "true",
"item": {
"type": "section",
"name": "",
"description": "",
"content": {
"string" : {
"type" : "string",
"name" : "String parameter",
"description" : "type as string"
},
"color": {
"type": "color",
"name" : "Color parameter",
"description" : "type as color",
"defaultValue": "#00FF00"
}
}
}
}
}
}
Yadoms -- The ultimate house automation solution