Class: GroupState
优质
小牛编辑
130浏览
2023-12-01
THING~ GroupState
GroupState The group to control enable/disable state.
new GroupState(param)
constructor.
Parameters:
Name | Type | Description |
---|---|---|
param | Object | The initial parameters. |
Members
states :Object
Get the states.
Type:
- Object
Methods
clear()
Clear all states.
enable(value, name, priority)
Enable/Disable.
Parameters:
Name Type Description value
Boolean Enable or disable.
name
String The group name.
priority
Number The group priority, check enable state from high to low.
getValue(name) → {*}
Get value by name.
Parameters:
Name Type Description name
String The group name.
Returns:
- Type
- *
isAnyEnable() → {Boolean}
Check whether it's enable.
Returns:
- Type
- Boolean
isEnable(name) → {Boolean}
Check whether it's enable.
Parameters:
Name Type Description name
String The group name, if do not proivde then indicates get the final state.
Returns:
- Type
- Boolean