Global Header
A top header combining the product name, main views, and shared actions.
Usage guide
#Collect the app's brand, navigation, and shared actions. Keep individual page titles in the body.
- Brand
- Put the logo in the
logoslot. - Navigation
- Place tabs in the
tabsslot. To connect tab content, build the structure insidesy-tab-group. - Shared actions
- Place account, settings, and similar actions in the
actionsslot.
Examples
#Feature examples
#Choose a feature from 10 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-global-header>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
string | '' | Product name shown in the header. The HTML attribute is title. | |
boolean | false | Stick to the top of the nearest scroll container. | |
boolean | false | Show the search input. | |
boolean | false | Show the help action button. | |
boolean | false | Show the notification action button. |
Events
| Event | Detail | Description |
|---|---|---|
CustomEvent<unknown> | Emitted when the value or selection state changes. | |
CustomEvent<unknown> | Read the result from the event's detail. | |
CustomEvent<unknown> | Emitted when the user selects an item. |
Methods
| Method | Returns | Description |
|---|---|---|
Promise<void> | Recalculate the tabs shown in the overflow menu for the current width. |
Slots
| Slot | Description |
|---|---|
| Content displayed in the logo area. | |
| Content displayed in the tabs area. | |
| Content displayed in the actions area. |