Interface: GtkLabelProps
Defined in: packages/react/src/generated/jsx.ts:4558
Props for the GtkLabel widget.
Extends
Properties
accessibleActiveDescendant?
optionalaccessibleActiveDescendant:Widget
Defined in: packages/react/src/jsx.ts:1175
Inherited from
WidgetProps.accessibleActiveDescendant
accessibleAutocomplete?
optionalaccessibleAutocomplete:AccessibleAutocomplete
Defined in: packages/react/src/jsx.ts:1144
Inherited from
WidgetProps.accessibleAutocomplete
accessibleBusy?
optionalaccessibleBusy:boolean
Defined in: packages/react/src/jsx.ts:1165
Inherited from
accessibleChecked?
optionalaccessibleChecked:AccessibleTristate
Defined in: packages/react/src/jsx.ts:1166
Inherited from
accessibleColCount?
optionalaccessibleColCount:number
Defined in: packages/react/src/jsx.ts:1176
Inherited from
WidgetProps.accessibleColCount
accessibleColIndex?
optionalaccessibleColIndex:number
Defined in: packages/react/src/jsx.ts:1177
Inherited from
WidgetProps.accessibleColIndex
accessibleColIndexText?
optionalaccessibleColIndexText:string
Defined in: packages/react/src/jsx.ts:1178
Inherited from
WidgetProps.accessibleColIndexText
accessibleColSpan?
optionalaccessibleColSpan:number
Defined in: packages/react/src/jsx.ts:1179
Inherited from
accessibleControls?
optionalaccessibleControls:Widget[]
Defined in: packages/react/src/jsx.ts:1180
Inherited from
WidgetProps.accessibleControls
accessibleDescribedBy?
optionalaccessibleDescribedBy:Widget[]
Defined in: packages/react/src/jsx.ts:1181
Inherited from
WidgetProps.accessibleDescribedBy
accessibleDescription?
optionalaccessibleDescription:string
Defined in: packages/react/src/jsx.ts:1145
Inherited from
WidgetProps.accessibleDescription
accessibleDetails?
optionalaccessibleDetails:Widget[]
Defined in: packages/react/src/jsx.ts:1182
Inherited from
accessibleDisabled?
optionalaccessibleDisabled:boolean
Defined in: packages/react/src/jsx.ts:1167
Inherited from
WidgetProps.accessibleDisabled
accessibleErrorMessage?
optionalaccessibleErrorMessage:Widget[]
Defined in: packages/react/src/jsx.ts:1183
Inherited from
WidgetProps.accessibleErrorMessage
accessibleExpanded?
optionalaccessibleExpanded:boolean
Defined in: packages/react/src/jsx.ts:1168
Inherited from
WidgetProps.accessibleExpanded
accessibleFlowTo?
optionalaccessibleFlowTo:Widget[]
Defined in: packages/react/src/jsx.ts:1184
Inherited from
accessibleHasPopup?
optionalaccessibleHasPopup:boolean
Defined in: packages/react/src/jsx.ts:1146
Inherited from
WidgetProps.accessibleHasPopup
accessibleHelpText?
optionalaccessibleHelpText:string
Defined in: packages/react/src/jsx.ts:1163
Inherited from
WidgetProps.accessibleHelpText
accessibleHidden?
optionalaccessibleHidden:boolean
Defined in: packages/react/src/jsx.ts:1169
Inherited from
accessibleInvalid?
optionalaccessibleInvalid:AccessibleInvalidState
Defined in: packages/react/src/jsx.ts:1170
Inherited from
accessibleKeyShortcuts?
optionalaccessibleKeyShortcuts:string
Defined in: packages/react/src/jsx.ts:1147
Inherited from
WidgetProps.accessibleKeyShortcuts
accessibleLabel?
optionalaccessibleLabel:string
Defined in: packages/react/src/jsx.ts:1148
Inherited from
accessibleLabelledBy?
optionalaccessibleLabelledBy:Widget[]
Defined in: packages/react/src/jsx.ts:1185
Inherited from
WidgetProps.accessibleLabelledBy
accessibleLevel?
optionalaccessibleLevel:number
Defined in: packages/react/src/jsx.ts:1149
Inherited from
accessibleModal?
optionalaccessibleModal:boolean
Defined in: packages/react/src/jsx.ts:1150
Inherited from
accessibleMultiLine?
optionalaccessibleMultiLine:boolean
Defined in: packages/react/src/jsx.ts:1151
Inherited from
WidgetProps.accessibleMultiLine
accessibleMultiSelectable?
optionalaccessibleMultiSelectable:boolean
Defined in: packages/react/src/jsx.ts:1152
Inherited from
WidgetProps.accessibleMultiSelectable
accessibleOrientation?
optionalaccessibleOrientation:Orientation
Defined in: packages/react/src/jsx.ts:1153
Inherited from
WidgetProps.accessibleOrientation
accessibleOwns?
optionalaccessibleOwns:Widget[]
Defined in: packages/react/src/jsx.ts:1186
Inherited from
accessiblePlaceholder?
optionalaccessiblePlaceholder:string
Defined in: packages/react/src/jsx.ts:1154
Inherited from
WidgetProps.accessiblePlaceholder
accessiblePosInSet?
optionalaccessiblePosInSet:number
Defined in: packages/react/src/jsx.ts:1187
Inherited from
WidgetProps.accessiblePosInSet
accessiblePressed?
optionalaccessiblePressed:AccessibleTristate
Defined in: packages/react/src/jsx.ts:1171
Inherited from
accessibleReadOnly?
optionalaccessibleReadOnly:boolean
Defined in: packages/react/src/jsx.ts:1155
Inherited from
WidgetProps.accessibleReadOnly
accessibleRequired?
optionalaccessibleRequired:boolean
Defined in: packages/react/src/jsx.ts:1156
Inherited from
WidgetProps.accessibleRequired
accessibleRole?
optionalaccessibleRole:AccessibleRole
Defined in: packages/react/src/generated/jsx.ts:187
The accessible role of the given GtkAccessible implementation.
The accessible role cannot be changed once set.
Inherited from
accessibleRoleDescription?
optionalaccessibleRoleDescription:string
Defined in: packages/react/src/jsx.ts:1157
Inherited from
WidgetProps.accessibleRoleDescription
accessibleRowCount?
optionalaccessibleRowCount:number
Defined in: packages/react/src/jsx.ts:1188
Inherited from
WidgetProps.accessibleRowCount
accessibleRowIndex?
optionalaccessibleRowIndex:number
Defined in: packages/react/src/jsx.ts:1189
Inherited from
WidgetProps.accessibleRowIndex
accessibleRowIndexText?
optionalaccessibleRowIndexText:string
Defined in: packages/react/src/jsx.ts:1190
Inherited from
WidgetProps.accessibleRowIndexText
accessibleRowSpan?
optionalaccessibleRowSpan:number
Defined in: packages/react/src/jsx.ts:1191
Inherited from
accessibleSelected?
optionalaccessibleSelected:boolean
Defined in: packages/react/src/jsx.ts:1172
Inherited from
WidgetProps.accessibleSelected
accessibleSetSize?
optionalaccessibleSetSize:number
Defined in: packages/react/src/jsx.ts:1192
Inherited from
accessibleSort?
optionalaccessibleSort:AccessibleSort
Defined in: packages/react/src/jsx.ts:1158
Inherited from
accessibleValueMax?
optionalaccessibleValueMax:number
Defined in: packages/react/src/jsx.ts:1159
Inherited from
WidgetProps.accessibleValueMax
accessibleValueMin?
optionalaccessibleValueMin:number
Defined in: packages/react/src/jsx.ts:1160
Inherited from
WidgetProps.accessibleValueMin
accessibleValueNow?
optionalaccessibleValueNow:number
Defined in: packages/react/src/jsx.ts:1161
Inherited from
WidgetProps.accessibleValueNow
accessibleValueText?
optionalaccessibleValueText:string
Defined in: packages/react/src/jsx.ts:1162
Inherited from
WidgetProps.accessibleValueText
accessibleVisited?
optionalaccessibleVisited:boolean
Defined in: packages/react/src/jsx.ts:1173
Inherited from
attributes?
optionalattributes:AttrList|null
Defined in: packages/react/src/generated/jsx.ts:4560
A list of style attributes to apply to the text of the label.
canFocus?
optionalcanFocus:boolean
Defined in: packages/react/src/generated/jsx.ts:24
Whether the widget or any of its descendents can accept the input focus.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
canTarget?
optionalcanTarget:boolean
Defined in: packages/react/src/generated/jsx.ts:26
Whether the widget can receive pointer events.
Inherited from
children?
optionalchildren:ReactNode
Defined in: packages/react/src/generated/jsx.ts:314
Children elements (child widgets or event controllers).
Inherited from
cssClasses?
optionalcssClasses:string[]
Defined in: packages/react/src/generated/jsx.ts:28
A list of css classes applied to this widget.
Inherited from
cssName?
optionalcssName:string
Defined in: packages/react/src/generated/jsx.ts:35
The name of this widget in the CSS tree.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
cursor?
optionalcursor:Cursor|null
Defined in: packages/react/src/generated/jsx.ts:37
The cursor used by widget.
Inherited from
ellipsize?
optionalellipsize:EllipsizeMode
Defined in: packages/react/src/generated/jsx.ts:4574
The preferred place to ellipsize the string, if the label does not have enough room to display the entire string.
Note that setting this property to a value other than [enum.Pango.EllipsizeMode.none] has the side-effect that the label requests only enough space to display the ellipsis "...". In particular, this means that ellipsizing labels do not work well in notebook tabs, unless the NotebookPage.tab-expand child property is set to true.
Other ways to set a label's width are Widget.set_size_request and Label.set_width_chars.
extraMenu?
optionalextraMenu:MenuModel|null
Defined in: packages/react/src/generated/jsx.ts:4576
A menu model whose contents will be appended to the context menu.
focusable?
optionalfocusable:boolean
Defined in: packages/react/src/generated/jsx.ts:45
Whether this widget itself will accept the input focus.
Inherited from
focusOnClick?
optionalfocusOnClick:boolean
Defined in: packages/react/src/generated/jsx.ts:43
Whether the widget should grab focus when it is clicked with the mouse.
This property is only relevant for widgets that can take focus.
Inherited from
halign?
optionalhalign:Align
Defined in: packages/react/src/generated/jsx.ts:47
How to distribute horizontal space if widget gets extra space.
Inherited from
hasTooltip?
optionalhasTooltip:boolean
Defined in: packages/react/src/generated/jsx.ts:56
Enables or disables the emission of the Widget.:query-tooltip
signal on widget.
A true value indicates that widget can have a tooltip, in this case
the widget will be queried using Widget.:query-tooltip to
determine whether it will provide a tooltip or not.
Inherited from
heightRequest?
optionalheightRequest:number
Defined in: packages/react/src/generated/jsx.ts:62
Overrides for height request of the widget.
If this is -1, the natural request will be used.
Inherited from
hexpand?
optionalhexpand:boolean
Defined in: packages/react/src/generated/jsx.ts:64
Whether to expand horizontally.
Inherited from
hexpandSet?
optionalhexpandSet:boolean
Defined in: packages/react/src/generated/jsx.ts:66
Whether to use the hexpand property.
Inherited from
justify?
optionaljustify:Justification
Defined in: packages/react/src/generated/jsx.ts:4583
The alignment of the lines in the text of the label, relative to each other.
This does not affect the alignment of the label within its allocation. See Label.xalign for that.
label?
optionallabel:string
Defined in: packages/react/src/generated/jsx.ts:4598
The contents of the label.
If the string contains Pango markup (see Pangoparse_markup), you will have to set the Label.use-markup property to true in order for the label to display the markup attributes. See also Label.set_markup for a convenience function that sets both this property and the Label.use-markup property at the same time.
If the string contains underlines acting as mnemonics, you will have to set the Label.use-underline property to true in order for the label to display them.
layoutManager?
optionallayoutManager:LayoutManager|null
Defined in: packages/react/src/generated/jsx.ts:74
The LayoutManager instance to use to compute the preferred size of the widget, and allocate its children.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
limitEvents?
optionallimitEvents:boolean
Defined in: packages/react/src/generated/jsx.ts:83
Makes this widget act like a modal dialog, with respect to event delivery.
Global event controllers will not handle events with targets inside the widget, unless they are set up to ignore propagation limits. See EventController.set_propagation_limit.
Inherited from
lines?
optionallines:number
Defined in: packages/react/src/generated/jsx.ts:4616
The number of lines to which an ellipsized, wrapping label should display before it gets ellipsized. This both prevents the label from ellipsizing before this many lines are displayed, and limits the height request of the label to this many lines.
::: warning Setting this property has unintuitive and unfortunate consequences for the minimum width of the label. Specifically, if the height of the label is such that it fits a smaller number of lines than the value of this property, the label can not be ellipsized at all, which means it must be wide enough to fit all the text fully.
This property has no effect if the label is not wrapping or ellipsized.
Set this property to -1 if you don't want to limit the number of lines.
marginBottom?
optionalmarginBottom:number
Defined in: packages/react/src/generated/jsx.ts:91
Margin on bottom side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from Widget.set_size_request for example.
Inherited from
marginEnd?
optionalmarginEnd:number
Defined in: packages/react/src/generated/jsx.ts:102
Margin on end of widget, horizontally.
This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from Widget.set_size_request for example.
Inherited from
marginStart?
optionalmarginStart:number
Defined in: packages/react/src/generated/jsx.ts:113
Margin on start of widget, horizontally.
This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from Widget.set_size_request for example.
Inherited from
marginTop?
optionalmarginTop:number
Defined in: packages/react/src/generated/jsx.ts:121
Margin on top side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from Widget.set_size_request for example.
Inherited from
maxWidthChars?
optionalmaxWidthChars:number
Defined in: packages/react/src/generated/jsx.ts:4626
The desired maximum width of the label, in characters.
If this property is set to -1, the width will be calculated automatically.
See the section on text layout for details of how Label.width-chars and Label.max-width-chars determine the width of ellipsized and wrapped labels.
mnemonicWidget?
optionalmnemonicWidget:Widget|null
Defined in: packages/react/src/generated/jsx.ts:4628
The widget to be activated when the labels mnemonic key is pressed.
name?
optionalname:string
Defined in: packages/react/src/generated/jsx.ts:123
The name of the widget.
Inherited from
naturalWrapMode?
optionalnaturalWrapMode:NaturalWrapMode
Defined in: packages/react/src/generated/jsx.ts:4638
Select the line wrapping for the natural size request.
This only affects the natural size requested. For the actual wrapping used, see the Label.wrap-mode property.
The default is NaturalWrapMode.inherit, which inherits the behavior of the Label.wrap-mode property.
onActivateCurrentLink?
optionalonActivateCurrentLink: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:4710
Gets emitted when the user activates a link in the label.
The ::activate-current-link is a keybinding signal.
Applications may also emit the signal with g_signal_emit_by_name() if they need to control activation of URIs programmatically.
The default bindings for this signal are all forms of the Enter key.
onActivateLink?
optionalonActivateLink: (uri,self) =>boolean|null
Defined in: packages/react/src/generated/jsx.ts:4717
Gets emitted to activate a URI.
Applications may connect to it to override the default behaviour, which is to call FileLauncher.launch.
onCopyClipboard?
optionalonCopyClipboard: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:4725
Gets emitted to copy the selection to the clipboard.
The ::copy-clipboard signal is a keybinding signal.
The default binding for this signal is Ctrl+c.
onDestroy?
optionalonDestroy: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:196
Signals that all holders of a reference to the widget should release the reference that they hold.
May result in finalization of the widget if all references are released.
This signal is not suitable for saving widget state.
Inherited from
onDirectionChanged?
optionalonDirectionChanged: (previousDirection,self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:198
Emitted when the text direction of a widget changes.
Inherited from
WidgetProps.onDirectionChanged
onHide?
optionalonHide: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:200
Emitted when widget is hidden.
Inherited from
onKeynavFailed?
optionalonKeynavFailed: (direction,self) =>boolean|null
Defined in: packages/react/src/generated/jsx.ts:206
Emitted if keyboard navigation fails.
See Widget.keynav_failed for details.
Inherited from
onMap?
optionalonMap: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:218
Emitted when widget is going to be mapped.
A widget is mapped when the widget is visible (which is controlled with Widget.visible) and all its parents up to the toplevel widget are also visible.
The ::map signal can be used to determine whether a widget will be drawn,
for instance it can resume an animation that was stopped during the
emission of Widget.:unmap.
Inherited from
onMnemonicActivate?
optionalonMnemonicActivate: (groupCycling,self) =>boolean|null
Defined in: packages/react/src/generated/jsx.ts:225
Emitted when a widget is activated via a mnemonic.
The default handler for this signal activates widget if group_cycling
is false, or just makes widget grab focus if group_cycling is true.
Inherited from
WidgetProps.onMnemonicActivate
onMoveCursor?
optionalonMoveCursor: (step,count,extendSelection,self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:4747
Gets emitted when the user initiates a cursor movement.
The ::move-cursor signal is a keybinding signal.
If the cursor is not visible in entry, this signal causes the viewport to
be moved instead.
Applications should not connect to it, but may emit it with GObjectsignal_emit_by_name if they need to control the cursor programmatically.
The default bindings for this signal come in two variants, the
variant with the Shift modifier extends the selection,
the variant without the Shift modifier does not.
There are too many key combinations to list them all here.
←,→,↑,↓move by individual characters/linesCtrl+←, etc. move by words/paragraphsHomeandEndmove to the ends of the buffer
onMoveFocus?
optionalonMoveFocus: (direction,self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:234
Emitted when the focus is moved.
The ::move-focus signal is a keybinding signal.
The default bindings for this signal are Tab to move forward,
and Shift+Tab to move backward.
Inherited from
onNotify?
optionalonNotify: (pspec,self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:312
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with %G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in ::notify being emitted, even if the new value is the same as the old. If they did pass %G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.
This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:
|[ g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view) ]|
It is important to note that you must use [canonical parameter names]GObjectParamSpec#parameter-names as detail strings for the notify signal.
Inherited from
onQueryTooltip?
optionalonQueryTooltip: (x,y,keyboardMode,tooltip,self) =>boolean|null
Defined in: packages/react/src/generated/jsx.ts:250
Emitted when the widget’s tooltip is about to be shown.
This happens when the Widget.has-tooltip property
is true and the hover timeout has expired with the cursor hovering
above widget; or emitted when widget got focus in keyboard mode.
Using the given coordinates, the signal handler should determine
whether a tooltip should be shown for widget. If this is the case
true should be returned, false otherwise. Note that if keyboard_mode
is true, the values of x and y are undefined and should not be used.
The signal handler is free to manipulate tooltip with the therefore
destined function calls.
Inherited from
onRealize?
optionalonRealize: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:259
Emitted when widget is associated with a GdkSurface.
This means that Widget.realize has been called or the widget has been mapped (that is, it is going to be drawn).
Inherited from
onShow?
optionalonShow: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:261
Emitted when widget is shown.
Inherited from
onStateFlagsChanged?
optionalonStateFlagsChanged: (flags,self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:267
Emitted when the widget state changes.
See Widget.get_state_flags.
Inherited from
WidgetProps.onStateFlagsChanged
onUnmap?
optionalonUnmap: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:277
Emitted when widget is going to be unmapped.
A widget is unmapped when either it or any of its parents up to the toplevel widget have been set as hidden.
As ::unmap indicates that a widget will not be shown any longer,
it can be used to, for example, stop an animation on the widget.
Inherited from
onUnrealize?
optionalonUnrealize: (self) =>void|null
Defined in: packages/react/src/generated/jsx.ts:284
Emitted when the GdkSurface associated with widget is destroyed.
This means that Widget.unrealize has been called or the widget has been unmapped (that is, it is going to be hidden).
Inherited from
opacity?
optionalopacity:number
Defined in: packages/react/src/generated/jsx.ts:125
The requested opacity of the widget.
Inherited from
overflow?
optionaloverflow:Overflow
Defined in: packages/react/src/generated/jsx.ts:132
How content outside the widget's content area is treated.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
receivesDefault?
optionalreceivesDefault:boolean
Defined in: packages/react/src/generated/jsx.ts:134
Whether the widget will receive the default action when it is focused.
Inherited from
ref?
optionalref:Ref<Label>
Defined in: packages/react/src/generated/jsx.ts:4748
selectable?
optionalselectable:boolean
Defined in: packages/react/src/generated/jsx.ts:4640
Whether the label text can be selected with the mouse.
sensitive?
optionalsensitive:boolean
Defined in: packages/react/src/generated/jsx.ts:136
Whether the widget responds to input.
Inherited from
singleLineMode?
optionalsingleLineMode:boolean
Defined in: packages/react/src/generated/jsx.ts:4649
Whether the label is in single line mode.
In single line mode, the height of the label does not depend on the actual text, it is always set to ascent + descent of the font. This can be an advantage in situations where resizing the label because of text changes would be distracting, e.g. in a statusbar.
tabs?
optionaltabs:TabArray|null
Defined in: packages/react/src/generated/jsx.ts:4651
Custom tabs for this label.
tooltipMarkup?
optionaltooltipMarkup:string|null
Defined in: packages/react/src/generated/jsx.ts:152
Sets the text of tooltip to be the given string, which is marked up with Pango markup.
Also see Tooltip.set_markup.
This is a convenience property which will take care of getting the
tooltip shown if the given string is not NULL:
Widget.has-tooltip will automatically be set to true
and there will be taken care of Widget.:query-tooltip in
the default signal handler.
Note that if both Widget.tooltip-text and Widget.tooltip-markup are set, the last one wins.
Inherited from
tooltipText?
optionaltooltipText:string|null
Defined in: packages/react/src/generated/jsx.ts:167
Sets the text of tooltip to be the given string.
Also see Tooltip.set_text.
This is a convenience property which will take care of getting the
tooltip shown if the given string is not NULL:
Widget.has-tooltip will automatically be set to true
and there will be taken care of Widget.:query-tooltip in
the default signal handler.
Note that if both Widget.tooltip-text and Widget.tooltip-markup are set, the last one wins.
Inherited from
useMarkup?
optionaluseMarkup:boolean
Defined in: packages/react/src/generated/jsx.ts:4657
True if the text of the label includes Pango markup.
See Pangoparse_markup.
useUnderline?
optionaluseUnderline:boolean
Defined in: packages/react/src/generated/jsx.ts:4662
True if the text of the label indicates a mnemonic with an _
before the mnemonic character.
valign?
optionalvalign:Align
Defined in: packages/react/src/generated/jsx.ts:169
How to distribute vertical space if widget gets extra space.
Inherited from
vexpand?
optionalvexpand:boolean
Defined in: packages/react/src/generated/jsx.ts:171
Whether to expand vertically.
Inherited from
vexpandSet?
optionalvexpandSet:boolean
Defined in: packages/react/src/generated/jsx.ts:173
Whether to use the vexpand property.
Inherited from
visible?
optionalvisible:boolean
Defined in: packages/react/src/generated/jsx.ts:175
Whether the widget is visible.
Inherited from
widthChars?
optionalwidthChars:number
Defined in: packages/react/src/generated/jsx.ts:4672
The desired width of the label, in characters.
If this property is set to -1, the width will be calculated automatically.
See the section on text layout for details of how Label.width-chars and Label.max-width-chars determine the width of ellipsized and wrapped labels.
widthRequest?
optionalwidthRequest:number
Defined in: packages/react/src/generated/jsx.ts:181
Overrides for width request of the widget.
If this is -1, the natural request will be used.
Inherited from
wrap?
optionalwrap:boolean
Defined in: packages/react/src/generated/jsx.ts:4674
True if the label text will wrap if it gets too wide.
wrapMode?
optionalwrapMode:WrapMode
Defined in: packages/react/src/generated/jsx.ts:4685
Controls how the line wrapping is done.
This only affects the formatting if line wrapping is on (see the Label.wrap property). The default is PangoWrapMode.word, which means wrap on word boundaries.
For sizing behavior, also consider the Label.natural-wrap-mode property.
xalign?
optionalxalign:number
Defined in: packages/react/src/generated/jsx.ts:4692
The horizontal alignment of the label text inside its size allocation.
Compare this to Widget.halign, which determines how the labels size allocation is positioned in the space available for the label.
yalign?
optionalyalign:number
Defined in: packages/react/src/generated/jsx.ts:4699
The vertical alignment of the label text inside its size allocation.
Compare this to Widget.valign, which determines how the labels size allocation is positioned in the space available for the label.