W3C home > Mailing lists > Public > public-xformsusers@w3.org > September 2016

Repeat with automatic controls

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 07 Sep 2016 14:00:27 +0200
To: public-xformsusers@w3.org
Message-ID: <op.yne4y10fsmjzpq@steven-aspire-s7>
One of the remaining issues is what to do (if anything) with the issue of  
automatically supplying insert/delete controls in repeat controls.

Ideally it would be great if without having to write much extra, you got  
some way or another of deleting and inserting items in the bound list,  
without preventing you from adding controls yourself when necessary.

For backwards compatibility, an unadorned <repeat> should behave the same  
as now (at least there should be no visible extra controls. This doesn't  
need to stop an implementation from allowing, for instance, right-click  
actions).

For data consistency reasons, there also needs to be a way to say: only  
insert at the start; only delete at the start; only insert at the end;  
only delete at the end; no insertions; no deletions.

Strawman examples:
  <repeat actions="insert delete" ref="list/oranges">
   ...
  </repeat>

  <repeat actions="insert-start delete-end" ref="events/dates">
   ...
  </repeat>

The absence of an action would mean that it would not be (automatically)  
possible, though the form author could still add controls as needed.

Steven
Received on Wednesday, 7 September 2016 12:01:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 September 2016 12:01:03 UTC