Documentation

slack.validateColorString() function

slack.validateColorString() ensures a string contains a valid hex color code.

Function type signature
(color: string) => string
For more information, see Function type signatures.

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!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.