Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Conversation

vinmenn
Copy link

@vinmenn vinmenn commented May 19, 2015

Hi
I have added a small mod to use selectColor inside option block, in this way is possible to use both
selectColor and other options:

    $('select[name="colorpicker"]')
     .simplecolorpicker({ theme: 'glyphicons', selectColor: '#e1e1e1' })
     .on('change', function() {
     $(document.body).css('background-color', $('select[name="colorpicker"]').val());
     });

vinmenn added 4 commits May 19, 2015 14:44
Now is possible to init colorpicker with both selectColor and other options:
Eg.
.simplecolorpicker({ theme: 'glyphicons', selectColor: '#e1e1e1' })
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant