Variable columnsConst

columns: {
    after: (<Data>(current: Column<Data>, requester?: Plugin<any>) => Column<Data>[]);
    before: (<Data>(current: Column<Data>, requester?: Plugin<any>) => Column<Data>[]);
    for: (<DataType>(table: Table<DataType>, requester?: Plugin<any>) => Column<DataType>[]);
    next: (<Data>(current: Column<Data>, requester?: Plugin<any>) => undefined | Column<Data>);
    previous: (<Data>(current: Column<Data>, requester?: Plugin<any>) => undefined | Column<Data>);
} = ...

Type declaration

  • after: (<Data>(current: Column<Data>, requester?: Plugin<any>) => Column<Data>[])
      • <Data>(current: Column<Data>, requester?: Plugin<any>): Column<Data>[]
      • for a given current or reference column, return the columns that should appear after, or to the right of that column.

        if a plugin class is provided, the hierarchy of column list modifications will be respected.

        Type Parameters

        • Data = unknown

        Parameters

        Returns Column<Data>[]

  • before: (<Data>(current: Column<Data>, requester?: Plugin<any>) => Column<Data>[])
      • <Data>(current: Column<Data>, requester?: Plugin<any>): Column<Data>[]
      • for a given current or reference column, return the columns that should appear before, or to the left of that column.

        if a plugin class is provided, the hierarchy of column list modifications will be respected.

        Type Parameters

        • Data = unknown

        Parameters

        Returns Column<Data>[]

  • for: (<DataType>(table: Table<DataType>, requester?: Plugin<any>) => Column<DataType>[])
      • <DataType>(table: Table<DataType>, requester?: Plugin<any>): Column<DataType>[]
      • if a requester is not provided, Get the columns for the table, considering any and all plugins that could modify columns.

        If you are an end-consumer of ember-headless-table, this is the function to use. If you are a plugin-author, you'll want to pass your plugin class as the second parameter.

        For a given plugin, requester, determine what columns should be returned. Since multiple plugins could be used in a table, there is an implicit hierarchy of column modifications that can occur from each of those plugins.

        If a plugin defines other plugins as either requirements or optional requirements, and that upstream plugin defines a columns property, then those columns will be returned here.

        This works recursively up the plugin tree up until a plugin has no requirements, and then all columns from the table are returned.

        Type Parameters

        • DataType = any

        Parameters

        • table: Table<DataType>
        • Optional requester: Plugin<any>

        Returns Column<DataType>[]

  • next: (<Data>(current: Column<Data>, requester?: Plugin<any>) => undefined | Column<Data>)
      • <Data>(current: Column<Data>, requester?: Plugin<any>): undefined | Column<Data>
      • for a given current or reference column, return the column that is immediately next, or to the right of that column.

        If a plugin class is provided, the hierarchy of column list modifications will be respected.

        Type Parameters

        • Data = unknown

        Parameters

        Returns undefined | Column<Data>

  • previous: (<Data>(current: Column<Data>, requester?: Plugin<any>) => undefined | Column<Data>)
      • <Data>(current: Column<Data>, requester?: Plugin<any>): undefined | Column<Data>
      • for a given current or reference column, return the column that is immediately previous, or to the left of that column.

        If a plugin class is provided, the hierarchy of column list modifications will be respected.

        Type Parameters

        • Data = unknown

        Parameters

        Returns undefined | Column<Data>

Generated using TypeDoc