Switch widget - bluesoft-rnd/aperte-workflow-core GitHub Wiki
Allows to select on of the grouped widget. Based on value of selector. Mechanism is very simple, if selector value is equals to first element in condition list, then first widget is executed. Selection is based on index number, in conditon list.
This widget is part of Switch widget plugin.
Attribute name | Type | Required | Default value | Description |
---|---|---|---|---|
Conditions | String | True | List of conditions. Elements are separated with comma "," | |
SelectorKey | String | True | Name of the "bind" variable |
This widget does not support Children attributes.
Element name | Type | Required | Default value | Description |
---|---|---|---|---|
children | mixed | False | Definitions of children widgets. |
This widget does not support permissions.
This example shows how to put together two: CaptionPanel widgets and CmisDocumentList widget inside one Selector widget.
<config.ProcessStateWidget className="SwitchWidgets" priority="2">
<attributes>
<config.ProcessStateWidgetAttribute name="conditions" value="first,second"/>
<config.ProcessStateWidgetAttribute name="selectorKey" value="selectorKey"/>
</attributes>
<children>
<config.ProcessStateWidget className="CaptionPanel" priority="2">
</config.ProcessStateWidget>
<config.ProcessStateWidget className="CmisDocumentList" priority="3">
</config.ProcessStateWidget>
</children>
</config.ProcessStateWidget>