Add support for "group" widget type (#9)
This commit is contained in:
parent
bacd49f221
commit
fea449b52f
1 changed files with 15 additions and 0 deletions
|
@ -53,6 +53,21 @@ local create_description_template = function (self, params)
|
||||||
end
|
end
|
||||||
_type_template_map["description"] = create_description_template
|
_type_template_map["description"] = create_description_template
|
||||||
|
|
||||||
|
-- ##########################
|
||||||
|
-- ###### Group #############
|
||||||
|
-- ##########################
|
||||||
|
|
||||||
|
-- Create group template
|
||||||
|
local create_group_template = function(self, params)
|
||||||
|
local template = {
|
||||||
|
display_name = params.title,
|
||||||
|
widget_type = "group_header",
|
||||||
|
after = params.parent_index
|
||||||
|
}
|
||||||
|
return template
|
||||||
|
end
|
||||||
|
_type_template_map["group"] = create_group_template
|
||||||
|
|
||||||
-- ###########################
|
-- ###########################
|
||||||
-- ###### Percent Slider #####
|
-- ###### Percent Slider #####
|
||||||
-- ###########################
|
-- ###########################
|
||||||
|
|
Loading…
Add table
Reference in a new issue