Skip to content

Add WColorPicker widget#158

Merged
emweb merged 9 commits into
emweb:masterfrom
captaincrutches:color-picker
May 12, 2020
Merged

Add WColorPicker widget#158
emweb merged 9 commits into
emweb:masterfrom
captaincrutches:color-picker

Conversation

@captaincrutches

Copy link
Copy Markdown
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