Assigning Visual Styles to Enum Fields in a Shared Options Context

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zerosix
    Member
    • Jan 2024
    • 45

    Assigning Visual Styles to Enum Fields in a Shared Options Context

    When utilizing the "Options Reference" feature to share options between different enum fields, how can one specify visual styles (such as 'success', 'danger', etc.) for these options?
  • yuri
    Member
    • Mar 2014
    • 8846

    #2
    metadata > entityDefs > {EntityType} > fields > {field} > style

    Code:
    {
        "fields": {
             "myField": {
                 "style": {
                     "Some Option": "success"
                 }         
             }    
         }
    }
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...