Skip to content

Commit 18345e5

Browse files
committed
Correct gauge help text for dynamic property segments
1 parent 5e364f3 commit 18345e5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

nodes/widgets/locales/en-US/ui_gauge.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ <h3>Dynamic Properties (Inputs)</h3>
4646
<dd>Update the label rendered above the Gauge</dd>
4747
<dt class="optional">segments <span class="property-type">array</span></dt>
4848
<dd>
49-
Change the options available in the dropdown at runtime
49+
Pass in an array of objects, each containing properties <code>color</code> and <code>from</code> to update the segments settings.
50+
The entries in the array must be in increasing order of <code>from</code>.
51+
In addition the overlay specification for Tile gauges may be updated by including properties <code>textType</code> and <code>text</code>.
52+
<code>textType</code> can be one of <i>label</i>, <i>value</i>, <i>str</i>, <i>env</i> or <i>none</i>.
53+
For <i>str</i> and <i>env</i>, <code>text</code> should be the required text or environment variable name, otherwise it should be an empty string.
54+
<code>textType</code> and <code>text</code> may be omitted if not required.
5055
<ul>
51-
<li><code>Array&lt;{color: String, from: Number}&gt;</code></li>
56+
<li><code>Array&lt;{color: String, from: Number, textType: String, text: String}&gt;</code></li>
5257
</ul>
5358
</dd>
5459
<dt class="optional">gtype <span class="property-type">see detail</span></dt>

0 commit comments

Comments
 (0)