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

Added selectColorOption #32

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added selectColorOption #32

wants to merge 4 commits into from

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());
     });

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