ElementLabel โ
Used by elements to display a label.
Properties โ
All the data
, computed
and inject
properties of the component.
label โ
- Type:
string|Component
- Group:
computed
The label of the component.
id โ
- Type:
string
- Group:
computed
The id
attribute of the container.
hasLabel โ
- Type:
boolean
- Group:
computed
Whether the element has a label
option, a #label
slot or Vueform
component's forceLabels
option is true
.
Size โ
- Type:
string
- Group:
inject
The size of the component.
View โ
- Type:
string
- Group:
computed
The name of the resolved view for the component. This one should be used to determine the component's view in class functions.
template โ
- Type:
object
- Group:
computed
The component's template.
classes โ
- Type:
object
- Group:
computed
The component's classes.
theme โ
- Type:
object
- Group:
inject
The global theme object, which contains all the default templates and classes.
form$ โ
- Type:
Vueform
- Group:
inject
The root form's component.
el$ โ
- Type:
VueformElement
- Group:
inject
The parent element's component.
Slots โ
The slots of the component.
default โ
Renders the content of the label if the parent element has no label
.
info โ
Passes its content to ElementInfo
's default
slot.