Skip to main content

Type Alias: GtkEditableLabelProps

GtkEditableLabelProps = WidgetProps & object

Defined in: generated/jsx.ts:3415

Props for the GtkEditableLabel widget.

Type Declaration

NameTypeDescriptionDefined in
editable?booleanWhether the entry contents can be edited.generated/jsx.ts:3419
editing?booleanThis property is %TRUE while the widget is in edit mode.generated/jsx.ts:3417
enableUndo?booleanIf undo/redo should be enabled for the editable.generated/jsx.ts:3421
maxWidthChars?numberThe desired maximum width of the entry, in characters.generated/jsx.ts:3423
onChanged()?(self) => void | nullEmitted 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 | nullEmitted 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 | nullEmitted 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 | 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:3471
ref?Ref<Gtk.EditableLabel>-generated/jsx.ts:3477
text?stringThe contents of the entry.generated/jsx.ts:3425
widthChars?numberNumber of characters to leave space for in the entry.generated/jsx.ts:3427
xalign?numberThe horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.generated/jsx.ts:3433