coloris ( defaultColour ; swatches ; targetScript )
Returns html and javascript for coloris colour picker to be rendered in a webviewer.
Be the first to rate this function Log in to vote
Jonni™ - Show more from this author |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Along with coloris.js (https://www.briandunning.com/cf/2773) this function returns html and javascript for coloris colour picker to be rendered in a webviewer (200x320px).
Make sure to have supporting custom function installed (coloris.js).
defaultColour is declared as a hex colour code prefixed with a #
swatches are declared as an array of hex colour codes prefixed with a # in single quotes, separated with a comma. You can declare a series of preset swatches that will appear under the main picker in three rows of 6 swatches (a total of 18).
targetScript is the script set to run and receive the picked colour. The colour can be picked by the scriptParameter and processed as needed.
Written with initial input from pctechtv.com
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.