I have made some progress (see screenshot). Here is what it does yet:
- It sends the request to the server and adds the result items to the list. (not sure if the "matching" part of the text should be highlighted in the client or server side, what do you think?) - Shows "searching" until it gets the response from the server. - Clicking in the backspace removes the last selected item. - Clicking in the "x" removes the item from the selection. Here what I'll try tomorrow: - use stores to handle the fetching. - use the selection system qooxdoo offers to be able to use data bindings and so - use a flow layout to handle the UI to be able to use more than one row if there is more items selected than the space avaiable - replace my Token Item and use the qx.ui.form.ListItem On Mon, Aug 30, 2010 at 6:21 PM, Guilherme Aiolfi <[email protected]> wrote: > I don't think it's going to be a lot of work to write the theme entry. I'll > give the "right way" a chance. > > > On Mon, Aug 30, 2010 at 5:53 PM, panyasan <[email protected]> wrote: > >> >> Ups. Just sent an empty message. What I meant to write was: >> >> >> Krycek wrote: >> > >> > I gave a closer look at the token input code and even though it's >> possible >> > to have a 1:1 port it would be better to change the code so it can act >> > like >> > a real qooxdoo widget. >> > >> > That way it can take advantage of the event's abstraction (keydown, >> keyup, >> > focus, blur) already implemented in the list widget. That alone would >> > reduce >> > a lot of code and would prevent ourselves of dealing with the DOM >> > directly. >> > >> > We could use the ComboBox widget that already have all we need. The only >> > think that would be left for us to change would be adding some kind of >> > Token's itens to the left of the inputbox. >> > >> > A good idea here would be use a HBox to handle those items. >> > >> > What do you think? >> > >> >> Sounds good. I will need (and implement based on your work) a CellEditor >> for >> the virtual widget which will have to place the combo box at the right >> position and a CellRenderer which displays the tags. >> >> As to the styling of the tokens, it seems to be a good idea to re-use the >> CSS that comes with the jQuery plugin. Or are you going to write a theme >> entry for that? Would be better of course, but more work. >> >> C. >> -- >> View this message in context: >> http://qooxdoo.678.n2.nabble.com/Token-Field-widget-qooxdoo-virtual-widget-jQuery-tp5478029p5480017.html >> Sent from the qooxdoo mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> This SF.net Dev2Dev email is sponsored by: >> >> Show off your parallel programming skills. >> Enter the Intel(R) Threading Challenge 2010. >> http://p.sf.net/sfu/intel-thread-sfd >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > >
<<attachment: token.PNG>>
------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
