OGE logoOGE

Check Box Group

An items-bound list of check boxes whose value is the array of checked item values — the Syncfusion / PrimeNG checkbox group, as one form field with a label, hint and validation subscript. Each item is a real oge-check-box (native semantics, its own Tab stop — the APG checkbox pattern) inside a role="group" named by the label.

Works standalone via [(value)], with Signal Forms via [formField], and with reactive/template forms via formControl/ngModel.

array value select all layouts Signal Forms

Getting started

displayExpr / valueExpr / disabledExpr are the select box vocabulary. The value is the array of checked valueExpr results in items order, whatever order the user clicked in; disabled items keep their state.

items valueExpr disabledExpr hint
Notify me by
We never share your details.

Value: ["mail","push"]

Select all

showSelectAll adds a tri-state box over the enabled items — checked, mixed (aria-checked='mixed') or unchecked; from mixed it selects all. selectAll() / unselectAll() do the same from code.

showSelectAll tri-state selectAll()
Columns to export

Layouts

layout: 'vertical' | 'horizontal' | 'columns' — a column, a wrapping row, or a CSS grid of columns columns.

vertical horizontal columns
Days
Toppings

Inside a form

Signal Forms' required() treats [] as a value, so “at least one” is minLength(p.field, 1, { message }); reactive Validators.required treats [] as empty and works as is. Touch the group and leave it empty to see the error.

[formField] minLength(…, 1) CVA
Interests