NEW4.00.00 · Released 21 December 2022
NEWfinPOWER Connect
Released in
4.00.00
21 December 2022
  1. Opened15 Aug
  2. Closed23 Aug
  3. Released21 Dec
Article 19442 Job J029362

HTML Widgets; widget.UI.HtmlNamedColourToRgb function added

A new function, widget.UI.HtmlNamedColourToRgb has been added.

This will take a named HTML Colour such as "red" and convert it to HTML RGB format, i.e., "#FF0000", e.g.:

var rgb = widget.UI.HtmlNamedColourToRgb("LightBlue");

NOTE: If the named colour is unknown, black ("#000000") is returned and, if the supplied named colour already starts with "#", it will be returned unchanged.