Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Getting an instance of the farbtastic object #23

Open
danielsedlacek opened this issue Feb 26, 2014 · 0 comments
Open

Getting an instance of the farbtastic object #23

danielsedlacek opened this issue Feb 26, 2014 · 0 comments

Comments

@danielsedlacek
Copy link

It took me some time to find out how to call the methods like .setColor(string).

It would be great if you could update the documentation for others to specify how to get the instance of the farbtastic object where you call the method.

$('#placeholder').farbtastic('#input-field');
var picker = $.farbtastic('#placeholder');
picker.setColor('#FFFFFF');

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant