slack.validateColorString() function
slack.validateColorString()
ensures a string contains a valid hex color code.
Function type signature
(color: string) => string
Parameters
color
(Required) Hex color code.
Examples
Validate a hex color code string
import "slack"
slack.validateColorString(color: "#fff")
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.