Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

  • MDCRippleCapableSurface

Index

Constructors

constructor

  • Parameters

    • root: Element
    • Optional foundation: FoundationType
    • Rest ...args: Array<unknown>

    Returns MDCTextField

Properties

Protected foundation_

ripple

ripple: MDCRipple | null

root_

root_: HTMLElement

Accessors

disabled

  • get disabled(): boolean
  • set disabled(disabled: boolean): void

helperTextContent

  • set helperTextContent(content: string): void

leadingIconAriaLabel

  • set leadingIconAriaLabel(label: string): void

leadingIconContent

  • set leadingIconContent(content: string): void

max

  • get max(): string
  • set max(max: string): void

maxLength

  • get maxLength(): number
  • set maxLength(maxLength: number): void

min

  • get min(): string
  • set min(min: string): void

minLength

  • get minLength(): number
  • set minLength(minLength: number): void

pattern

  • get pattern(): string
  • set pattern(pattern: string): void

required

  • get required(): boolean
  • set required(required: boolean): void

step

  • get step(): string
  • set step(step: string): void

trailingIconAriaLabel

  • set trailingIconAriaLabel(label: string): void

trailingIconContent

  • set trailingIconContent(content: string): void

useNativeValidation

  • set useNativeValidation(useNativeValidation: boolean): void
  • Enables or disables the use of native validation. Use this for custom validation.

    Parameters

    • useNativeValidation: boolean

      Set this to false to ignore native input validation.

    Returns void

valid

  • get valid(): boolean
  • set valid(valid: boolean): void

value

  • get value(): string
  • set value(value: string): void

Methods

destroy

  • destroy(): void

emit

  • emit<T>(evtType: string, evtData: T, shouldBubble?: boolean): void
  • Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.

    Type parameters

    • T: object

    Parameters

    • evtType: string
    • evtData: T
    • Default value shouldBubble: boolean = false

    Returns void

focus

  • focus(): void

getDefaultFoundation

initialSyncWithDOM

  • initialSyncWithDOM(): void
  • Initializes the Text Field's internal state based on the environment's state.

    Returns void

initialize

layout

  • layout(): void

listen

  • Wrapper method to add an event listener to the component's root element. This is most useful when listening for custom events.

    Type parameters

    Parameters

    Returns void

  • Type parameters

    • E: Event

    Parameters

    Returns void

unlisten

  • Wrapper method to remove an event listener to the component's root element. This is most useful when unlistening for custom events.

    Type parameters

    Parameters

    Returns void

  • Type parameters

    • E: Event

    Parameters

    Returns void

Static attachTo

Generated using TypeDoc