Skip to content

.getSubComponent()

esr360 edited this page Apr 18, 2019 · 3 revisions

Return the first instance of a matched sub-component for each element in the set of matched elements

.getSubComponent(name, config);

Use this when you know each matched element only has a single occurrence of the sub-component - if the element potentially has multiple instances of the sub-component, use the getSubComponents method

Param Type Info
name String The name of the sub-component of interest
[config] Object The configuration to use when calling the method (learn more)
Clone this wiki locally