Frontmatter
| id | 3964 |
| title | Adding underscored configs to Neo.Override |
| state | Closed |
| labels | enhancement |
| assignees | [] |
| createdAt | Jan 31, 2023, 2:32 PM |
| updatedAt | Feb 1, 2023, 11:36 AM |
| githubUrl | https://github.com/neomjs/neo/issues/3964 |
| author | Dinkh |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 1, 2023, 11:36 AM |
I want to be able to add an override including afterSetFoo. That way I can add a real override, which can be supported in the next release or only to my custom project.
Neo.overrides = { Neo: { component: { Base: { bar: 2, foo_: 1, afterSetFoo: function(newValue, oldValue) { let style = this.style; style.color = 'green'; this.style = style; } } } } }; export default Neo.overrides;