Skip to content

Commit 337de87

Browse files
committed
Button: Fix example values for icon options
Fixes gh-318
1 parent c91ac2a commit 337de87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/button.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
<xi:include href="../includes/classes-option-example.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
4343
</option>
4444
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
45-
<option name="icon" default="null" example-value='{ icon: "ui-icon-gear" }'>
45+
<option name="icon" default="null" example-value='"ui-icon-gear"'>
4646
<desc>
4747
<p>Icon to display, with or without text (see <a href="#option-showLabel"><code>showLabel</code></a> option). By default, the icon is displayed on the left of the label text. The positioning can be controlled using the <a href="#option-iconPosition"><code>iconPosition</code></a> option.</p>
4848
<p>The value for this option must match <a href="/theming/icons/">an icon class name</a>, e.g., <code>"ui-icon-gear"</code>.</p>
4949
<p>When using an input of type button, submit or reset, icons are not supported.</p>
5050
</desc>
5151
<type name="String" />
5252
</option>
53-
<option name="iconPosition" default='"beginning"' example-value='{ iconPositon: "end" }'>
53+
<option name="iconPosition" default='"beginning"' example-value='"end"'>
5454
<desc>
5555
<p>Where to display the <a href="#option-icon"><code>icon</code></a>: Valid values are "beginning", "end", "top" and "bottom". In a left-to-right (LTR) display, "beginning" refers to the left, in a right-to-left (RTL, e.g. in Hebrew or Arabic), it refers to the right.</p>
5656
</desc>

0 commit comments

Comments
 (0)