Making <repeat> more usable

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