Recontruct a layout

hi,

How can i do this?

I tried this…

I have a layout which id is “example”

I have done this…

function changeLayout() {

var _content = "[ " +
    "{ " +
        " view: 'template'," +
        " template: '<div>bye</div>' " +
    "} " +
 "]";
$$("example").define("rows", _content);
$$("example").reconstruct();

}

but i think it is not correct…

can you give me an example, please?

thanks and greetings!!

please, it is urgent for me this…

Thanks!!

Hi,

you can try the following:

[code]var content = [{view: ‘template’, template: ‘

bye
’}];

webix.ui( content, $$(“example”) );
[/code]

Where “example” is layout with rows collection:

webix.ui({ id: "example", rows:[{}] });

Hi,

I have not this solution clear…

you mean i have to use webix framework to reconstruct a layout cell on the fly?

if this, i do not want to use another api…

which are the ways to solve the case of use?

i used iframes in the first time but if possible… i want to reconstruct/change a cell on the fly…

please, tell me what is the best way…

thanks!!

i have asked for an advise to support because i am thinking im migrating to webix.

Thanks for all your work with me

Hello,

you mean i have to use webix framework to reconstruct a layout cell on the fly?

Sorry for misleading information. You can use the same approach for dhtmlx:

dhx.ui({ id: "example", rows:[{}] }); ... var content = [{view: 'template', template: '<div>bye</div>'}]; dhx.ui( content, $$("example") );