I tried populateZonesMap(); before calling renderFragmentImpl() inside
UUFClient.renderFragment function. This works.

Can we make this a configuration property if there is no other way?




On Mon, Apr 24, 2017 at 10:56 AM, Udara Rathnayake <[email protected]> wrote:

> ​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​
>
>


-- 
Regards,
UdaraR
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to