neo icon indicating copy to clipboard operation
neo copied to clipboard

component.Base: hidden_ config

Open tobiu opened this issue 3 years ago • 2 comments

@Dinkh

we should create a new config, which enables us to check the hidden state as well as changing it.

this will also allow us to do bulk-updates in a convenient way:

myComponent.set({
    disabled: true,
    hidden  : true
})

internally we will need an afterSetHidden() method to handle the updates. this one could call the hide() and show() methods, in case it provides extra value.

e.g. hide / show could get a param to override the hideMode config for specific calls.

tobiu avatar Jun 07 '22 10:06 tobiu

if we are keeping the show / hide methods, they should silently update the hidden state as well.

this._hidden = {Boolean};

tobiu avatar Jun 07 '22 10:06 tobiu

I would prefer to be able to hide/show on node and component level.

Neo.show('nodeId' | 'componentId') / Neo.hide('nodeId' | 'componentId')

In addition the components should get a _hidden and _disabled config

Dinkh avatar Jun 07 '22 12:06 Dinkh