Skip to content

Commit 1cf372a

Browse files
committed
Toolbar: Added missing methods
Fixes gh-282 Closes gh-285
1 parent d7e56e3 commit 1cf372a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

entries/toolbar.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,30 @@ If you're doing this programmatically, set this option inside the mobileinit eve
365365
<xi:include href="../includes/widget-method-destroy.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
366366
<xi:include href="../includes/widget-method-disable.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
367367
<xi:include href="../includes/widget-method-enable.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
368+
<method name="hide">
369+
<desc>This method is provided by the <code>fixedToolbar</code> extension.
370+
<p>Hides the toolbar.</p>
371+
</desc>
372+
<arguments></arguments>
373+
</method>
368374
<xi:include href="../includes/widget-method-option.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
369375
<method name="refresh">
370376
<desc>Update the <placeholder name="name"/>.
371377
<p>If you manipulate a <placeholder name="name"/> via JavaScript, you must call the <code>refresh</code> method on it to update the visual styling.</p>
372378
</desc>
373379
</method>
380+
<method name="show">
381+
<desc>This method is provided by the <code>fixedToolbar</code> extension.
382+
<p>Shows the toolbar.</p>
383+
</desc>
384+
<arguments></arguments>
385+
</method>
386+
<method name="toggle">
387+
<desc>This method is provided by the <code>fixedToolbar</code> extension.
388+
<p>Calls either the show or the hide method, depending on whether the toolbar is visible.</p>
389+
</desc>
390+
<arguments></arguments>
391+
</method>
374392
<method name="updatePagePadding">
375393
<desc>
376394
Sets the top and bottom padding for the content element of the page to the height of the <placeholder name="name"/>.

0 commit comments

Comments
 (0)