Skip to content

Commit 3fcba36

Browse files
committed
Button: Repeat limitation for button content in label option's desc
Fixes #282 Closes #284
1 parent 24e24e9 commit 3fcba36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

entries/button.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,15 @@
4545
<p>Icons to display, with or without text (see <a href="#option-text"><code>text</code></a> option). By default, the primary icon is displayed on the left of the label text and the secondary is displayed on the right. The positioning can be controlled via CSS.</p>
4646

4747
<p>The value for the <code>primary</code> and <code>secondary</code> properties must match <a href="/theming/icons/">an icon class name</a>, e.g., <code>"ui-icon-gear"</code>. For using only one icon: <code>icons: { primary: "ui-icon-locked" }</code>. For using two icons: <code>icons: { primary: "ui-icon-gear", secondary: "ui-icon-triangle-1-s" }</code>.</p>
48+
<p>When using an input of type button, submit or reset, icons are not supported.</p>
4849
</desc>
4950
<type name="Object" />
5051
</option>
5152
<option name="label" default="null" example-value='"custom label"'>
52-
<desc>Text to show in the button. When not specified (<code>null</code>), the element's HTML content is used, or its <code>value</code> attribute if the element is an input element of type submit or reset, or the HTML content of the associated label element if the element is an input of type radio or checkbox.</desc>
53+
<desc>
54+
<p>Text to show in the button. When not specified (<code>null</code>), the element's HTML content is used, or its <code>value</code> attribute if the element is an input element of type submit or reset, or the HTML content of the associated label element if the element is an input of type radio or checkbox.</p>
55+
<p>When using an input of type button, submit or reset, support is limited to plain text labels.</p>
56+
</desc>
5357
<type name="String" />
5458
</option>
5559
<option name="text" default="true" example-value="false">

0 commit comments

Comments
 (0)