Selection
A property of type KontrastSelection
is a generic
property that stores a value taken from a list of possible options. It
depends on a property which values it can take.
You can programmatically change the value by assigning a string to the property. If there is no valid option of that name, an error is thrown.
Interface
Functions
-
assign(value: string)
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
'KontrastSelection'
. -
defaultValue
:string
A read-only string that contains the default value for the specific property.
-
value
:string
The current value (as a JavaScript string).
Events
-
change
, callback:function () { … }
Event that fires whenever the value is changed.