SproutCMS

This is the code documentation for the SproutCMS project

function colorpicker()

Renders a colour picker

Uses the HTML5 'color' input type, and loads a JS fallback (spectrum)
http://bgrins.github.io/spectrum/
Note that spectrum requires jQuery 1.6 or later

Usage

string Fb::colorpicker ( string $name , array $attrs , array $params );

Arguments

  1. string $name
    The name of the input field
  2. array $attrs
    Extra attributes for the input field
  3. array $params
    Additional options; unused

Return value

  • string