NEW3.02.03 · Released 22 November 2019
NEWfinPOWER Connect
Released in
3.02.03
22 November 2019
- Opened20 Sep
- Closed27 Sep
- Released22 Nov
Article 16404
Job J022990
HTML Widgets; New function to determine whether a colour is light or dark
The following functions are now available on the JavaScript widget object:
- IsColourDark
- IsColourLight
There functions should be passed an HTML Hex colour, e.g.,:
if (widget.IsColourDark("#202020") {window.alert("dark")}
NOTE: The algorithm used by these functions is the same one used by finPOWER Connect Cloud and may not perfectly suit your needs.