You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add at π reaction to this issue if you want Huebee to add jQuery plugin support. Do not add a "+1" comment β they will be deleted. Subscribe using the button in the sidebar for updates on this feature request.
I understand some users might be scared off by vanilla JS syntax new Huebee(), and are more comfortable with jQuery syntax .huebee(). Huebee jQuery plugin support would look like:
// initializevar$colorInput=$('.color-input').huebee({// options});// methods$colorInput.huebee('setColor','#C25');$colorInput.huebee('open');$colorInput.huebee('close');// events$colorInput.on('change.huebee',function(event,color,hue,sat,lum){console.log('color changed to: '+color);});
I've decided against jQuery support as I'd like to keep Huebee's source code small and simple. I don't feel jQuery support adds that much value over vanilla JS. jQuery plugin methods (i.e. .huebee( 'setColor', '#C25' ) do more to obfuscate actual JavaScript than to help understand it.
But, jQuery is widely popular and Huebee's user base is likely more comfortable with it, than vanilla JS.
The text was updated successfully, but these errors were encountered:
Add at π reaction to this issue if you want Huebee to add jQuery plugin support. Do not add a "+1" comment β they will be deleted. Subscribe using the button in the sidebar for updates on this feature request.
I understand some users might be scared off by vanilla JS syntax
new Huebee()
, and are more comfortable with jQuery syntax.huebee()
. Huebee jQuery plugin support would look like:I've decided against jQuery support as I'd like to keep Huebee's source code small and simple. I don't feel jQuery support adds that much value over vanilla JS. jQuery plugin methods (i.e.
.huebee( 'setColor', '#C25' )
do more to obfuscate actual JavaScript than to help understand it.But, jQuery is widely popular and Huebee's user base is likely more comfortable with it, than vanilla JS.
The text was updated successfully, but these errors were encountered: