Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ColorField for ExtJS 4.0

Do you know any ColorField implementation for ExtJS 4.x?

I try to create my own (looking DateField source code) but the picker background is transparent and I can't fix it :(

enter image description here

This is how I create color picker:

Ext.create('Ext.picker.Color', {
    pickerField: me,
    ownerCt: me.ownerCt,
    renderTo: document.body,
    floating: true,
    hidden: true,
    focusOnShow: true,
    listeners: {
        scope: me,
        select: me.onSelect
    },
    keyNavConfig: {
        esc: function() {
            me.collapse();
        }
    }

P.S. I ask here, because on Sencha Forum I never get an (even a single) answer

like image 947
Julian Popov Avatar asked Jul 21 '11 08:07

Julian Popov


1 Answers

Why don't you try adding something like style: {backgroundColor: "#ddd"} into your picker's config?

like image 158
Molecular Man Avatar answered Nov 03 '22 13:11

Molecular Man