Type Alias: GtkEditableLabelProps
GtkEditableLabelProps =
WidgetProps&object
Defined in: generated/jsx.ts:3415
Props for the GtkEditableLabel widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
editable? | boolean | Whether the entry contents can be edited. | generated/jsx.ts:3419 |
editing? | boolean | This property is %TRUE while the widget is in edit mode. | generated/jsx.ts:3417 |
enableUndo? | boolean | If undo/redo should be enabled for the editable. | generated/jsx.ts:3421 |
maxWidthChars? | number | The desired maximum width of the entry, in characters. | generated/jsx.ts:3423 |
onChanged()? | (self) => void | null | Emitted at the end of a single user-visible operation on the contents. E.g., a paste operation that replaces the contents of the selection will cause only one signal emission (even though it is implemented by first deleting the selection, then inserting the new content, and may cause multiple ::notify::text signals to be emitted). | generated/jsx.ts:3444 |
onDeleteText()? | (self, startPos, endPos) => void | null | Emitted when text is deleted from the widget by the user. The default handler for this signal will normally be responsible for deleting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission(), it is possible to modify the range of deleted text, or prevent it from being deleted entirely. The start_pos and end_pos parameters are interpreted as for Editable.delete_text. | generated/jsx.ts:3456 |
onInsertText()? | (self, text, length, position) => void | null | Emitted when text is inserted into the widget by the user. The default handler for this signal will normally be responsible for inserting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission(), it is possible to modify the inserted text, or prevent it from being inserted entirely. | generated/jsx.ts:3465 |
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:3471 |
ref? | Ref<Gtk.EditableLabel> | - | generated/jsx.ts:3477 |
text? | string | The contents of the entry. | generated/jsx.ts:3425 |
widthChars? | number | Number of characters to leave space for in the entry. | generated/jsx.ts:3427 |
xalign? | number | The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts. | generated/jsx.ts:3433 |