Options
All
  • Public
  • Public/Protected
  • All
Menu

vuejs-datatable

Index

Type aliases

DeepPartial

DeepPartial<T>: object

Type parameters

  • T

Type declaration

TClassVal

TClassVal: string | string[] | IDict<boolean>

TColumnsDefinition

TColumnsDefinition<TRow>: Array<IColumnDefinition<TRow>>

Type parameters

  • TRow: __type

TDataFn

TDataFn<TRow>: function

Type parameters

  • TRow: __type

Type declaration

TDisplayHandler

TDisplayHandler<TRow, TSource, TFiltered, TSorted, TPaged>: function

Type parameters

  • TRow

  • TSource

  • TFiltered

  • TSorted

  • TPaged

Type declaration

TFilterHandler

TFilterHandler<TRow, TIn, TOut>: function

Type parameters

  • TRow: __type

  • TIn

  • TOut

Type declaration

    • Parameters

      • data: TIn
      • filters: string | string[]
      • columns: Array<Column<TRow>>

      Returns TMaybePromise<TOut>

TMaybePromise

TMaybePromise<T>: T | Promise<T>

Type parameters

  • T

TPaginateHandler

TPaginateHandler<TRow, TIn, TOut>: function

Type parameters

  • TRow

  • TIn

  • TOut

Type declaration

    • (sortedData: TIn, perPage: number | null, pageNumber: number): TMaybePromise<TOut>
    • Parameters

      • sortedData: TIn
      • perPage: number | null
      • pageNumber: number

      Returns TMaybePromise<TOut>

TSortHandler

TSortHandler<TRow, TIn, TOut>: function

Type parameters

  • TRow

  • TIn

  • TOut

Type declaration

Variables

Const DEFAULT_DATATABLE

DEFAULT_DATATABLE: "datatable" = "datatable"

Const VuejsDatatableFactory

VuejsDatatableFactory: DatatableFactory = new DatatableFactory()

Const classValType

classValType: any[] = [ String, Array, Object ]

Const displayHandler

displayHandler: Mock<any, any> = jest.fn()

Const filterHandler

filterHandler: Mock<any, any> = jest.fn()

Const get

get: Mock<any, any> = jest.fn()

Const getPagerDefinition

getPagerDefinition: Mock<any, [any]> = jest.fn( v => v )

Const getRepresentation

getRepresentation: Mock<any, [any]> = jest.fn( function( this: any, row: any ) {return this.field ? row[this.field] : this.representedAs( row );} )

Const getTableDefinition

getTableDefinition: Mock<any, [any]> = jest.fn( v => v )

Const merge

merge: Mock<any, any> = jest.fn()

Const namespace

namespace: "vue-datatable" = "vue-datatable"

Const paginateHandler

paginateHandler: Mock<any, any> = jest.fn()

Const set

set: Mock<any, any> = jest.fn()

Const setting

setting: Mock<any, [any]> = jest.fn( v => v )

Const sortHandler

sortHandler: Mock<any, any> = jest.fn()

Functions

Const canonicalClassVals

  • canonicalClassVals(classVal: TClassVal | null | undefined): IDict<boolean>

Const ensurePromise

Const isPromise

  • isPromise<T>(value: any): boolean
  • Type parameters

    • T

    Parameters

    • value: any

    Returns boolean

Const mergeClassVals

  • mergeClassVals(mainObj: TClassVal, ...objs: Array<TClassVal | null | undefined>): string[]

Const namespaceEvent

  • namespaceEvent(event: string): string
  • Parameters

    • event: string

    Returns string

Const stableSort

  • stableSort<T>(arr: T[], compare: function): T[]

Const tableTypeConsumerFactory

  • tableTypeConsumerFactory(tableType: TableType<any>): VueConstructor & object

Const valueToString

  • valueToString(val: any): string
  • Parameters

    • val: any

    Returns string

Generated using TypeDoc