howto: hide element of property sheet

I want to hide an element of property sheet.

$$(‘myPropSheet’).getItem(‘myItem’).hidden = true

does not work, there is no api for .hide() of that item.

$$(‘myPropSheet’).getItemNode(‘myItem’).hidden = true

does work, but the item will be shown after next .refresh().

Any suggestions?

There is no native API for property line hiding. Still, you can use .css property and hide the line by using “display:none” in the css rule.

http://webix.com/snippet/214c67a1

A bit more solid solution, will be to remove the unnecessary element from the elements collection

http://webix.com/snippet/3ac1f64a

Thanks, the css solution has the benefit to be able to show the item again at same position without having a big deal :wink:

suggestion for implementation…

http://webix.com/snippet/4be800ad