Skip to content

Conversation

ranaya-formant
Copy link
Contributor

@ranaya-formant ranaya-formant commented Feb 15, 2023

Label Layer

  • support for JSON or text
  • support for jq extraction on JSON
  • support for color and text color
  • support for templating
  • support for color states based on evaluated values

Screen Shot 2023-02-14 at 9 29 15 PM

<LabelLayer
    dataSource={DataSourceBuilder.telemetry("ekobot_device", "json")}
    value="hey"
    template="Value: {}"
    color="red"
    textColor="black"
    jsonQuery=".abc"
    colorStates={{
      "123": {
        color: "blue",
        textColor: "white",
      },
    }}
  />

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.

1 participant