LearnNewsExamplesServices
Frontmatter
id3767
titlecomponent.Base: baseCls
stateClosed
labels
enhancement
assigneestobiu
createdAtJan 4, 2023, 12:43 PM
updatedAtJan 4, 2023, 3:06 PM
githubUrlhttps://github.com/neomjs/neo/issues/3767
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 4, 2023, 3:06 PM

component.Base: baseCls

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jan 4, 2023, 12:43 PM

to make extending of classes more convenient, we will introduce a baseCls config, which will store most of the rules which are currently inside cls.

when creating instances of existing classes, you will no longer need to re-add all base classes and you can instead only add your custom extra rules inside cls.

of course you can also override baseCls to remove rules which you don't want to use.

tobiu added the enhancement label on Jan 4, 2023, 12:43 PM
tobiu assigned to @tobiu on Jan 4, 2023, 12:43 PM
tobiu referenced in commit fe9f067 - "component.Base: baseCls #3767 src folder" on Jan 4, 2023, 1:29 PM
tobiu referenced in commit 394bf94 - "#3767 apps folder" on Jan 4, 2023, 1:45 PM
tobiu referenced in commit 2cfd581 - "#3767 docs folder" on Jan 4, 2023, 1:49 PM
tobiu referenced in commit 109a7fe - "#3767 examples folder" on Jan 4, 2023, 1:58 PM
tobiu referenced in commit 5d4ffdd - "#3767 component.Base: beforeSetCls()" on Jan 4, 2023, 2:41 PM
tobiu
tobiu Jan 4, 2023, 3:06 PM

@Dinkh

tobiu closed this issue on Jan 4, 2023, 3:06 PM