/mcpicker

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

mcPicker

A simple color picker for mobiles and small screens.

Installation

Clone this repository or download the latest build.

Include jQuery library and google maps API places library:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

Include mcpicker.js after the jQuery library:

<script src="/path/to/mcpicker.js"></script>

Usage

$(function() {
    $("#mcp").mcpicker(); // 'mcp' is the id of the field to be used with color picker. 
});

Options

callback

callback : function

A callback function to be called after a color is selected.

Ex:

$("#mcp").mcpicker({
	callback: function() {
		console.log('call back executed');
	}
});

fullscreen

fullscreen: false

If set to true, picker will be displayed in full screen.

Demo

http://nadeeth.github.io/mcpicker

Issues & Suggestions

Please track issues, bugs, and feature requests in this tracker.

https://github.com/nadeeth/mcpicker/issues