afe_mini_colors
Use jquery-miniColors as GUI wrapper for TextType field allowing user to select HEX color code.
Note: Data is saved into HEX format with
#
caracter as a first parameter.
type: integer
, default: 100
The animation speed of the sliders when the user taps or clicks a new color. Set to 0 for no animation.
type: string
, default: swing
The easing to use when animating the sliders. For possible values and demos see jQuery easings reference.
type: integer
, default: 0
The time, in milliseconds, to defer the change event from firing while the user makes a selection.
type: string
, default: hue
Determines the type of control. Possible values:
hue
brightness
saturation
wheel
type: integer
, default: 100
The speed at which to hide the widget.
type: boolean
, default: false
Set to true to force the widget to appear inline.
type: string
, default: lowercase
Determines the letter case of the hex code value. Possible values:
uppercase
lowercase
type: boolean
, default: false
Set to true to enable the opacity slider.
type: string
, default: default
Sets the position of the dropdown. Possible values:
default
top
left
top left
type: integer
, default: 100
The speed at which to show the widget.
type: string
, default: left
Determines which side of the textfield the color swatch will appear. Possible values:
left
right
type: boolean
, default: true
Whether or not to show the textfield.
type: string
, default: bootstrap
A string containing the name of the custom theme to be applied.
When user change the value, an event colored
is triggered on original input.
You can so add any handler you want:
$('.type-color').on('colored', function(event, input, hex, opacity) {
console.log('%o', arguments);
});