Skip to main content

Type Alias: GtkViewportProps

GtkViewportProps = WidgetProps & object

Defined in: generated/jsx.ts:9103

Props for the GtkViewport widget.

Type Declaration

NameTypeDescriptionDefined in
child?Gtk.Widget | nullThe child widget.generated/jsx.ts:9105
children?ReactNode-generated/jsx.ts:9130
hadjustment?Gtk.AdjustmentHorizontal GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:9119
hscrollPolicy?Gtk.ScrollablePolicyDetermines when horizontal scrolling should start.generated/jsx.ts:9121
ref?Ref<Gtk.Viewport>-generated/jsx.ts:9131
scrollToFocus?booleanWhether to scroll when the focus changes. Before 4.6.2, this property was mistakenly defaulting to FALSE, so if your code needs to work with older versions, consider setting it explicitly to TRUE.generated/jsx.ts:9113
vadjustment?Gtk.AdjustmentVertical GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:9127
vscrollPolicy?Gtk.ScrollablePolicyDetermines when vertical scrolling should start.generated/jsx.ts:9129