Using the page header from a plugin page
A plugin page is mounted under the app's page header (the plugin's icon and label). The
props passed to mountPlugin include three header hooks:
headerActions— an empty element inside the header row, to the right of the title. Move or render your own controls into it; it takes the remaining width and may shrink (min-width: 0), so your controls should size themselves and collapse their own overflow.setHeaderTitleHidden(hidden)— hides the host title (icon and label) soheaderActionscan own the whole row, for instance with a back button and an editable name while a record is open. CallsetHeaderTitleHidden(false)to bring the title back.setHeaderHidden(hidden)— hides the whole host header row, for a page that renders its own header (a library page with its own title, search and actions). TheheaderActionselement stays in the page, so showing the row again later is safe.
Both setters reset whenever the page is loaded again, and are absent on hosts that predate
them, so call them as setHeaderTitleHidden?.(true).