Type Alias: GtkNotebookProps
GtkNotebookProps =
WidgetProps&object
Defined in: generated/jsx.ts:6876
Props for the GtkNotebook widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:6956 |
enablePopup? | boolean | If %TRUE, pressing the right mouse button on the notebook shows a page switching menu. | generated/jsx.ts:6878 |
groupName? | string | null | Group name for tab drag and drop. | generated/jsx.ts:6880 |
onChangeCurrentPage()? | (self, page) => boolean | null | Emitted when the current page should be changed. The default bindings for this signal are Ctrl+Alt+PgUp, Ctrl+Alt+PgDn, Ctrl+PgUp and Ctrl+PgDn. | generated/jsx.ts:6899 |
onCreateWindow()? | (self, page) => Gtk.Notebook | null | The ::create-window signal is emitted when a detachable tab is dropped on the root window. A handler for this signal can create a window containing a notebook where the tab will be attached. It is also responsible for moving/resizing the window and adding the necessary properties to the notebook (e.g. the GtkNotebook:group-name ). | generated/jsx.ts:6910 |
onFocusTab()? | (self, tab) => boolean | null | Emitted when a tab should be focused. | generated/jsx.ts:6912 |
onMoveFocusOut()? | (self, direction) => void | null | Emitted when focus was moved out. The default bindings for this signal are Ctrl+Tab, Ctrl+Shift+Tab, Ctrl+←, Ctrl+→, Ctrl+↑ and Ctrl+↓. | generated/jsx.ts:6922 |
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:6962 |
onPageAdded()? | (self, child, pageNum) => void | null | the ::page-added signal is emitted in the notebook right after a page is added to the notebook. | generated/jsx.ts:6927 |
onPageRemoved()? | (self, child, pageNum) => void | null | the ::page-removed signal is emitted in the notebook right after a page is removed from the notebook. | generated/jsx.ts:6932 |
onPageReordered()? | (self, child, pageNum) => void | null | the ::page-reordered signal is emitted in the notebook right after a page has been reordered. | generated/jsx.ts:6937 |
onReorderTab()? | (self, direction, moveToLast) => boolean | null | Emitted when the tab should be reordered. The default bindings for this signal are Alt+Home, Alt+End, Alt+PgUp, Alt+PgDn, Alt+←, Alt+→, Alt+↑ and Alt+↓. | generated/jsx.ts:6947 |
onSelectPage()? | (self, moveFocus) => boolean | null | Emitted when a page should be selected. The default binding for this signal is ␣. | generated/jsx.ts:6953 |
onSwitchPage()? | (self, page, pageNum) => void | null | Emitted when the user or a function changes the current page. | generated/jsx.ts:6955 |
page? | number | The index of the current page. | generated/jsx.ts:6882 |
ref? | Ref<Gtk.Notebook> | - | generated/jsx.ts:6968 |
scrollable? | boolean | If %TRUE, scroll arrows are added if there are too many pages to fit. | generated/jsx.ts:6884 |
showBorder? | boolean | Whether the border should be shown. | generated/jsx.ts:6886 |
showTabs? | boolean | Whether tabs should be shown. | generated/jsx.ts:6888 |
tabPos? | Gtk.PositionType | Which side of the notebook holds the tabs. | generated/jsx.ts:6890 |