Configure the Visible
parameter to show or hide specified components. This topic describes how to show or hide a component by using the More Menus button as an example.
Demonstration
Hide the button
Show the button
Syntax
Expression.CommandBars(CommandBarId).Visible
Expression: the document type application object.
Example
async function example() { await instance.ready(); const app = instance.Application; // Obtain the More Menu button for page customization. const moreMenus = await app.CommandBars('MoreMenus'); // Hide the More Menu button. moreMenus.Visible = false; // Obtain the status of the More Menu button. const visible = await moreMenus.Visible; console.log(visible); }