Skip to main content

Type Alias: GtkNotebookProps

GtkNotebookProps = WidgetProps & object

Defined in: generated/jsx.ts:6876

Props for the GtkNotebook widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:6956
enablePopup?booleanIf %TRUE, pressing the right mouse button on the notebook shows a page switching menu.generated/jsx.ts:6878
groupName?string | nullGroup name for tab drag and drop.generated/jsx.ts:6880
onChangeCurrentPage()?(self, page) => boolean | nullEmitted 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 | nullThe ::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 | nullEmitted when a tab should be focused.generated/jsx.ts:6912
onMoveFocusOut()?(self, direction) => void | nullEmitted 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 | nullCalled 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 | nullthe ::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 | nullthe ::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 | nullthe ::page-reordered signal is emitted in the notebook right after a page has been reordered.generated/jsx.ts:6937
onReorderTab()?(self, direction, moveToLast) => boolean | nullEmitted 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 | nullEmitted when a page should be selected. The default binding for this signal is .generated/jsx.ts:6953
onSwitchPage()?(self, page, pageNum) => void | nullEmitted when the user or a function changes the current page.generated/jsx.ts:6955
page?numberThe index of the current page.generated/jsx.ts:6882
ref?Ref<Gtk.Notebook>-generated/jsx.ts:6968
scrollable?booleanIf %TRUE, scroll arrows are added if there are too many pages to fit.generated/jsx.ts:6884
showBorder?booleanWhether the border should be shown.generated/jsx.ts:6886
showTabs?booleanWhether tabs should be shown.generated/jsx.ts:6888
tabPos?Gtk.PositionTypeWhich side of the notebook holds the tabs.generated/jsx.ts:6890