Skip to content

Commit

Permalink
Modified 'view' parameter description because it is now also availabl…
Browse files Browse the repository at this point in the history
…e in filter scripts for topics.
  • Loading branch information
henner28 committed Apr 27, 2020
1 parent 08b0c9e commit a19b152
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions de/dashboard_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ <h2 id="filter_script">Filter-Skript</h2>
</pre>
<p>
Funktionsweise wie <a href="filter-scripts.html">Topic-Filterskripte</a>.
Hinzugekommen ist jedoch der Parameter <tt>view</tt>, über den auf Eigenschaften
des Dashes zugegriffen werden kann. Es lässt sich z.&nbsp;B. die
Auch hier kann über den Parameter <tt>view</tt> auf Eigenschaften
des Dashes zugegriffen werden. Es lässt sich z.&nbsp;B. die
Text- oder Hintergrundfarbe in Abhängigkeit von der erhaltenen Nachricht
<tt>msg.text</tt> ändern.</p>
<div class="indent">
Expand Down
7 changes: 3 additions & 4 deletions en/dashboard_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ <h2 id="filter_script">Filter script</h2>
}
</pre>
<p>
Functionality is like <a href="filter-scripts.html">Filter scripts for topics</a>.
However, the parameter <tt>view</tt> has been added, which can be used to
access properties of the dash. For example, the text or background color
can be changed depending on the received message <tt>msg.text</tt>.</p>
Functionality is like <a href="filter-scripts.html">Filter scripts for topics</a>. Likewise,
the parameter <tt>view</tt> can be used to properties of the dash. For example,
the text or background color can be changed depending on the received message <tt>msg.text</tt>.</p>
<div class="indent">
<p><u>Example:</u></p>
<pre>view.setTextColor(MQTT.Color.RED);</pre>
Expand Down

0 comments on commit a19b152

Please sign in to comment.