Spinner

(part of package 'Servoy Extra Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

A component that provides a spinner input for numeric values.

This is a reference page; many components have detailed usage guides here.

Properties

dataProviderID

Bound data provider identifier for the spinner value. Type: Dataprovider


displaysTags

Indicates whether display tags are enabled. Type: Boolean


editable

Indicates whether the spinner is editable. Type: Protected Default Value: true


enabled

Indicates whether the spinner is enabled for user interaction. Type: Enabled Default Value: true


format

Format string used to display and parse the spinner value. Type: Format


placeholderText

Placeholder text displayed when no value is present. Type: Tagstring


readOnly

Indicates whether the spinner is read-only. Type: ReadOnly


responsiveHeight

Minimum height of the spinner, set only in responsive forms. Type: Number Default Value: 30


styleClass

CSS style classes applied to the spinner component. Type: Styleclass


tabSeq

Tab sequence order for keyboard navigation. Type: Tabseq


text

The text displayed by the spinner. Type: Tagstring


toolTipText

Tooltip text displayed when hovering over the spinner. Type: Tagstring


valuelistID

Identifier for the value list used by the spinner. Type: Valuelist


visible

Indicates whether the spinner is visible. Type: Visible


Events

onActionMethodID(event)

Fired when the spinner action is triggered.

Parameters:

  • {JSEvent} event The event object containing details about the action event.


onDataChangeMethodID(oldValue,newValue,event)

Fired when the spinner value changes.

Parameters:

Returns: {Boolean}


onFocusGainedMethodID(event)

Fired when the spinner gains focus.

Parameters:

  • {JSEvent} event The event object containing details about the focus gained event.


onFocusLostMethodID(event)

Fired when the spinner loses focus.

Parameters:

  • {JSEvent} event The event object containing details about the focus lost event.


onRightClickMethodID(event)

Fired when the spinner is right-clicked.

Parameters:

  • {JSEvent} event The event object containing details about the right-click event.


API

requestFocus(mustExecuteOnFocusGainedMethod)

Request the focus to this field.

Example:

myElement.requestFocus();

Parameters:

  • {Boolean} [mustExecuteOnFocusGainedMethod] If false will not execute the onFocusGained method; the default value is true



Last updated

Was this helpful?