alfresco-content-app icon indicating copy to clipboard operation
alfresco-content-app copied to clipboard

Dynamic icons based on rules

Open DenysVuika opened this issue 6 years ago • 2 comments

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.

DenysVuika avatar Feb 12 '19 16:02 DenysVuika

JIRA link: ACA-2209

DenysVuika avatar Feb 12 '19 16:02 DenysVuika

Awesome! Thanks for the clear explanation!

binduwavell avatar Feb 12 '19 19:02 binduwavell

will be addressed in the upcoming feature, closing this ticket for now

DenysVuika avatar Sep 11 '23 13:09 DenysVuika