If you're already going to give it some serious consideration, can I add
another thing to think about:
Sometimes it makes sense to only select an item once, and when it is added
to the list, it does not make sense to offer it as a suggestion (e.g when
the list is of users).
I implemented it simply by going over the list of added list items and if
the user is already existing, not add it to the suggestions list, but it
seems to me that it makes more sense to implement it within the widget.
Omri
On Fri, Nov 12, 2010 at 11:50, panyasan [via qooxdoo] <
[email protected]<ml-node%[email protected]>
> wrote:
> Hi,
>
> Krycek wrote:
> I can add that, but maybe with the following change:
>
> addToken : function( itemModelData, selected )
> {
> var item = new qx.ui.form.ListItem( itemModelData.label );
> item.setModel( qx.data.marshal.Json.createModel( itemModelData ) );
> if (selected)
> {
> this._selectItem( item );
> }
> }
>
> Hm, but what would be the use of the method if selected = false? Then an
> item is created, but immediately goes out of scope, with no change to the
> widget.
>
> Maybe we should continue the detailed discussion in a new bug? It seems to
> me that the matter deserves a better solution than my extension hack... ;-)
>
> Christian
>
>
> ------------------------------
> View message @
> http://qooxdoo.678.n2.nabble.com/Prepopulating-a-TokenField-widget-tp5724596p5731874.html
> To unsubscribe from Prepopulating a TokenField widget, click
> here<http://qooxdoo.678.n2.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=5724596&code=b21yaWhhckBnbWFpbC5jb218NTcyNDU5NnwtMjExOTUxMjk1Mw==>.
>
>
>
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Prepopulating-a-TokenField-widget-tp5724596p5731917.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel