Set Body

For an accordionitem, I can do this (followed by a refresh) to dynamically change the header:

$$("accitemid").define("header", "newheader");

But how to dynamically change the body? The following does not seem to work:

$$("accitemid").define("body", "newbody");

Note that is a simple example. I would actually like to fill it with view components, not just text

You can use the same webix.ui command, that was used for initial UI creations. Just provide the target parameters.

webix.ui({
  template:"new ui"
}, $$("accitemid"), 0);

http://webix.com/snippet/e7691fba

1 Like

Thanks much