interface FormGroupConfig {
    classes?: string[];
    hidden?: boolean | "until-found";
    hint?: string;
    input: HTMLElement | HTMLCollection;
    label: string;
    localize?: boolean;
    rootId?: string;
    stacked?: boolean;
    units?: string;
    widget?: any;
}

Properties

classes?: string[]

An array of CSS classes applied to the form group element

hidden?: boolean | "until-found"

The value of the form group's hidden attribute

hint?: string

Hint text displayed as part of the form group

input: HTMLElement | HTMLCollection

An HTML element or collection of elements which provide the inputs for the group

label: string

A text label to apply to the form group

localize?: boolean

Should labels or other elements within this form group be automatically localized?

rootId?: string

Some parent CSS id within which field names are unique. If provided, this root ID is used to automatically assign "id" attributes to input elements and "for" attributes to corresponding labels.

stacked?: boolean

Is the "stacked" class applied to the form group

units?: string

An optional units string which is appended to the label

widget?: any

A custom form group widget function which replaces the default group HTML generation