Type Alias: GtkNotebookProps
GtkNotebookProps =
WidgetProps&object
Defined in: generated/jsx.ts:5558
Props for the GtkNotebook widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:5638 |
enablePopup? | boolean | If %TRUE, pressing the right mouse button on the notebook shows a page switching menu. | generated/jsx.ts:5560 |
groupName? | string | null | Group name for tab drag and drop. | generated/jsx.ts:5562 |
onChangeCurrentPage? | (page, self) => 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:5581 |
onCreateWindow? | (page, self) => 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:5592 |
onFocusTab? | (tab, self) => boolean | null | Emitted when a tab should be focused. | generated/jsx.ts:5594 |
onMoveFocusOut? | (direction, self) => 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:5604 |
onPageAdded? | (child, pageNum, self) => void | null | the ::page-added signal is emitted in the notebook right after a page is added to the notebook. | generated/jsx.ts:5609 |
onPageRemoved? | (child, pageNum, self) => void | null | the ::page-removed signal is emitted in the notebook right after a page is removed from the notebook. | generated/jsx.ts:5614 |
onPageReordered? | (child, pageNum, self) => void | null | the ::page-reordered signal is emitted in the notebook right after a page has been reordered. | generated/jsx.ts:5619 |
onReorderTab? | (direction, moveToLast, self) => 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:5629 |
onSelectPage? | (moveFocus, self) => boolean | null | Emitted when a page should be selected. The default binding for this signal is ␣. | generated/jsx.ts:5635 |
onSwitchPage? | (page, pageNum, self) => void | null | Emitted when the user or a function changes the current page. | generated/jsx.ts:5637 |
page? | number | The index of the current page. | generated/jsx.ts:5564 |
ref? | Ref<Gtk.Notebook> | - | generated/jsx.ts:5639 |
scrollable? | boolean | If %TRUE, scroll arrows are added if there are too many pages to fit. | generated/jsx.ts:5566 |
showBorder? | boolean | Whether the border should be shown. | generated/jsx.ts:5568 |
showTabs? | boolean | Whether tabs should be shown. | generated/jsx.ts:5570 |
tabPos? | Gtk.PositionType | Which side of the notebook holds the tabs. | generated/jsx.ts:5572 |