ng-mat-forms
  • Introduction
  • Installing
  • Getting Started
  • Attributes
    • Options
      • column
      • errorMsgOnSubmit
      • floatLabel
      • color
      • appearance
    • Fields
      • type
      • label
      • formControlName
      • directive
      • placeholder
      • regex
      • defaultValue
      • validators
      • list
      • disable
      • labelShow
      • minDate
      • maxDate
      • changeEvents
      • blurEvents
      • maxLength
      • minLength
      • getListFromApi
      • api
      • loadDepenentSelectOnChange
      • errorMessage
  • Callbacks
    • formFieldsChange
    • formChange
    • formSubmit
  • Apis
    • setControlValue
    • setFormValue
    • setControlDisable
    • setControlEnable
    • setValidator
    • removeValidator
Powered by GitBook
On this page

Was this helpful?

  1. Attributes

Options

This attribute used to change the behaviour and layout of the form.

PreviousAttributesNextcolumn

Last updated 5 years ago

Was this helpful?

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:

column
errorMsgOnSubmit
floatLabel
color
appearance