Type Alias: AdwSpinRowProps
AdwSpinRowProps =
Omit<AdwActionRowProps,"onNotify"> &object
Defined in: generated/jsx.ts:8755
Props for the AdwSpinRow widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
adjustment? | Gtk.Adjustment | The adjustment that holds the value of the spin row. | generated/jsx.ts:8757 |
children? | ReactNode | - | generated/jsx.ts:8847 |
climbRate? | number | The acceleration rate when you hold down a button or key. | generated/jsx.ts:8759 |
digits? | number | The number of decimal places to display. | generated/jsx.ts:8761 |
editable? | boolean | Whether the entry contents can be edited. | generated/jsx.ts:8777 |
enableUndo? | boolean | If undo/redo should be enabled for the editable. | generated/jsx.ts:8779 |
maxWidthChars? | number | The desired maximum width of the entry, in characters. | generated/jsx.ts:8781 |
numeric? | boolean | Whether non-numeric characters should be ignored. | generated/jsx.ts:8763 |
onChanged()? | (self) => void | null | Emitted 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:8825 |
onDeleteText()? | (self, startPos, endPos) => void | null | Emitted 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:8837 |
onInput()? | (self, newValue) => number | null | Emitted to convert the user's input into a double value. The signal handler is expected to use Editable.get_text to retrieve the text of the spinbutton and set new_value to the new value. The default conversion uses GLibstrtod. See SpinButton.:input. | generated/jsx.ts:8802 |
onInsertText()? | (self, text, length, position) => void | null | Emitted 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:8846 |
onNotify? | (self, propName) => void | null | Called 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:8853 |
onOutput()? | (self) => boolean | null | Emitted to tweak the formatting of the value for display. See SpinButton.:output. | generated/jsx.ts:8808 |
onWrapped()? | (self) => void | null | Emitted right after the spinbutton wraps. See SpinButton.:wrapped. | generated/jsx.ts:8814 |
ref? | Ref<Adw.SpinRow> | - | generated/jsx.ts:8873 |
snapToTicks? | boolean | Whether invalid values are snapped to the nearest step increment. | generated/jsx.ts:8765 |
text? | string | The contents of the entry. | generated/jsx.ts:8783 |
updatePolicy? | Gtk.SpinButtonUpdatePolicy | The policy for updating the spin row. The options are always, or only when the value is invalid. | generated/jsx.ts:8771 |
value? | number | The current value. | generated/jsx.ts:8773 |
widthChars? | number | Number of characters to leave space for in the entry. | generated/jsx.ts:8785 |
wrap? | boolean | Whether the spin row should wrap upon reaching its limits. | generated/jsx.ts:8775 |
xalign? | number | The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts. | generated/jsx.ts:8791 |