LearnNewsExamplesServices
Frontmatter
id3131
titlecomponent.Base: hidden_ config
stateClosed
labels
enhancementstale
assignees[]
createdAtJun 7, 2022, 12:35 PM
updatedAtSep 15, 2024, 4:35 AM
githubUrlhttps://github.com/neomjs/neo/issues/3131
authortobiu
commentsCount4
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 15, 2024, 4:35 AM

component.Base: hidden_ config

Closed v8.1.0 enhancementstale
tobiu
tobiu commented on Jun 7, 2022, 12:35 PM

@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 added the enhancement label on Jun 7, 2022, 12:35 PM
tobiu cross-referenced by #3132 on Jun 7, 2022, 12:44 PM
tobiu
tobiu Jun 7, 2022, 12:46 PM

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

this._hidden = {Boolean};

Dinkh
Dinkh Jun 7, 2022, 2:04 PM

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

@github-actions - 2024-08-31T02:25:53Z

This issue is stale because it has been open for 90 days with no activity.

  • 2024-08-31T02:25:53Z @github-actions added the stale label

@github-actions - 2024-09-15T02:35:53Z

This issue was closed because it has been inactive for 14 days since being marked as stale.

  • 2024-09-15T02:35:53Z @github-actions closed this issue