PDA

View Full Version : Sencha Touch 2 colorpicker



Di Peng
6 Dec 2011, 8:44 PM
Hi,
I needed a colorpicker in my own project so I revised the one Mitchell wrote to make it work in ST2.
Since Sencha 2 does not have an extensions forum. I thought here should be an appropriate place to post it in case anybody may find it helpful.
It is on at https://github.com/Codier/Sencha-Touch-2-Colorpicker
(https://github.com/Codier/Sencha-Touch-2-Colorpicker)
Cheers
Di

rdougan
6 Dec 2011, 10:25 PM
Looks good. I added a few comments to your commits.

subimage
11 Sep 2012, 12:40 AM
I couldn't get your version to work with the current Sencha v2, so I refactored it. The working result is here: https://gist.github.com/3696947

One minor bug - it seems to not select the right color unless you explicitly tap on the color. You can't just scroll to it and tap "done".

Will be looking for a fix and will update the gist if I fix it.

Bunchofstring
11 Sep 2012, 6:55 AM
Cool! I can't wait to test this out.

cn8319
21 Feb 2013, 6:59 AM
Thank you for your reply. I replaced the original code in Ext.form.ux.touch.ColorPickerField.js with the updated code from your post, but I'm still getting - Uncaught TypeError: Cannot call method 'getPageBox' of null

Did you get this working?