// --------------------------------------------------------------------------------------------------------------------- // TESTS: FormBuilder FormArray's and CheckButtomGroups (with Select All / Select Non option) // --------------------------------------------------------------------------------------------------------------------- const model = { standardField: '', cbFormArray: ['A', 'B', 'C', 'D', 'E'] }; // Create a CB array for each member of the model // But when to render as a FormArray and when as a FormGroup? const meta = { standardField: { type: 'textarea' }, cbFormArray: { type: 'CheckbuttonGroup', showAllOrNone: 1 } }; /* const model = {}; const meta = { cbFormArray: { type: 'CheckbuttonGroup', showAllOrNone: 1, meta: [ { label: 'A', value: 'A' }, { value: 'B' }, { value: 'C' }, { value: 'D' }, { value: 'E' } ] } }; */ export { model, meta };