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:
attribute | values |
---|---|
name | the name of the custom state |
option |
icon - |
font |
awesome |
class of an icon (ex: |
"fas fa-exclamation-triangle") |
Examples:
Getting a field to test. Ex: selfdesc field from offerheaderdata form.
...
Code Block | ||
---|---|---|
| ||
field1.controller.setCustomState('Alert1', {icon: 'f071fas fa-exclamation-triangle'}) |
Code Block | ||
---|---|---|
| ||
field1.controller.clearCustomState('Alert1') | ||
Code Block | ||
| ||
field1.controller.setCustomState('Alert1', {icon: 'f071', bubbleUp: true}) |