Factory injected into the DataTableFactory implementation. It is responsible to create column providers. The default implementation is registered as result-api.ColumnProviderFactory at the system.

interface ColumnProviderFactory {
    createColumnProvider(
        opts: {
            dataset: Dataset;
            formatters: FormatterFacade;
            isAllowedField: (name: string) => boolean;
        },
    ): ColumnProvider;
}

Methods

  • Creates a ColumnProvider.

    Parameters

    • opts: {
          dataset: Dataset;
          formatters: FormatterFacade;
          isAllowedField: (name: string) => boolean;
      }
      • dataset: Dataset

        the dataset for which columns should be created.

      • formatters: FormatterFacade

        available information about Formatters and FormattingInfos.

      • isAllowedField: (name: string) => boolean

        a function to check if a fields should be displayed.

    Returns ColumnProvider