@samatawy/diagrams
    Preparing search index...

    Class CheckboxAdapter

    Inspector adapter for boolean properties rendered as checkboxes.

    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.