Common features of CUSTOMELEMENT
Applicable attributes
:custom-prop-func (Function)
A function for generating data that can be referred to in the slot for DOM customization which will be mentioned later.
Refer to custom element instances with “this” in functions.
For details, see Vue.js calculation property description:custom-method-func (Function)
A function to be used as an event handler in the slot for DOM customization which will be mentioned later
Refer to custom element instances with “this” in functions.
Slot for DOM customization
For the slots, see the description below
Properties that can be referenced from slots
- self: an instance of current custom element
- customProp: data returned by the function specified by attribute
:custom-prop-func