Sha256: 4052bd978725b3ee319d09a67063230d274a34471fc929df649b82f18c5a418c

Contents?: true

Size: 1.75 KB

Versions: 58

Compression:

Stored size: 1.75 KB

Contents

/*
 * Default plugin options
 */
var defaults = {
  horizontal: false, // horizontal mode layout ?
  inline: false, //forces to show the colorpicker as an inline element
  color: false, //forces a color
  format: false, //forces a format
  input: 'input', // children input selector
  container: false, // container selector
  component: '.add-on, .input-group-addon', // children component selector
  fallbackColor: false, // fallback color value. null = keeps current color.
  fallbackFormat: 'hex', // fallback color format
  hexNumberSignPrefix: true, // put a '#' (number sign) before hex strings
  sliders: {
    saturation: {
      maxLeft: 100,
      maxTop: 100,
      callLeft: 'setSaturation',
      callTop: 'setBrightness'
    },
    hue: {
      maxLeft: 0,
      maxTop: 100,
      callLeft: false,
      callTop: 'setHue'
    },
    alpha: {
      maxLeft: 0,
      maxTop: 100,
      callLeft: false,
      callTop: 'setAlpha'
    }
  },
  slidersHorz: {
    saturation: {
      maxLeft: 100,
      maxTop: 100,
      callLeft: 'setSaturation',
      callTop: 'setBrightness'
    },
    hue: {
      maxLeft: 100,
      maxTop: 0,
      callLeft: 'setHue',
      callTop: false
    },
    alpha: {
      maxLeft: 100,
      maxTop: 0,
      callLeft: 'setAlpha',
      callTop: false
    }
  },
  template: '<div class="colorpicker dropdown-menu">' +
    '<div class="colorpicker-saturation"><i><b></b></i></div>' +
    '<div class="colorpicker-hue"><i></i></div>' +
    '<div class="colorpicker-alpha"><i></i></div>' +
    '<div class="colorpicker-color"><div /></div>' +
    '<div class="colorpicker-selectors"></div>' +
    '</div>',
  align: 'right',
  customClass: null, // custom class added to the colorpicker element
  colorSelectors: null // custom color aliases
};

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
card-mod-bootstrap-0.18.1 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.18.0 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.17.0 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.16.0 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.6 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.5 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.4 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.3 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.1.2 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.2.pre1 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.1.1 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.1 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.15.0 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.14.2 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.14.1 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.14.0 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.13.4 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.13.3 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.13.2 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js
card-mod-bootstrap-0.13.1 vendor/bootstrap-colorpicker/src/js/colorpicker-defaults.js