Skip to main content

Type Alias: GtkPasswordEntryProps

GtkPasswordEntryProps = WidgetProps & object

Defined in: generated/jsx.ts:7242

Props for the GtkPasswordEntry widget.

Type Declaration

NameTypeDescriptionDefined in
activatesDefault?booleanWhether to activate the default widget when Enter is pressed.generated/jsx.ts:7244
editable?booleanWhether the entry contents can be edited.generated/jsx.ts:7258
enableUndo?booleanIf undo/redo should be enabled for the editable.generated/jsx.ts:7260
extraMenu?Gio.MenuModel | nullA menu model whose contents will be appended to the context menu.generated/jsx.ts:7249
maxWidthChars?numberThe desired maximum width of the entry, in characters.generated/jsx.ts:7262
onActivate()?(self) => void | nullEmitted when the entry is activated. The keybindings for this signal are all forms of the Enter key.generated/jsx.ts:7278
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:7289
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:7301
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:7310
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:7316
placeholderText?stringThe text that will be displayed in the GtkPasswordEntry when it is empty and unfocused.generated/jsx.ts:7254
ref?Ref<Gtk.PasswordEntry>-generated/jsx.ts:7332
showPeekIcon?booleanWhether to show an icon for revealing the content.generated/jsx.ts:7256
text?stringThe contents of the entry.generated/jsx.ts:7264
widthChars?numberNumber of characters to leave space for in the entry.generated/jsx.ts:7266
xalign?numberThe horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.generated/jsx.ts:7272