Skip to content
New issue

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

Add WColorPicker widget #158

Merged
merged 9 commits into from
May 12, 2020
Merged

Add WColorPicker widget #158

merged 9 commits into from
May 12, 2020

Conversation

captaincrutches
Copy link
Contributor

This is a simple widget that provides an <input type="color"> element. Its value can be retrieved or set by either a string (which must be some form of RGB) or a WColor.

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/color for details on the element itself.

captaincrutches and others added 9 commits September 21, 2019 21:10
This is unrelated to WColorPicker itself. I'll do this separately.

~Roel
- Don't use doJavaScript to set color, instead use updateDom():
 - introduced colorToHex utility function
- INPUT_SIGNAL being constexpr is nice and all, but cnor (the Wt-to-JWt
toolchain) does not work with it and I think making it simply static is
not going to be an issue
- Added proper copyright notice, changed include guard name a bit
@emweb emweb merged commit 34addc7 into emweb:master May 12, 2020
@captaincrutches captaincrutches deleted the color-picker branch May 12, 2020 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants