Remove buttons (5.9x)

Version 2021/07

In latest AppGini there are additional features like CSV-Import and keyboard shortcuts. For those there are new buttons in the navbar, which somehow break the inline-buttons user interface.

You can get rid of them with a couple of useful new functions:

Default - Before

After

<!-- file: hooks/header-extras.php -->
<script>
     AppGiniHelper.common.getNavbar()
         .hideImportCSVButton()
         .hideKeyboardShortcutsButton()
         .fix();
</script>

Hide CSV-import button

Version 2021/07

AppGiniHelper.common.getNavbar().hideImportCSVButton();

Hide keyboard shortcuts button

Version 2021/07

AppGiniHelper.common.getNavbar().hideKeyboardShortcutsButton();

Hide Admin menu button

AppGiniHelper.common.getNavbar().hideAdminAreaButton();
AppGiniHelper.common.getNavbar().hideUserProfileButton();

Hide logout button

AppGiniHelper.common.getNavbar().hideLogoutButton();

There are a few more new functions which may be interesting for you:

Do you like it?