We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vote for your preferred method to set initial color by adding a π , π , or β€οΈ reaction for the corresponding solution
Do not add "+1" comment β they will be deleted. Subscribe for issue notifications using the button in the sidebar.
You can set initial color with <input> elements by setting their value
<input>
<input value="#C25" />
But there's no standard way to set initial color for non-inputs.
initialColor
new Huebee( elem, { initialColor: '#C25', }
<button data-huebee='{ "initialColor": "#C25" }'>Set color</button>
<button>#C25</button>
style=" background-color: ..." attribute
<button style="background-color: #C25">#C25</button>
The text was updated successfully, but these errors were encountered:
π
The JS options approach will provide more flexibility and keep reliance away from the markup as much as possible, IMO
Sorry, something went wrong.
No branches or pull requests
Vote for your preferred method to set initial color by adding a π , π , or β€οΈ reaction for the corresponding solution
Do not add "+1" comment β they will be deleted. Subscribe for issue notifications using the button in the sidebar.
You can set initial color with
<input>
elements by setting their valueBut there's no standard way to set initial color for non-inputs.
π Add
initialColor
option.π Read initial color from text
β€οΈ Read initial color from
style=" background-color: ..." attribute
The text was updated successfully, but these errors were encountered: