You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decorators are an important feature of models, however if models are heavily decorated, for a variety of purposes, then the models can become hard to read and maintain. It would be useful to be able to externalise decorators from the model and then to have them declaratively applied.
Use Case
We have a use case where we need to use models across various UX channels (web/mobile etc) and the models need to be decorated for display purposes.
Possible Solution
Define a new function decorateModels on ModelManager that takes a DecoratorCommandSet as input. The function traverse the model declarations and adds any decorators from the DecoratorCommandSet as necessary.
The DecoratorCommandSet defines a set of decorators that should be added to model elements.
Context
Trying to externalise decorators from models.
Detailed Description
TBD
The text was updated successfully, but these errors were encountered:
Feature Request 🛍️
Decorators are an important feature of models, however if models are heavily decorated, for a variety of purposes, then the models can become hard to read and maintain. It would be useful to be able to externalise decorators from the model and then to have them declaratively applied.
Use Case
We have a use case where we need to use models across various UX channels (web/mobile etc) and the models need to be decorated for display purposes.
Possible Solution
Define a new function
decorateModels
onModelManager
that takes aDecoratorCommandSet
as input. The function traverse the model declarations and adds any decorators from theDecoratorCommandSet
as necessary.The DecoratorCommandSet defines a set of decorators that should be added to model elements.
Context
Trying to externalise decorators from models.
Detailed Description
TBD
The text was updated successfully, but these errors were encountered: