Component State
fun ComponentState(name: String, facetsOn: Array<ComponentStateFacet>?, facetsOff: Array<ComponentStateFacet>?)
Content copied to clipboard
Creates a new component state.
Parameters
name
Component state name. Does not have to be unique. The name is only used in the .toString.
facets On
Indicates that are turned on for this state. For example, .RolloverSelected should pass both ComponentStateFacet.Rollover and ComponentStateFacet.Selection.
facets Off
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>?)
Content copied to clipboard