Wagtail client-side components
    Preparing search index...

    Adds the ability for a text area element to be auto-sized as the user types in the field so that it expands to show all content.

    <textarea data-controller="w-autosize"></textarea>
    

    Hierarchy

    Index

    Constructors

    • Parameters

      • context: Context

      Returns AutosizeController

    Properties

    context: Context
    resizeObserver?: ResizeObserver
    blessings: (<T>(constructor: Constructor<T>) => any)[]
    outlets: string[]
    targets: string[]
    values: ValueDefinitionMap

    Accessors

    • get application(): Application

      Returns Application

    • get classes(): ClassMap

      Returns ClassMap

    • get data(): DataMap

      Returns DataMap

    • get element(): ElementType

      Returns ElementType

    • get identifier(): string

      Returns string

    • get outlets(): OutletSet

      Returns OutletSet

    • get scope(): Scope

      Returns Scope

    • get targets(): TargetSet

      Returns TargetSet

    • get shouldLoad(): boolean

      Returns boolean

    Methods

    • Parameters

      • eventName: string
      • Optional__namedParameters: Partial<
            {
                bubbles: boolean;
                cancelable: boolean;
                detail: Object;
                prefix: string;
                target: Element
                | Window
                | Document;
            },
        >

      Returns CustomEvent<Object>

    • Parameters

      • _identifier: string
      • _application: Application

      Returns void