1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-20 11:54:23 +02:00
ironbar/docs/modules/Label.md
Jake Stanger 6c622864b3
feat: new label module
Takes a text label, with the ability to include embedded scripts.

Resolves #80.
2023-04-07 14:29:07 +01:00

1.3 KiB

Displays custom text, with the ability to embed scripts.

Configuration

Type: label

Name Type Default Description
label string null Text, optionally with embedded scripts.
JSON
{
  "end": [
    {
      "type": "label",
      "label": "random num: {{500:echo $RANDOM}}"
    }
  ]
}

TOML
[[end]]
type = "label"
label = "random num: {{500:echo $RANDOM}}"
YAML
end:
  - type: "label"
    label: "random num: {{500:echo $RANDOM}}"
Corn
{
  end = [
    {
      type = "label"
      label = "random num: {{500:echo $RANDOM}}"
    }
  ]
}

Styling

Selector Description
#label Label widget