Skip to main content

Type Alias: AdwSpinRowProps

AdwSpinRowProps = Omit<AdwActionRowProps, "onNotify"> & object

Defined in: generated/jsx.ts:8755

Props for the AdwSpinRow widget.

Type Declaration

NameTypeDescriptionDefined in
adjustment?Gtk.AdjustmentThe adjustment that holds the value of the spin row.generated/jsx.ts:8757
children?ReactNode-generated/jsx.ts:8847
climbRate?numberThe acceleration rate when you hold down a button or key.generated/jsx.ts:8759
digits?numberThe number of decimal places to display.generated/jsx.ts:8761
editable?booleanWhether the entry contents can be edited.generated/jsx.ts:8777
enableUndo?booleanIf undo/redo should be enabled for the editable.generated/jsx.ts:8779
maxWidthChars?numberThe desired maximum width of the entry, in characters.generated/jsx.ts:8781
numeric?booleanWhether non-numeric characters should be ignored.generated/jsx.ts:8763
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:8825
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:8837
onInput()?(self, newValue) => number | nullEmitted 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 | 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:8846
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:8853
onOutput()?(self) => boolean | nullEmitted to tweak the formatting of the value for display. See SpinButton.:output.generated/jsx.ts:8808
onWrapped()?(self) => void | nullEmitted right after the spinbutton wraps. See SpinButton.:wrapped.generated/jsx.ts:8814
ref?Ref<Adw.SpinRow>-generated/jsx.ts:8873
snapToTicks?booleanWhether invalid values are snapped to the nearest step increment.generated/jsx.ts:8765
text?stringThe contents of the entry.generated/jsx.ts:8783
updatePolicy?Gtk.SpinButtonUpdatePolicyThe policy for updating the spin row. The options are always, or only when the value is invalid.generated/jsx.ts:8771
value?numberThe current value.generated/jsx.ts:8773
widthChars?numberNumber of characters to leave space for in the entry.generated/jsx.ts:8785
wrap?booleanWhether the spin row should wrap upon reaching its limits.generated/jsx.ts:8775
xalign?numberThe horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.generated/jsx.ts:8791