Custom component
Custom components are small, self-contained elements of code that can be used and re-used when building widgets. Custom components contains the following elements: definition (QEXT) file, main JavaScript file and optional assets such as JavaScript libraries, images, and fonts.
Properties
- componentName stringRequired
The name of the component
- restrict stringRequired
- link linkRequired
link properties
- link() functionRequiredParameters
- scope objectRequired
- element $ElementRequired
- attrs objectRequired
-
-
Parameters
- scope objectRequired
- element $ElementRequired
- attrs objectRequired
Properties
- name stringRequired
The name of the custom component.
- description stringRequired
Provides a meaningful description of your custom component.
- type stringRequired
Extension type. Should always be
'component'
for custom components. - version stringRequired
Version of your custom component. Uses the semantic version concept.
- author string
Author of the custom component.