Automattic / Iris

A(n awesome) Color Picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set color palette after instantiation?

sagalbot opened this issue · comments

Is it possible to set a color palette after the color picker has been instantiated? Advanced Custom Fields uses the Iris color picker as one of the available fields, and I'd like to be able to set the color palette without having to edit the ACF files.

Thanks!

As you can see in the options section of the docs, all of the initial options can be overriden.

$('iris element').iris( 'option', 'palettes', [/*your palettes*/] );

Ah, of course. Sorry for the obvious question and thanks for the quick reply.