Vizlib switch actions
Be great if the new switch was also able to run a series of actions and not just the ability to set a variable (i may have missed any new features / releases of the switch) if in which case the switch now does this. would be good to turn the switch on and it unlock a field and clear a selection, by turning it back off it selects the field value and locks the field again. similar to that of the button object where on click it can run a series of actions
Hi,
Just to add a +1 to this feature request, and to post my current workaround...
I have resolved my initial requirement with a VizLib text box and font-awesome:
='<p style="text-align: right;"><em><i class="fa fa-toggle-$(=if(vHighImpactOn=1, 'on', 'off'))"> </i></em></p>'
I've also set the colour by dimension on the text box, so the switch changed colour when toggled.
This gives the actions I need and a look that is very similar to the switch.
The text padding makes the UI not quite as swish as the switch, but it certainly does the job.
Will probably swap it out for the proper switch, when actions are available on it though.
Cheers,
Steve