Skip to main content

Type Alias: GtkPasswordEntryProps

GtkPasswordEntryProps = WidgetProps & object

Defined in: generated/jsx.ts:5857

Props for the GtkPasswordEntry widget.

Type Declaration

NameTypeDescriptionDefined in
activatesDefault?booleanWhether to activate the default widget when Enter is pressed.generated/jsx.ts:5859
editable?booleanWhether the entry contents can be edited.generated/jsx.ts:5873
enableUndo?booleanIf undo/redo should be enabled for the editable.generated/jsx.ts:5875
extraMenu?Gio.MenuModel | nullA menu model whose contents will be appended to the context menu.generated/jsx.ts:5864
maxWidthChars?numberThe desired maximum width of the entry, in characters.generated/jsx.ts:5877
onActivate?(self) => void | nullEmitted when the entry is activated. The keybindings for this signal are all forms of the Enter key.generated/jsx.ts:5893
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:5904
onDeleteText?(startPos, endPos, self) => 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:5916
onInsertText?(text, length, position, self) => 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:5925
placeholderText?stringThe text that will be displayed in the GtkPasswordEntry when it is empty and unfocused.generated/jsx.ts:5869
ref?Ref<Gtk.PasswordEntry>-generated/jsx.ts:5926
showPeekIcon?booleanWhether to show an icon for revealing the content.generated/jsx.ts:5871
text?stringThe contents of the entry.generated/jsx.ts:5879
widthChars?numberNumber of characters to leave space for in the entry.generated/jsx.ts:5881
xalign?numberThe horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.generated/jsx.ts:5887