GridCellRendererStore class

Index

Constructors

Public Methods

Constructors


constructor

⊕ new GridCellRendererStore(options: EasyGridOptions): GridCellRendererStore

Parameters:


Public Methods


getCellType

▸ getCellType(dataType: DataType): CellRendererType

Parameters:

Returns CellRendererType


getDefaultRenderer

▸ getDefaultRenderer(columnType: DataType): GridCellRenderer

Parameters:

Returns GridCellRenderer


getDefaultRendererByType

▸ getDefaultRendererByType(rendererType: CellRendererType): GridCellRenderer

Parameters:

Returns GridCellRenderer


getRenderer

▸ getRenderer(name: string): (value: any, column: GridColumn, cellElement: HTMLElement, rowElement: HTMLElement) => void

Parameters:

  • name: string

Returns (value: any, column: GridColumn, cellElement: HTMLElement, rowElement: HTMLElement) => void


registerRenderer

▸ registerRenderer(name: string,renderer: GridCellRenderer): void

Parameters:

  • name: string
  • renderer: GridCellRenderer

Returns void


setDefaultRenderer

▸ setDefaultRenderer(cellType: CellRendererType,renderer: GridCellRenderer): void

Parameters:

Returns void