WidgetBooleanReadOnly
Overview
Read-only presentation for boolean fields. Wraps {@link WidgetReadOnly} so the row keeps its label association, theme slots, and lookup behavior, and fills the value with {@link BooleanDisplay} instead of the raw serialized literal.
fieldMappings selects this widget through readOnlyWidget and supplies the per-type labels through readOnlyWidgetProps, so a project that says "Enabled" and "Disabled" sets them once in its own mapping rather than per field.
A consumer's own default slot still wins: this widget supplies the boolean rendering only when the field has no widget(fieldName)default override.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| trueLabel | string | "Yes" | Word shown for a true value. | |
| falseLabel | string | "No" | Word shown for a false value. |
Slots
slotName
Scoped slot.
Source
client/lib/widgets/WidgetBooleanReadOnly.vue