@timlassiter11/yatl
    Preparing search index...

    Interface CellEditor<T>

    interface CellEditor<T extends object = UnspecifiedRecord> {
        canEdit: (field: NestedKeyOf<T>, row: T) => boolean;
        render: (
            value: unknown,
            field: NestedKeyOf<T>,
            row: T,
            controller: YatlTableController<T>,
        ) => unknown;
    }

    Type Parameters

    Index

    Properties

    Properties

    canEdit: (field: NestedKeyOf<T>, row: T) => boolean

    A function to determine if editing should be allowed for the given row.

    render: (
        value: unknown,
        field: NestedKeyOf<T>,
        row: T,
        controller: YatlTableController<T>,
    ) => unknown

    A method for rendering the input element used for editing the cell

    Type Declaration

      • (
            value: unknown,
            field: NestedKeyOf<T>,
            row: T,
            controller: YatlTableController<T>,
        ): unknown
      • Parameters

        Returns unknown

        Should return a renderable object like TemplateResult