Skip to main content

Type Alias: AdwEntryRowProps

AdwEntryRowProps = AdwPreferencesRowProps & object

Defined in: generated/jsx.ts:3143

Props for the AdwEntryRow widget.

Type Declaration

NameTypeDescriptionDefined in
activatesDefault?booleanWhether activating the embedded entry can activate the default widget.generated/jsx.ts:3145
attributes?Pango.AttrList | nullA list of Pango attributes to apply to the text of the embedded entry. The PangoAttribute's start_index and end_index must refer to the EntryBuffer text, i.e. without the preedit string.generated/jsx.ts:3152
children?ReactNode-generated/jsx.ts:3243
editable?booleanWhether the entry contents can be edited.generated/jsx.ts:3188
enableEmojiCompletion?booleanWhether to suggest emoji replacements on the entry row. Emoji replacement is done with :-delimited names, like :heart:.generated/jsx.ts:3158
enableUndo?booleanIf undo/redo should be enabled for the editable.generated/jsx.ts:3190
inputHints?Gtk.InputHintsAdditional input hints for the entry row. Input hints allow input methods to fine-tune their behavior. See also: AdwEntryRow.input-purposegenerated/jsx.ts:3166
inputPurpose?Gtk.InputPurposeThe input purpose of the entry row. The input purpose can be used by input methods to adjust their behavior.generated/jsx.ts:3172
maxLength?numberMaximum number of characters for the entry.generated/jsx.ts:3174
maxWidthChars?numberThe desired maximum width of the entry, in characters.generated/jsx.ts:3192
onApply?(self) => void | nullEmitted when the apply button is pressed. See AdwEntryRow.show-apply-button.generated/jsx.ts:3208
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:3221
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:3233
onEntryActivated?(self) => void | nullEmitted when the embedded entry is activated.generated/jsx.ts:3210
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:3242
ref?Ref<Adw.EntryRow>-generated/jsx.ts:3244
showApplyButton?booleanWhether to show the apply button. When set to TRUE, typing text in the entry will reveal an apply button. Clicking it or pressing the Enter key will hide the button and emit the AdwEntryRow.:apply signal. This is useful if changing the entry contents can trigger an expensive operation, e.g. network activity, to avoid triggering it after typing every character.generated/jsx.ts:3186
text?stringThe contents of the entry.generated/jsx.ts:3194
widthChars?numberNumber of characters to leave space for in the entry.generated/jsx.ts:3196
xalign?numberThe horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.generated/jsx.ts:3202