Skip to content

.module()

esr360 edited this page Apr 18, 2019 · 3 revisions

Various Module operations

.module(name, operator)

.module(name, operator, config);
Param Type Info
name String The name of the 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 be find

Operator - 'find'

Find all child modules of each element in the set of matched elements filtered by the name parameter

Operator - 'is'

Determine if each element in the set of matched elements is a module with the given name

.module(name, callback)

.module(name, callback, config);
Param Type Info
name String The name of the module of interest
[callback] Function([HTMLElement] element) Function to call on matched elements
[config] Object The configuration to use when calling the method (learn more)

Callback

A function to call on all child modules filtered by the name parameter of each element in the set of matched elements, where element is the child module

Clone this wiki locally