vault/ui/app/utils/forms/field-group.ts
Vault Automation 0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* license: update headers to IBM Corp.
* `make proto`
* update offset because source file changed

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2025-10-21 15:20:20 -06:00

16 lines
505 B
TypeScript

/**
* Copyright IBM Corp. 2016, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
import type FormField from './field';
// very simple util class that accepts a key and an array of form fields
// returns an object in the expected shape for use in the formFieldsGroup array of forms
export default class FormFieldGroup {
[key: string]: FormField[]; // Add an index signature to allow dynamic property assignment
constructor(groupName: string, fields: FormField[]) {
this[groupName] = fields;
}
}