Frontmatter
| id | 3131 |
| title | component.Base: hidden_ config |
| state | Closed |
| labels | enhancementstale |
| assignees | [] |
| createdAt | Jun 7, 2022, 12:35 PM |
| updatedAt | Sep 15, 2024, 4:35 AM |
| githubUrl | https://github.com/neomjs/neo/issues/3131 |
| author | tobiu |
| commentsCount | 4 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 15, 2024, 4:35 AM |
component.Base: hidden_ config
tobiu cross-referenced by #3132 on Jun 7, 2022, 12:44 PM

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
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
stalelabel
@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
@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 thehide()andshow()methods, in case it provides extra value.e.g. hide / show could get a param to override the
hideModeconfig for specific calls.