​Assume we have following grid-stack div rendered through the UUFClient.​



​
​Now I want to re-render the same with a different content (Eg:- Change the
dashboard layout )
There is a grid-stack function to destroy the existing content[1].

$('.grid-stack').data('gridstack').destroy(true);
>

So this will basically remove following also, used by the UUF to append the
content.

<!--[UUF-ZONE]{"name": "gridContent","position": "start"}-->
> <!--[UUF-ZONE]{"name": "gridContent","position": "end"}-->
>

Tried manually adding above before calling the UUFClient.renderFragment()
but it seems not working. zonesMap which is there in the UUFClient still
contains the gridContent zone.

Any idea?

[1]
https://github.com/troolee/gridstack.js/tree/develop/doc#destroydetachgrid​
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to