Options
All
  • Public
  • Public/Protected
  • All
Menu

flowerbi-react

Index

Type aliases

ColumnDefinition: string | [string, "left" | "right"]
FlowerBITableProps<S, C>: { columns: {}; data: ExpandedQueryResult<S, C> }

Type parameters

  • S: QuerySelect

  • C: QueryCalculations<S>

Type declaration

QueryDependency: { dependency: UseQueryResult<QuerySelect, QueryCalculations<QuerySelect>>; nonEmpty?: boolean }

Defines another query on which our query depends - for example a first query may return the top 10 vendors, and a subsequent query may then use an in filter to get details about those 10 vendors.

Type declaration

  • dependency: UseQueryResult<QuerySelect, QueryCalculations<QuerySelect>>

    The result of the query we depend on

  • Optional nonEmpty?: boolean

    If true (default is false) then if the dependency query produces an empty result, our query should also produce an empty result, so there is no need to execute it.

UseQueryState: "init" | "ready" | "refresh" | "error"

Functions

  • A custom React hook that evaluates to the result of a Query, making it easy to perform a query from within a component.

    The returned object has a strongly-typed records array, and optionally a totals object. It has a state of type UseQueryState that can be used to show a loading indicator.

    Type parameters

    • S: QuerySelect

    • C: QueryCalculations<S>

    Parameters

    • fetch: QueryFetch

      The fetch function to use.

    • query: Query<S, C>

      The Query specification.

    • Optional dependencies: QueryDependency[]

      Optionally, a list of one or more other queries whose results are used to build this query, so we wait for them before executing, and optionally short-circuit to an empty result if the dependency is empty.

    Returns UseQueryResult<S, C>

Generated using TypeDoc