ComponentState

fun ComponentState(name: String, facetsOn: Array<ComponentStateFacet>?, facetsOff: Array<ComponentStateFacet>?)

Creates a new component state.

Parameters

name

Component state name. Does not have to be unique. The name is only used in the .toString.

facetsOn

Indicates that are turned on for this state. For example, .RolloverSelected should pass both ComponentStateFacet.Rollover and ComponentStateFacet.Selection.

facetsOff

Indicates that are turned on for this state. For example, .DisabledUnselected should pass both ComponentStateFacet.Enable and ComponentStateFacet.Selection.


fun ComponentState(name: String, hardFallback: ComponentState?, facetsOn: Array<ComponentStateFacet>?, facetsOff: Array<ComponentStateFacet>?)