@samatawy/diagrams
    Preparing search index...

    Class TextInputAdapter

    Inspector adapter for plain text properties. Always renders a textarea that wraps text and grows to fit its content via the native field-sizing: content CSS property. Ctrl+Enter inserts a newline only when multiline is enabled.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cell: HTMLElement
    mixedClassName: string
    returnKey?: string

    Methods

    • Registers the callback invoked whenever the user changes the control value. Pass null to disconnect the handler.

      Parameters

      • handler: ((value: unknown) => void) | null

        The callback to invoke, or null to clear.

      Returns void

    • Extracts a key-value pair from a record, optionally by explicit key. Falls back to the first entry in the record when no key is given.

      Parameters

      • record: EditableRecord

        The source record.

      • Optionalkey: string

        Optional explicit key override.

      Returns { key: string; value: unknown }

      An object containing the resolved key and its value.