LearnNewsExamplesServices
Frontmatter
id3964
titleAdding underscored configs to Neo.Override
stateClosed
labels
enhancement
assignees[]
createdAtJan 31, 2023, 2:32 PM
updatedAtFeb 1, 2023, 11:36 AM
githubUrlhttps://github.com/neomjs/neo/issues/3964
authorDinkh
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 1, 2023, 11:36 AM

Adding underscored configs to Neo.Override

Closed v8.1.0 enhancement
Dinkh
Dinkh commented on Jan 31, 2023, 2:32 PM

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;
Dinkh added the enhancement label on Jan 31, 2023, 2:32 PM
Dinkh cross-referenced by PR #3963 on Jan 31, 2023, 2:33 PM
tobiu closed this issue on Feb 1, 2023, 11:36 AM