Type Alias: AdwTabViewProps
AdwTabViewProps =
WidgetProps&object
Defined in: generated/jsx.ts:9529
Props for the AdwTabView widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:9645 |
defaultIcon? | Gio.Icon | Default page icon. If a page doesn't provide its own icon via AdwTabPage.icon, a default icon may be used instead for contexts where having an icon is necessary. AdwTabBar will use default icon for pinned tabs in case the page is not loading, doesn't have an icon and an indicator. Default icon is never used for tabs that aren't pinned. AdwTabOverview will use default icon for pages with missing thumbnails. By default, the adw-tab-icon-missing-symbolic icon is used. | generated/jsx.ts:9546 |
menuModel? | Gio.MenuModel | null | Tab context menu model. When a context menu is shown for a tab, it will be constructed from the provided menu model. Use the AdwTabView.:setup-menu signal to set up the menu actions for the particular tab. | generated/jsx.ts:9554 |
onClosePage()? | (self, page) => boolean | null | Emitted after TabViewclose_page has been called for page. The handler is expected to call TabViewclose_page_finish to confirm or reject the closing. The default handler will immediately confirm closing for non-pinned pages, or reject it for pinned pages, equivalent to the following example: static gboolean close_page_cb (AdwTabView *view, AdwTabPage *page, gpointer user_data) { adw_tab_view_close_page_finish (view, page, !adw_tab_page_get_pinned (page)); return GDK_EVENT_STOP; } The TabViewclose_page_finish call doesn't have to happen inside the handler, so can be used to do asynchronous checks before confirming the closing. A typical reason to connect to this signal is to show a confirmation dialog for closing a tab. The signal handler should return GDK_EVENT_STOP to stop propagation or GDK_EVENT_CONTINUE to invoke the default handler. | generated/jsx.ts:9598 |
onCreateWindow()? | (self) => Adw.TabView | null | Emitted when a tab should be transferred into a new window. This can happen after a tab has been dropped on desktop. The signal handler is expected to create a new window, position it as needed and return its AdwTabView that the page will be transferred into. | generated/jsx.ts:9607 |
onIndicatorActivated()? | (self, page) => void | null | Emitted after the indicator icon on page has been activated. See AdwTabPage.indicator-icon and AdwTabPage.indicator-activatable. | generated/jsx.ts:9614 |
onNotify? | (self, propName) => void | null | Called when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case) | generated/jsx.ts:9651 |
onPageAttached()? | (self, page, position) => void | null | Emitted when a page has been created or transferred to self. A typical reason to connect to this signal would be to connect to page signals for things such as updating window title. | generated/jsx.ts:9621 |
onPageDetached()? | (self, page, position) => void | null | Emitted when a page has been removed or transferred to another view. A typical reason to connect to this signal would be to disconnect signal handlers connected in the AdwTabView.:page-attached handler. It is important not to try and destroy the page child in the handler of this function as the child might merely be moved to another window; use child dispose handler for that or do it in sync with your TabViewclose_page_finish calls. | generated/jsx.ts:9633 |
onPageReordered()? | (self, page, position) => void | null | Emitted after page has been reordered to position. | generated/jsx.ts:9635 |
onSetupMenu()? | (self, page) => void | null | Emitted when a context menu is opened or closed for page. If the menu has been closed, page will be set to NULL. It can be used to set up menu actions before showing the menu, for example disable actions not applicable to page. | generated/jsx.ts:9644 |
ref? | Ref<Adw.TabView> | - | generated/jsx.ts:9654 |
selectedPage? | Adw.TabPage | null | The currently selected page. | generated/jsx.ts:9556 |
shortcuts? | Adw.TabViewShortcuts | The enabled shortcuts. See AdwTabViewShortcuts for the list of the available shortcuts. All of the shortcuts are enabled by default. TabViewadd_shortcuts and TabViewremove_shortcuts provide a convenient way to manage individual shortcuts. | generated/jsx.ts:9566 |