W3C home > Mailing lists > Public > public-xformsusers@w3.org > November 2018

Proposal for merging <signal/> into <dispatch/>

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 13 Nov 2018 15:24:38 +0100
To: public-xformsusers@w3.org
Message-ID: <op.zse8zcjssmjzpq@steven-xps>
Add @to attribute to dispatch: (we can discuss the choice of name)

   to = targetid | parent | control
   Value 'targetid' is default

The attribute has the following effects:
   to="targetid", targetid="..." behaviour is as now.
   to="control", targetid="id of control element", event is dispatched to  
first model of embedded control
   to="parent", (targetid is ignored), event is dispatched to embedding  
control element


   <dispatch name="tick" targetid="clock"/>
   <dispatch name="tick" to="targetid" targetid="clock"/> (has same effect  
as above)
   <dispatch name="reset" to="control" targetid="game"/>
   <dispatch name="finished" to="parent"/>

You might prefer:

   <dispatch name="reset" to="control" control="game"/>

Received on Tuesday, 13 November 2018 14:25:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:50 UTC