[richfaces-issues] [JBoss JIRA] (RF-13563) rich:pickList: add new items after last selected one
Brian Leathem (JIRA)
issues at jboss.org
Mon Mar 17 19:30:10 EDT 2014
[ https://issues.jboss.org/browse/RF-13563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-13563:
-------------------------------
Fix Version/s: 4.5-Tracking
> rich:pickList: add new items after last selected one
> ----------------------------------------------------
>
> Key: RF-13563
> URL: https://issues.jboss.org/browse/RF-13563
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-selects
> Affects Versions: 4.3.5
> Reporter: Alexey Shakov
> Fix For: 4.5-Tracking
>
>
> Sometimes it is preferable, that the newly added item(s) are positioned directly after already selected item in the right pane.
> With current implementation, one needs first add the item and then move it to desired position. It is inconvinient in the case of large lists.
> This functionality makes sense only with orderable lists and only if something selected in the right pane. This functionality can be optional.
> Possible implementation :
> {code:title=list.js|borderStyle=solid}
> addItems: function(items) {
> var parentContainer = this.scrollContainer;
> //new items are added after last selected item (if any)
> var selection = $("." + this.selectItemCssMarker, parentContainer);
> if (selection.length) {
> selection.last().after(items);
> } else {
> parentContainer.append(items);
> }
> this.__updateItemsList();
> rf.Event.fire(this, "additems", items);
> },
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list