| Page 1 of 1 | [ 10 posts ] |
|
Good day!
Is there SelectBox widget similar to one used by Django admin for user permissions? Like here: http://imagebin.org/196299. Thank you, Zaar |
Alberto SantiniYUI Contributor
|
Hello haizaar.
Did you give a look at Autocomplete widget? http://yuilibrary.com/yui/docs/autocomplete/ Hope that helps, IceBox P.S.: I think I misunderstood the request. |
|
Thanks Alberto.
Unfortunately I've tried searching gallery before posing and have not found anything similar. Regards, Zaar |
|
Zaar,
I worked up a simple widget in 2.x a few years ago http://www.blunderalong.com/pub/pick_list_widget.html that was basically a starter project for working with HTML Listboxes. It was very basic, not pretty, but functional. I might be able to rework it in YUI 3 if there is any interest. For what it's worth! Todd |
|
Hello Todd!
Yes, I'm very interested! This widget is exactly what I need. If you can rework it for YUI3, it will be just excellent! Thanks, Zaar |
|
Hi Zaar,
Well I did a little work upgrading the "multi-select" PickList that I had given you before, which was a 2.8 widget, and worked something up as a YUI 3 widget. There is an example of using it at http://blunderalong.com/yui/picklist.html. Let me throw out a few caveats; * It ain't pretty ... I have "no style" * It's my first "real" YUI 3 widget. I tried to properly .destroy and remove listeners, but use at your own peril. * The present design is "stack" mode, wherein if an OPTION is moved from one SELECT, it moves the whole thing over, doesn't leave a reference to the original. * My documentation of the internal methods, etc ... well they suck too. * It uses 3.5.0pr2 as the CDN, because it uses Y.Button. Anyway, try it out. Modify it, redesign it, or forget about it. It doesn't cost anything to try it though. Take care, Todd |
|
Zaar,
I also posted this Picklist widget to the gallery at http://yuilibrary.com/gallery/show/picklist if you're interested. Todd |
|
Wow, Todd!
Thank you so much for this effort! I'll definitely use this widget. If I'll find any bugs I'll be happy to let your know. Is there a chance you can also implement a filtering of results in left column, i.e. put an input field above left options box that will filter values in left column based on string in input field (see my original screenshot)? Thank you again, Zaar |
|
Don't really think I have the time to workup a filtering option for this. The concept is almost identical.
As Alberto said before, you would basically use an AutoComplete on the left-hand side and set a "select" handler to add selections to the right-hand "selected" options. The devil is in the details. Todd |
|
I understand.
Thank you again for initial push. I'll try to extend your work. Best regards, Zaar |
| Page 1 of 1 | [ 10 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group