Skip to content

Interface: IStateModule

Table of contents

Properties

Methods

Properties

canAnimate

canAnimate: boolean

Defined in

ui/packages/interface/src/module/IState.ts:5


animateExcludes

animateExcludes: IObject

Defined in

ui/packages/interface/src/module/IState.ts:6

Methods

isState

isState(state, leaf, button?): boolean

Parameters

NameType
statestring
leafILeaf
button?boolean | ILeaf

Returns

boolean

Defined in

ui/packages/interface/src/module/IState.ts:8


isSelected

isSelected(leaf, button?): boolean

Parameters

NameType
leafILeaf
button?boolean | ILeaf

Returns

boolean

Defined in

ui/packages/interface/src/module/IState.ts:9


isDisabled

isDisabled(leaf, button?): boolean

Parameters

NameType
leafILeaf
button?boolean | ILeaf

Returns

boolean

Defined in

ui/packages/interface/src/module/IState.ts:10


isFocus

isFocus(leaf, button?): boolean

Parameters

NameType
leafILeaf
button?boolean | ILeaf

Returns

boolean

Defined in

ui/packages/interface/src/module/IState.ts:12


isHover

isHover(leaf, button?): boolean

Parameters

NameType
leafILeaf
button?boolean | ILeaf

Returns

boolean

Defined in

ui/packages/interface/src/module/IState.ts:13


isPress

isPress(leaf, button?): boolean

Parameters

NameType
leafILeaf
button?boolean | ILeaf

Returns

boolean

Defined in

ui/packages/interface/src/module/IState.ts:14


isDrag

isDrag(leaf, button?): boolean

Parameters

NameType
leafILeaf
button?boolean | ILeaf

Returns

boolean

Defined in

ui/packages/interface/src/module/IState.ts:16


setStyleName

setStyleName(leaf, styleName, value): void

Parameters

NameType
leafILeaf
styleNamestring
valueboolean

Returns

void

Defined in

ui/packages/interface/src/module/IState.ts:18


set

set(leaf, stateName): void

Parameters

NameType
leafILeaf
stateNamestring

Returns

void

Defined in

ui/packages/interface/src/module/IState.ts:19


getStyle

getStyle(leaf): IStateStyle

Parameters

NameType
leafILeaf

Returns

IStateStyle

Defined in

ui/packages/interface/src/module/IState.ts:21


updateStyle

updateStyle(leaf, style?, type?): void

Parameters

NameType
leafILeaf
style?IStateStyle
type?"in" | "out"

Returns

void

Defined in

ui/packages/interface/src/module/IState.ts:23


updateEventStyle

updateEventStyle(leaf, eventType): void

Parameters

NameType
leafILeaf
eventTypestring

Returns

void

Defined in

ui/packages/interface/src/module/IState.ts:24

Released under the MIT License.