-
Notifications
You must be signed in to change notification settings - Fork 0
.subComponent()
esr360 edited this page Apr 18, 2019
·
6 revisions
Various Synergy Sub-Component operations
.subComponent(name, operator, config);
Param | Type | Info |
---|---|---|
name |
String |
The name of the sub-component of interest |
[operator] |
('find'|'is') |
The operation to apply to matched elements |
[config] |
Object |
The configuration to use when calling the method (learn more) |
- If
operator
is not passed, it will assume to befind
- If neither
name
noroperator
are passed, the method will attempt to find all child sub-components of each element in the set of matched elements
Find all child sub-components of each element in the set of matched elements filtered by the
name
parameter
Determine if each element in the set of matched elements is the specified sub-component
.subComponent(name, callback, config);
Param | Type | Info |
---|---|---|
name |
String |
The name of the sub-component of interest |
[callback] |
Function([HTMLElement] element) |
Function to call on matched sub-components |
[config] |
Object |
The configuration to use when calling the method (learn more) |
A function to call on all child sub-components filtered by the
name
parameter of each element in the set of matched elements, whereelement
is the child sub-component