value(value)

Class: Spinner.

Description:

Sets or gets a value displayed in the Spinner component. This method returns number, Date and string types for value depending on the type of the Spinner. To set and get only string value you should use .text() method.

Parameters:

Name Type Description

value

number | string | Date

New value to set. For date/time accepted value types are Date object or a string in the format yyyy-MM-dd HH:mm:ss, yyyy-MM-dd, HH:mm:ss or Date.toISOString() string.

Returns:

If called without arguments, a current value is returned, otherwise this component instance is returned for chaining.

Type: Spinner | number | Date | string

Also See: