What is it?
Tiny Colorpicker is a crossbrowser jquery plugin that creates a color picker (form) input. Its a easy way to add color pickers to your forms or user interface.
Features
- IOS and Android support.
- AMD, Node, requirejs and commonjs support.
- Easy customizable
- Can be used inside forms or outside
- Lightweight
- Source is on GitHub
用法:
$(document).ready(function()
{
// Initialize a colorpicker like this.
//
$('#box').tinycolorpicker();
// Try this to get access to the actual colorpicker instance.
//
var box = $('#box').data("plugin_tinycolorpicker");
// Now you have access to all the methods and properties.
//
// box.setColor("#cccccc");
// console.log(box.colorRGB);
//
// etc..
// You can bind to the change event like this.
//
$box.bind("change", function()
{
console.log("do something whhen a new color is set");
});
});
官网:http://baijs.com/tinycolorpicker/
原文:jquery:颜色拾取器 Tiny Colorpicker
TinyColorpicker是一款轻量级的jQuery插件,用于在网页表单中添加颜色选择器。该插件支持iOS和Android设备,并且可以轻松地集成到表单或其他用户界面元素中。它具有AMD、Node.js、Require.js和CommonJS的支持,便于定制。

595

被折叠的 条评论
为什么被折叠?



