Giter Club home page Giter Club logo

bootstrap-colorselector's Introduction

bootstrap-colorselector

A colorselector for Twitter Bootstrap which lets you select a color from a predefined set of colors only.

In contrast to many other colorpickers found on Github this one is reduced to a predefined set of colors. This is why it is called "colorselector" rather than "colorpicker".

Examples / Demo

http://bootstrap-colorselector.flaute.com/

Authors

Inspired by:

Thanks for their inspiration and ideas.

License

Copyright 2014 Flaute

Licensed under the MIT License

bootstrap-colorselector's People

Contributors

abishekrsrikaanth avatar fitztrev avatar flaute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bootstrap-colorselector's Issues

standalone availabilty

release the colorselector from bootstrap and make it an universal element so that it's available for every framework.

Grouping of Items

I would love to be able to group my swatches into various sections with a title. Using would seem a natural way to set this in the select tag.

dropdown on the top

Can I change the direction of dropdown, for example, on the top instead of on the bottom

Be able to set board

It would be nice to have an option to set a board around the the color box this would be good for colors like white or that are not very visible.

Hover Color Issue

When I go to select a color and it shows all the available colors, when I hover over any color it changes the color to blue. Anyone have this issue or have a clue why it is doing this?

Not able to assign on multiple element

I have grid where I want to add this color picker to each row , But it's only attaching to first row element.

How can i user for multiple element / rows ?

How to make any item in the color drop-down selected

Hi, I want to change the color selected in the drop-down. Based on some event on my page, I want to change the selected item, How can i do this using jQuery.
When i use below code it does not work.
$('#ddColor').val("#FF69B4")

Can any one help!

Thanks!

Close on click

Like every other select out there in the wild it should close on self click when no value is selected by the user.

Dropdown not showing if select is within Button

If placing the select within a element, the drop down will not show. This is perhaps not a bad thing, as it is invalid to nest anything other than text or images within a button.

I came across this scenario, because I wanted to place the color picker inside a Boostrap Input element with add ons, which by default uses buttons. Changing the

to and adjusting the padding resolved the issue. (Just in case anyone else comes across this.)

Dropdown Caret Wrong Color

The drop-down caret seems to adopt the current text color, instead of the background color used by the swatch drop down.

cdnjs hosting

Hi @flaute ,
We would like to add you library to cdnjs hosting. Could you please add git tag to you library. thanks

Add Fourth Argument to Callback Function

I would like to refence the calling colorSelector object from within the callback function, something like this:

    $('.colorSelector').colorselector({
        callback: function (value, color, title) {
            $($(this).id + 'Text').val(title);
            console.log($(this))
        }
    });

This way I don't have to register a callback function for each and every color selector separately, but can instantiate them all through a single function. (Or is there a better way, that I missed?) :) Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.