Interface LabelledControlProperties

<svi-labelled-control
[childNode]="childNode"
[pageModel]="pageModel"
>
<!-- my control -->
</svi-labelled-control>
const labelledControl = document.createElement(SVICustomElement.LabelledControl);
labelledControl.pageModel = this.pageModel;
labelledControl.childNode = this.childNode;
labelledControl.appendChild(myControlElement)
interface LabelledControlProperties {
    childNode: Control<TypeAttributes>;
    dataSource?: string;
    disableMaskToggle?: boolean;
    for?: string;
    hideMaskToggle?: boolean;
    isDisabled?: boolean;
    isRequired?: boolean;
    labelClass?: string;
    overrideLabel?: string;
    pageModel: PageModel;
}

Hierarchy (view full)

Properties

dataSource?: string

Specify which dataSource the label's mask-toggle-button will toggle.

If no dataSource is specified, the mask-toggle-button will toggle the dataSource(s) defined in the childNode's typeAttributes.

disableMaskToggle?: boolean

Disable the label's mask toggle button.

for?: string

Set the label's for attribute.

hideMaskToggle?: boolean

Hide the label's mask toggle button.

isDisabled?: boolean

Set the label as disabled.

isRequired?: boolean

Set the label as required.

labelClass?: string

Add css classes to the label element.

overrideLabel?: string

Override the text displayed in the label.

pageModel: PageModel