template: Make sure the template is loaded when calling `get_children_by_id`.

This commit is contained in:
Emmanuel Lepage Vallee 2022-10-22 21:22:37 -07:00
parent cc7feb932c
commit 7aab54ed19
1 changed files with 6 additions and 0 deletions

View File

@ -181,6 +181,12 @@ function template:set_template(widget_template)
self:emit_signal("property::template", widget_template) self:emit_signal("property::template", widget_template)
end end
function template:get_children_by_id(...)
local w = lazy_load_child(self)
return w:get_children_by_id(...)
end
--- Set a property on one or more template sub-widget instances. --- Set a property on one or more template sub-widget instances.
-- --
-- This method allows to set a value at any time on any of the sub widget of -- This method allows to set a value at any time on any of the sub widget of