summaryrefslogtreecommitdiff
path: root/design/widgets/listbox.tex
diff options
context:
space:
mode:
Diffstat (limited to 'design/widgets/listbox.tex')
-rw-r--r--design/widgets/listbox.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/design/widgets/listbox.tex b/design/widgets/listbox.tex
index dd9fe19..992cbde 100644
--- a/design/widgets/listbox.tex
+++ b/design/widgets/listbox.tex
@@ -24,3 +24,13 @@ Et listbox item har flg. attributter:
vises i overskriften.
\end{itemize}
Ved commit returneres listboxens navn med det valgte items value.
+
+\begin{lstlisting}[title={Et eksempel på et listbox tag med item tags indeni.}]
+<listbox name="foobar" value="option1" layout="vbox">
+ <item caption="Option 1" value="option1"/>
+ <item type="separator"/>
+ <item caption="Option 2" value="option2"/>
+ <item type="header" caption="En overskrift"/>
+ <item caption="Option 3" value="option3"/>
+</listbox>
+\end{lstlisting}