Add component instance with general methods. New component constructor

This commit is contained in:
Insality
2020-01-30 01:46:02 +03:00
parent 0542ec4e69
commit ae47bcee8f
22 changed files with 156 additions and 114 deletions

View File

@@ -164,7 +164,7 @@ function M.init(self, template_name, node_table)
local button = druid:new_button(...)
-- helper can return you the component style
local my_style = helper.get_style(self, "component_name")
local my_style = self:get_style()
end
```