Options
All
  • Public
  • Public/Protected
  • All
Menu

Module components-legacy/table/table.definitions

Index

Type Aliases

RowAction<SuppliedDataType>: MenuKebabAction<SuppliedDataType>

Type Parameters

  • SuppliedDataType

TableActionEventSelected: { event: SelectionChange<unknown>; selected: unknown[] }

Type declaration

  • event: SelectionChange<unknown>
  • selected: unknown[]
TableCellTemplate: "text" | "checkbox" | "datepicker" | "input"

Built in form elements for inline editing or default text TemplateRef

TableColumnAction<SuppliedDataType>: { actions?: LinqMenuAction[]; hidden?: boolean | ((column: TableColumn, row: SuppliedDataType) => boolean); key?: string | number; label: string | ((column: TableColumn, row: SuppliedDataType) => string); semantic?: LinqButtonSemanticTypes | ((column: TableColumn, row: SuppliedDataType) => LinqButtonSemanticTypes); variant: LinqButtonTypes | ((column: TableColumn, row: SuppliedDataType) => LinqButtonTypes); disabled?: any; onClick?: any }

Render a

Type Parameters

  • SuppliedDataType = any

Type declaration

  • Optional actions?: LinqMenuAction[]
  • Optional hidden?: boolean | ((column: TableColumn, row: SuppliedDataType) => boolean)
  • Optional key?: string | number
  • label: string | ((column: TableColumn, row: SuppliedDataType) => string)
  • Optional semantic?: LinqButtonSemanticTypes | ((column: TableColumn, row: SuppliedDataType) => LinqButtonSemanticTypes)
  • variant: LinqButtonTypes | ((column: TableColumn, row: SuppliedDataType) => LinqButtonTypes)
  • disabled?:function
    • disabled(column: TableColumn<unknown>, row: SuppliedDataType): boolean
    • Parameters

      Returns boolean

  • onClick?:function
    • onClick(column: TableColumn<unknown>, row: SuppliedDataType): void
    • Parameters

      Returns void

TableConfig<SuppliedDataType>: Partial<TableConfigCore<SuppliedDataType>> & Pick<TableConfigCore<SuppliedDataType>, "columns">

Only columns are required when using the component.

Type Parameters

  • SuppliedDataType = any

TableFilterSearch: string
TablePaginatorMode: TableDataMode

TablePaginatorMode is used to change the default behavior of the table pagination.

Auto: The auto mode assigns the paginator to the MatTableDataSource paginator method. The auto mode will handle the number of pages, the length and page events. Page events are still sent to the action emitter in auto mode.

Async: The async mode does not assign the MatPaginator to the MatTableDataSource. The paginator is rendered but does not control the length, page index or items per page. When using async mode the parent component must listen for PAGINATOR action. The PAGINATOR action will return the new page index and the page length. The parent component must update the data passed to the table in order to trigger a re-render.

Generated using TypeDoc