...
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 | ||||
---|---|---|---|---|
| ||||
// get a field, like the selfdesc field from offerheaderdata form. var field1 = akioma.root.dynObject.getObject('offerheaderdata').getField('selfdesc') |
...
Code Block | ||
---|---|---|
| ||
// add a custom state to that field, with an alert icon
field1.controller.setCustomState('Alert1', {icon: 'fas fa-exclamation-triangle'}) | ||
Code Block | ||
| ||
// remove the custom state from that field
field1.controller.clearCustomState('Alert1') |
...