Skip to content

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 ​

NameTypeRequiredDefaultDescription
trueLabelstring"Yes"Word shown for a true value.
falseLabelstring"No"Word shown for a false value.

Slots ​

slotName ​

Scoped slot.

Source ​

client/lib/widgets/WidgetBooleanReadOnly.vue