Skip to content

Commit

Permalink
Add example how to define tab and group annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar committed Oct 27, 2023
1 parent 54d744a commit 77a8db2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Modelica/package.mo
Expand Up @@ -1271,6 +1271,19 @@ Using the <strong>tab</strong> annotation, the following rules shall be followed
on parameters shown in another tab.
</li>
</ol>

<h5>Example</h5>
<p>
A&nbsp;parameter utilizing both the tab and the group annotation:
</p>

<blockquote><pre>
<strong>parameter</strong> Modelica.Units.SI.Voltage V_max(start=230) \"Maximum voltage\"
<strong>annotation</strong>(
Dialog(
tab=\"Speed controller\",
group=\"Operating limits\"));
</pre></blockquote>
</html>"));
end Format;

Expand Down

0 comments on commit 77a8db2

Please sign in to comment.