-
Notifications
You must be signed in to change notification settings - Fork 0
.getComponent()
esr360 edited this page Apr 18, 2019
·
5 revisions
Return the first instance of a matched component for each element in the set of matched elements
.getComponent(name, config);
Use this when you know each matched element only has a single occurrence of the component - if the element potentially has multiple instances of the component, use the
getComponents
method
Param | Type | Info |
---|---|---|
name |
String |
The name of the component of interest |
[config] |
Object |
The configuration to use when calling the method (learn more) |