So how do we use it runtime?
PlaceObj( "XTemplateForEach", {
"__context", function() AddCustomOnScreenNotification("WAT", "WAT", "This one is showing up") end,
"array", function(parent, context) AddCustomOnScreenNotification("WAT", "WAT", "Not showing up") end
},
{PlaceObj("XTemplateTemplate", {"__template", "InfopanelText", "Id", "idResource", "Text", "ChildText"})}
)
__context is executed in it, while array/condition/run_before/run_after - totally ignored.
What do I miss here (besides documentation).
It looks like XTemplateForEach:Eval is not triggered at all here. I can see "ChildText" rendered and no notification at all. Looks like XTemplateForEach is processed like XTemplateTemplate
PlaceObj( "XTemplateForEach", {
"__context", function() AddCustomOnScreenNotification("WAT", "WAT", "This one is showing up") end,
"array", function(parent, context) AddCustomOnScreenNotification("WAT", "WAT", "Not showing up") end
},
{PlaceObj("XTemplateTemplate", {"__template", "InfopanelText", "Id", "idResource", "Text", "ChildText"})}
)
__context is executed in it, while array/condition/run_before/run_after - totally ignored.
What do I miss here (besides documentation).
It looks like XTemplateForEach:Eval is not triggered at all here. I can see "ChildText" rendered and no notification at all. Looks like XTemplateForEach is processed like XTemplateTemplate