Add postMessage methods to show/hide toolbar buttons
(cherry picked from commit c0d0ad7368
)
Change-Id: Ib5ecde5a53aa0aae2346e360423e72025edade3a
This commit is contained in:
parent
30cc128690
commit
11f5154432
1 changed files with 24 additions and 0 deletions
|
@ -3223,6 +3223,30 @@ Editor to WOPI host
|
|||
Shows the horizontal document ruler (Writer only)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code><b>Hide_Button</b></code></td>
|
||||
<td>
|
||||
<code><nobr>id: <string></nobr></code>
|
||||
</td>
|
||||
<td>
|
||||
Hides a button from the toolbar.<br/>
|
||||
<code>id</code> is the button ID as defined in the
|
||||
<a href="https://opengrok.libreoffice.org/search?project=online&q=&defs=createToolbar">createToolbar</a>
|
||||
function in <a href="https://opengrok.libreoffice.org/xref/online/loleaflet/js/toolbar.js">loleaflet/js/toolbar.js</a>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code><b>Show_Button</b></code></td>
|
||||
<td>
|
||||
<code><nobr>id: <string></nobr></code>
|
||||
</td>
|
||||
<td>
|
||||
Hides a button from the toolbar.<br/>
|
||||
<code>id</code> is the button ID as defined in the
|
||||
<a href="https://opengrok.libreoffice.org/search?project=online&q=&defs=createToolbar">createToolbar</a>
|
||||
function in <a href="https://opengrok.libreoffice.org/xref/online/loleaflet/js/toolbar.js">loleaflet/js/toolbar.js</a>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h5><a name="toolbar-button-ids">Finding toolbar button IDs</a></h5>
|
||||
|
|
Loading…
Reference in a new issue