Doublelist clear method

Hi Webix team,

https://snippet.webix.com/85eb8ad9

In this snippet If my availablePermission and givenPermission are empty then I want to clear left and right side of double list.
If I am having data to the array then only list data should get disply.

Please give me solution

Thanks,
Mira

$$(“id_function_security_permissions”).setValue({});

$$(“id_function_security_permissions”).$$(“left”).clearAll();
$$(“id_function_security_permissions”).$$(“right”).clearAll();

https://snippet.webix.com/0qi7hvpk

Hello,

You just need to add

$$("id_function_...").queryView({view:"list"},"all").map(view => view.clearAll());

queryView allows you to apply the same operations to several components that match the search criteria.
Please check the sample:
https://snippet.webix.com/ygf19dnq

Hi All,
Thanks a lot:)