Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Custom states can be aplied to any akObject on form fields and it consist in a name and options. It's displaying a custom icon (set in options) and some specific style on the field.

...

Custom states attributes:

attributevalues
namethe name of the custom state
option
  • bubbleUp - make the custom state to also be visible on window-header. Can be set to true or false
  • icon -

    an unicode from a

    font

    -

    awesome

    icon

    class of an icon (ex:

     f071

    "fas fa-exclamation-triangle")


    Examples:

    Getting a field to test. Ex: selfdesc field from offerheaderdata form.

    ...

    Code Block
    titleAdd a custom state with an alert icon
    field1.controller.setCustomState('Alert1', {icon: 'f071fas fa-exclamation-triangle'})


    Code Block
    titleRemove a custom state
    field1.controller.clearCustomState('Alert1')
    Code Block
    titleAdd a custom state with bubbleUp
    field1.controller.setCustomState('Alert1', {icon: 'f071', bubbleUp: true})