- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Tue, 11 Dec 2018 23:48:24 +0100
- To: public-xformsusers@w3.org, "XForms Users Community Group Issue Tracker" <sysbot+tracker@w3.org>
Here is my proposal: <group appearance="closed"> ... </group> <group appearance="open"> ... </group> This specifies that the control is collapsible, and gives its initial state. The control is presented to the user with a method to open and close it (visually for instance with a widget you click on) Opening and closing is done by sending the events xforms-open or xforms-close A control can know its state by listening for those events. An action can cause a control to change state by sending one of those events. Example <instance> <data xmlns=""> <state>open</state> </data> </instance> <output ref="state"/> <group id="g" appearance="open"> <action ev:event="xforms-open"> <setvalue ref="state">open</setvalue> </action> <action ev:event="xforms-close"> <setvalue ref="state">closed</setvalue> </action> </group> <trigger label="toggle"> <action ev:event="DOMActivate"> <dispatch name="{if(state='open', 'xforms-close', 'xforms-open')}" targetid="g"/> </action> </trigger> On Wed, 19 Sep 2018 15:11:59 +0200, XForms Users Community Group Issue Tracker <sysbot+tracker@w3.org> wrote: > ACTION-2196: Spec up collapsing sections > > https://www.w3.org/2005/06/tracker/xforms/actions/2196 > > Assigned to: Steven Pemberton
Received on Tuesday, 11 December 2018 22:48:53 UTC