- Source:
Methods
(static) gather() → {Promise}
- Source:
Properties:
Name | Type | Description |
---|---|---|
fn |
Promise | The dynamic import function |
attr |
String | The data attribute used to select behaviours |
Get data behaviours and instantiate
Returns:
- Type
- Promise
(static) hydrate() → {Promise}
- Source:
Properties:
Name | Type | Description |
---|---|---|
context |
HTMLElement | the selector to query from |
wrapper |
String | css selector, used to work out if an element should be destroyed |
Get data behaviours and instantiate
Returns:
- Type
- Promise
(static) loader(fn) → {Object}
- Source:
Example
loader(import(`@/behaviours/${behaviour}`))
Parameters:
Name | Type | Description |
---|---|---|
fn |
Promise | - |
Returns:
- Type
- Object
(static) unmount() → {void}
- Source:
Unmount the scoped behaviours
Returns:
- Type
- void