EastDesire / jscolor

JavaScript color picker with opacity (alpha channel) and customizable palette. Single file of plain JS with no dependencies.
http://jscolor.com
232 stars 72 forks source link

picker control cross-referencing #16

Open ackspony opened 7 years ago

ackspony commented 7 years ago

The purposes of these changes are to facilitate different ways of manipulating / customizing the color picker control by CSS.

  1. Set the class name 'jscolor-picker-control' in the picker control wrap so it can be targeted in CSS.

  2. Generate a handle for picker instance and save it in the 'data-picker-handle' attribute in both the picker control wrap and callee for cross-reference.

  3. Save the input element's "id" attribute in the 'data-picker-input-id' attribute, (should it have the "id" attribute) for cross-reference.

  4. Save the input element's "class" attribute in the 'data-picker-input-class' attribute, (should it have the "class" attribute) for cross-reference.