Overview
The core define
method can take up to 3 arguments:
name
Custom element tag.element
VanJS functional component.options
(optional)
Extra Shadow DOM options.
The provided VanJS method will be provided with some properties:
attr()
Method to retrieve the value of a given attribute.mount()
Lifecycle hook to registermount
anddismount
callbacks.$this
Refers to the instance of the Van Element.