Integer
A KontrastInteger
represents a single integer number.
Assignment
You can assign a JavaScript number. An error will be thrown if the number is not an integer.
Context menu
In the context menu, the integer can be
entered directly. The value can also be changed with the
Arrow up and Arrow down keys (the number is
incremented/decremented by 1
).
Interface
Functions
-
assign(value: string | number)
Assign a new value. -
addEventListener(eventName: string, callback: function)
Registers the callback function as an event listener for the specified event name. -
clearEventListener(eventName: string)
Remove all event listener callbacks associated with the event name.
Properties
-
type
:string
The read-only string 'KontrastInteger'.
-
defaultValue
:number
A read-only number that contains the default number of the specific property.
-
value
:number
The current value (as a JavaScript number).
Events
-
change
, callback:function () { … }
Event that fires whenever the value is changed.