Function useHighlightedForeignRowsAsColumns

  • design of this will need to change to account for n-links

    Will return an array of DataColumn objects, with loaded data, updated as the highlighted/filtered rows change in the linked DataSource.

    We could also consider

    • having distinct hooks for highlighted and filtered rows (potentially ways of composing custom filter graphs).
    • controls for pagination.
    • returning column objects that are not loaded yet, but will be loaded when they are needed.

    Parameters

    • max: number = 10

      maximum number of columns to return

    • filter: string = ""

    Returns DataColumn<DataType>[]

    an array of DataColumn objects, with loaded data, for virtual columns corresponding to the highlighted/filtered rows in the linked dataSource.