Skip to main content

Type Alias: GtkSearchEntryProps

GtkSearchEntryProps = WidgetProps & object

Defined in: generated/jsx.ts:8077

Props for the GtkSearchEntry widget.

Type Declaration

NameTypeDescriptionDefined in
activatesDefault?booleanWhether to activate the default widget when Enter is pressed.generated/jsx.ts:8079
editable?booleanWhether the entry contents can be edited.generated/jsx.ts:8101
enableUndo?booleanIf undo/redo should be enabled for the editable.generated/jsx.ts:8103
inputHints?Gtk.InputHintsThe hints about input for the GtkSearchEntry used to alter the behaviour of input methods.generated/jsx.ts:8084
inputPurpose?Gtk.InputPurposeThe purpose for the GtkSearchEntry input used to alter the behaviour of input methods.generated/jsx.ts:8089
maxWidthChars?numberThe desired maximum width of the entry, in characters.generated/jsx.ts:8105
onActivate()?(self) => void | nullEmitted when the entry is activated. The keybindings for this signal are all forms of the Enter key.generated/jsx.ts:8121
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:8176
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:8188
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:8197
onNextMatch()?(self) => void | nullEmitted when the user initiates a move to the next match for the current search string. This is a keybinding signal. Applications should connect to it, to implement moving between matches. The default bindings for this signal is Ctrl+g.generated/jsx.ts:8133
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:8203
onPreviousMatch()?(self) => void | nullEmitted when the user initiates a move to the previous match for the current search string. This is a keybinding signal. Applications should connect to it, to implement moving between matches. The default bindings for this signal is Ctrl+Shift+g.generated/jsx.ts:8146
onSearchChanged()?(self) => void | nullEmitted with a delay. The length of the delay can be changed with the SearchEntry.search-delay property.generated/jsx.ts:8152
onSearchStarted()?(self) => void | nullEmitted when the user initiated a search on the entry.generated/jsx.ts:8154
onStopSearch()?(self) => void | nullEmitted when the user stops a search via keyboard input. This is a keybinding signal. Applications should connect to it, to implement hiding the search entry in this case. The default bindings for this signal is Escape.generated/jsx.ts:8165
placeholderText?string | nullThe text that will be displayed in the GtkSearchEntry when it is empty and unfocused.generated/jsx.ts:8094
ref?Ref<Gtk.SearchEntry>-generated/jsx.ts:8220
searchDelay?numberThe delay in milliseconds from last keypress to the search changed signal.generated/jsx.ts:8099
text?stringThe contents of the entry.generated/jsx.ts:8107
widthChars?numberNumber of characters to leave space for in the entry.generated/jsx.ts:8109
xalign?numberThe horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.generated/jsx.ts:8115