...
attribute | values |
---|---|
name | the name of the custom state (eg. 'alert') |
option | a key-value object (eg. {bubbleUp: true}) |
The bubbleUp is the only option available.
The bubbleUp option will make the custom state visible also on panel header and window header. Note: the panel header and window header will not have an i tag for the icon. Setting an icon on panel/window will be done on the before/after pseudo-class from css.
Code Block | ||||
---|---|---|---|---|
| ||||
// get a field, like the selfdesc field from offerheaderdata form. var field1 = akioma.root.dynObject.getObject('offerheaderdata').getField('selfdesc'); // add an "alert" custom state to that field field1.controller.setCustomState('Alert'); // add a "bg" custom state field1.controller.setCustomState('bg'); // remove the custom state from that field field1.controller.clearCustomState('Alert'); |
...