W3C home > Mailing lists > Public > public-xformsusers@w3.org > July 2015

Making <repeat> more usable

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Wed, 01 Jul 2015 14:03:51 +0200
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <op.x03fspvgsmjzpq@steven-aspire-s7>
While we're waiting for the wiki to be reopened, I thought we could use  
our time to discuss some possible future improvements.

I think the one I would most like to see is an improvement in the  
usability of <repeat>.

What I would like is the ability to tell the system that it should allow  
inserts and deletes, interface supplied automatically by the system.

My first try was something like:

    <repeat ref="list" actions="insert delete">

but of course, <insert> allows you to specify a template for what you want  
to insert, (with origin=, the name of which I now regret) so then:

    <repeat ref="list" actions="insert delete"  
origin="instance('template')/item">

I'm imagining that the implementation is free to determine exactly how the  
actions are to be done.

* Possible an [X] and a [+] after each item, possibly only when you focus  
or hover.
* Or with a check box by each item, and a button for each of the two  
actions.
* Or with a right-click contect menu.

This leads to the thought: would you want to be able to restrict additions  
at only the start or end? How about move-up and move-down actions?

Any experiences with this already in any implementations?

Steven
Received on Wednesday, 1 July 2015 12:04:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 1 July 2015 12:04:27 UTC