Class IgcFormComponent

The form is a component used to collect user input from interactive controls.

@element

igc-form

@slot
  • Default slot for the form.
@fires

igcSubmit - Emitted when the form is submitted.

@fires

igcReset - Emitted when the form is reset.

Hierarchy

  • EventEmitterInterface<IgcFormEventMap, this> & LitElement<this>
    • IgcFormComponent

Index

Constructors

constructor

Properties

novalidate

novalidate: boolean = false

Specifies if form data validation should be skipped on submit.

Static styles

styles: CSSResult = ...

Static Readonly tagName

tagName: "igc-form" = 'igc-form'

Methods

emitEvent

  • emitEvent<K, D>(type: K, eventInitDict?: CustomEventInit<D>): boolean
  • Type parameters

    • K: keyof IgcFormEventMap

    • D: any

    Parameters

    • type: K
    • Optional eventInitDict: CustomEventInit<D>

    Returns boolean

getFormData

  • getFormData(): FormData

reportValidity

  • reportValidity(): boolean

reset

  • reset(): void

submit

  • submit(): boolean