Affects Version/s: 2.2.0-m4
Fix Version/s: Backlog
Security Level: Public (Public: Anyone can view)
KAI Review Status:Not Required
KTI Review Status:Not Required
Create ToggleAction content element. Some design suggestions:
ToggleAction extends ContentElementBase
// defaults for both actions, unless overridden by action
additionalSubmitData // note merge this property if both default and in action
actionParameters // note merge this property if both default and in action
String initialState; // indicates which action to use initially by the integers 1 (state1Action), or 2 (state2Action)
Framework will add onclick script to handle the toggling of actions (both will be in DOM). The corresponding state for the action will be a data attribute on the element.
Also we need to deal with client side state syncing of the toggle state (for refreshes containing the action).