Methods
Add(p_element, …args)
Add an element to a set of possible flags. When any of the flags changes, the element will be updated.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
p_element |
Node | ||
args |
string |
<repeatable> |
Apply(p_flag, p_toggle)
Add or remove a flag from the classList of elements currently subject to that flag.
Parameters:
Name | Type | Description |
---|---|---|
p_flag |
string | |
p_toggle |
boolean | True to add to the flag, False to remove it. |
ApplyAll(p_toggle)
Update all the flags & subjected elements
Parameters:
Name | Type | Description |
---|---|---|
p_toggle |
boolean |
Clear()
Clear all flags & elements (wipe)
IsSet(p_flag) → {boolean}
TODO
Parameters:
Name | Type | Description |
---|---|---|
p_flag |
string |
Remove(p_element, …args)
Removes an element from a possible set of flags.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
p_element |
* | ||
args |
string |
<repeatable> |
Set(p_flag, p_toggle)
Sets the current value of a given flag, and updates elements accordingly.
Parameters:
Name | Type | Description |
---|---|---|
p_flag |
string | |
p_toggle |
boolean |
Toggle(p_flag)
TODO
Parameters:
Name | Type | Description |
---|---|---|
p_flag |
string |