@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Interface IFilterableDatasource<T>

    Public ui-kit datasource contract for serializable filtering.

    Unlike the lower-level foundation datasource contract, this surface accepts the serializable FilterExpression emitted by ui-filter.

    interface IFilterableDatasource<T = unknown> {
        filterBy(expression: FilterExpression<T> | null | undefined): void;
        getNumberOfItems(): number | Promise<number>;
        getObjectAtRowIndex(rowIndex: number): RowResult<T>;
    }

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    • Applies the given serializable filter descriptor.

      Pass null, undefined, or an empty rule list to clear the filter.

      Parameters

      Returns void

    • Returns the total number of items, synchronously or asynchronously.

      Returns number | Promise<number>

    • Returns the row object at the given index.

      Parameters

      • rowIndex: number

        Zero-based index of the row to retrieve.

      Returns RowResult<T>

      The row value, or a Promise that resolves to it.