Skip to content

Commit ed9a394

Browse files
committed
Toolbar: Document theming and classes option
1 parent 432cda5 commit ed9a394

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

entries/toolbar.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,34 @@
1919
]]></code></pre>
2020
<iframe src="/resources/toolbar/example1.html" style="width:100%;height:90px;border:0px"></iframe>
2121

22+
<xi:include href="../includes/widget-theming.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
23+
24+
<ul>
25+
<li>
26+
<code>ui-toolbar-header</code>: The outermost container for toolbar header that provides border.
27+
<ul>
28+
<li>
29+
<code>ui-toolbar-header-button-left</code>: This class can be applied to position buttons to left in toolbar header. You can provide extra classes for left button using classes option and this class as key
30+
</li>
31+
<li>
32+
<code>ui-toolbar-title</code>: Title element of the toolbar
33+
</li>
34+
<li>
35+
<code>ui-toolbar-header-button-right</code>: This class can be applied to position buttons to right in toolbar header. You can provide extra classes for right button using classes option and this class as key
36+
</li>
37+
</ul>
38+
</li>
39+
<li>
40+
<code>ui-toolbar-footer</code>: The outermost container for toolbar header that provides border.
41+
<p><strong>Note:</strong> Toolbar footer doesn't provide classes to position button. Refer toolbar demos for more information</p>
42+
<ul>
43+
<li>
44+
<code>ui-toolbar-title</code>: Title element of the toolbar
45+
</li>
46+
</ul>
47+
</li>
48+
</ul>
49+
2250
<h3>Default header features</h3>
2351

2452
<p>The header <placeholder name="name"/> inherits its theme swatch from the page by default but you can easily set the theme swatch color by adding the <code>data-theme</code> attribute to the header. For example, <code>data-theme="b"</code>. When you use external headers you must set a theme, because there is no parent page from which it can inherit a theme.</p>
@@ -272,6 +300,11 @@ If you're doing this programmatically, set this option inside the mobileinit eve
272300
</desc>
273301
<type name="String" />
274302
</option>
303+
<option name="classes" type="Object">
304+
<default>{}</default>
305+
<xi:include href="../includes/classes-option-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
306+
<xi:include href="../includes/classes-option-example.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
307+
</option>
275308
<xi:include href="../includes/widget-option-defaults.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
276309
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
277310
<option name="disablePageZoom" default="true" example-value="false">

0 commit comments

Comments
 (0)