Options
This attribute used to change the behaviour and layout of the form.
Type of the options is NgMatFormOptions.
Example:
import {NgMatFormOptions,NgMatFormFields} from 'ng-mat-forms';
// other imports here...
export class MyTestApp {
public ngMatFormsOptions: NgMatFormOptions = {
column: 3,
errorMsgOnSubmit: false,
floatLabel: 'auto',
color: 'primary',
appearance: 'legacy'
};
}
Here are the articles in this section:
columnerrorMsgOnSubmitfloatLabelcolorappearanceLast updated
Was this helpful?