Namespace: fn

jGraduate~jQuery.fn

The jQuery plugin namespace.

Source:
See:

Namespaces

exports.jPickerMethod
jGraduateDefaults

Methods

(static) jGraduate(optionsopt, okCallbackopt, cancelCallbackopt) → {external:jQuery}

Parameters:
Name Type Attributes Description
options module:jGraduate.Options <optional>
okCallback external:jQuery.fn.jGraduate.OkCallback <optional>

Called with a Paint object when Ok is pressed

cancelCallback external:jQuery.fn.jGraduate.CancelCallback <optional>

Called with no arguments when Cancel is pressed

Source:
Returns:
Type
external:jQuery

(static) jPicker()

Source:
See:
  • external:jQuery.fn.$.fn.jPicker

Type Definitions

jPickerOptions

Type:
Properties:
Name Type Description
window PlainObject
Properties
Name Type Attributes Description
title string | null

Any title for the jPicker window itself - displays "Drag Markers To Pick A Color" if left null

effects PlainObject
Properties
Name Type Description
type "slide" | "show" | "fade"

Effect used to show/hide an expandable picker

speed PlainObject
Properties
Name Type Description
show "fast" | "slow" | Float

Duration of "show" effect. Time in milliseconds.

hide "fast" | "slow" | Float

Duration of "hide" effect. Time in milliseconds

position PlainObject
Properties
Name Type Description
x "left" | "center" | "right" | "screenCenter" | Float

Relative px value

y "top" | "bottom" | "center" | Float

Relative px value

expandable boolean

Defaults to large static picker - set to true to make an expandable picker (small icon with popup) - set automatically when binded to input element; added by $.fn.jPicker

liveUpdate boolean

Set false if you want the user to have to click "OK" before the binded input box updates values (always true for expandable picker)

alphaSupport boolean

Set to true to enable alpha picking

alphaPrecision Float

Set decimal precision for alpha percentage display - hex codes do not map directly to percentage integers - range 0-2

updateInputColor boolean

Set to false to prevent binded input colors from changing

bindToInput boolean <optional>

Added by $.fn.jPicker

input external:jQuery <optional>

Added by $.fn.jPicker

color PlainObject
Properties
Name Type Description
mode "h" | "s" | "v" | "r" | "g" | "b" | "a"

Symbols stand for "h" (hue), "s" (saturation), "v" (value), "r" (red), "g" (green), "b" (blue), "a" (alpha)

active Color | string

Strings are HEX values (e.g. #ffc000) WITH OR WITHOUT the "#" prefix

quickList Array.<Color> | Array.<string>

The quick pick color list Strings are HEX values (e.g. #ffc000) WITH OR WITHOUT the "#" prefix

images PlainObject
Properties
Name Type Description
clientPath string

Path to image files

colorMap external:jQuery.fn.jPickerOptionsImagesDimensionsArrow
colorBar external:jQuery.fn.jPickerOptionsImagesDimensionsArrow
picker external:jQuery.fn.jPickerOptionsIconInfo
localization PlainObject

alter these to change the text presented by the picker (e.g. different language)

Properties
Name Type Description
text PlainObject
Properties
Name Type Description
title string
newColor string
currentColor string
ok string
cancel string
tooltips PlainObject
Properties
Name Type Description
colors PlainObject
Properties
Name Type Description
newColor string
currentColor string
buttons PlainObject
Properties
Name Type Description
ok string
cancel string
hue external:jQuery.fn.jPickerOptionsRadioTextboxLocale
saturation external:jQuery.fn.jPickerOptionsRadioTextboxLocale
value external:jQuery.fn.jPickerOptionsRadioTextboxLocale
red external:jQuery.fn.jPickerOptionsRadioTextboxLocale
green external:jQuery.fn.jPickerOptionsRadioTextboxLocale
blue external:jQuery.fn.jPickerOptionsRadioTextboxLocale
alpha external:jQuery.fn.jPickerOptionsRadioTextboxLocale
hex PlainObject
Properties
Name Type Description
textbox string
alpha string
Source:

jPickerOptionsIconInfo

Type:
Properties:
Name Type Description
file string

Color Map/Color Bar/Color Picker arrow icon

width Float
height Float
Source:

jPickerOptionsImagesDimensionsArrow

Type:
Properties:
Name Type Description
width Float
height Float
arrow external:jQuery.fn.jPickerOptionsIconInfo
Source:

jPickerOptionsRadioTextboxLocale

Type:
Properties:
Name Type Description
radio string
textbox string
Source: