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

Properties

novalidate: boolean = false

Specifies if form data validation should be skipped on submit.

styles: CSSResult = ...
tagName: "igc-form" = 'igc-form'

Methods

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

    • K extends keyof IgcFormEventMap

    • D extends any

    Parameters

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

    Returns boolean

  • getFormData(): FormData
  • reportValidity(): boolean
  • reset(): void
  • submit(): boolean