Interface: IStateModule
Table of contents
Properties
Methods
- isState
- isSelected
- isDisabled
- isFocus
- isHover
- isPress
- isDrag
- setStyleName
- set
- getStyle
- updateStyle
- updateEventStyle
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
Name | Type |
---|---|
state | string |
leaf | ILeaf |
button? | boolean | ILeaf |
Returns
boolean
Defined in
ui/packages/interface/src/module/IState.ts:8
isSelected
▸ isSelected(leaf
, button?
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
button? | boolean | ILeaf |
Returns
boolean
Defined in
ui/packages/interface/src/module/IState.ts:9
isDisabled
▸ isDisabled(leaf
, button?
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
button? | boolean | ILeaf |
Returns
boolean
Defined in
ui/packages/interface/src/module/IState.ts:10
isFocus
▸ isFocus(leaf
, button?
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
button? | boolean | ILeaf |
Returns
boolean
Defined in
ui/packages/interface/src/module/IState.ts:12
isHover
▸ isHover(leaf
, button?
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
button? | boolean | ILeaf |
Returns
boolean
Defined in
ui/packages/interface/src/module/IState.ts:13
isPress
▸ isPress(leaf
, button?
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
button? | boolean | ILeaf |
Returns
boolean
Defined in
ui/packages/interface/src/module/IState.ts:14
isDrag
▸ isDrag(leaf
, button?
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
button? | boolean | ILeaf |
Returns
boolean
Defined in
ui/packages/interface/src/module/IState.ts:16
setStyleName
▸ setStyleName(leaf
, styleName
, value
): void
Parameters
Name | Type |
---|---|
leaf | ILeaf |
styleName | string |
value | boolean |
Returns
void
Defined in
ui/packages/interface/src/module/IState.ts:18
set
▸ set(leaf
, stateName
): void
Parameters
Name | Type |
---|---|
leaf | ILeaf |
stateName | string |
Returns
void
Defined in
ui/packages/interface/src/module/IState.ts:19
getStyle
▸ getStyle(leaf
): IStateStyle
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
Defined in
ui/packages/interface/src/module/IState.ts:21
updateStyle
▸ updateStyle(leaf
, style?
, type?
): void
Parameters
Name | Type |
---|---|
leaf | ILeaf |
style? | IStateStyle |
type? | "in" | "out" |
Returns
void
Defined in
ui/packages/interface/src/module/IState.ts:23
updateEventStyle
▸ updateEventStyle(leaf
, eventType
): void
Parameters
Name | Type |
---|---|
leaf | ILeaf |
eventType | string |
Returns
void