alfresco-content-app
alfresco-content-app copied to clipboard
Dynamic icons based on rules
Is your feature request related to a problem? Please describe.
It is not possible to change the icon based on some conditions. For example, rendering a different icon based on metadata, or mime type.
Describe the solution you'd like
- Provide support for the icon rules/evaluators.
- Provide support for string-based evaluators
Describe alternatives you've considered No alternatives so far.
Additional context
Possible format example:
{
"id": "some.id",
"icon": "default-icon",
"rules": {
"enabled": "some.boolean.rule",
"icon": "some.string.rule"
}
}
In the example above, the default-icon
is what used initially if no rules provided, and some.string.rule
rule/evaluator provides an icon value based on runtime context.
JIRA link: ACA-2209
Awesome! Thanks for the clear explanation!
will be addressed in the upcoming feature, closing this ticket for now