Home Reference Source
import {GridLayout} from 'tablefilter/src/modules/gridLayout.js'
public class | source

GridLayout

Extends:

Feature → GridLayout

Grid layout, table with fixed headers

Constructor Summary

Public Constructor
public

Creates an instance of GridLayout

Member Summary

Public Members
public

Css class for body table container element

public

Grid-layout default column widht as CSS string

public

Enable or disable column filters generation, default: true

public

Css class for headers table container element

public

Index of the headers row, default: 0

public

Collection of the header row indexes to be moved into headers table

public

Grid-layout container height as CSS string

public

Css class for toolbar container element (rows counter, paging etc.)

public
public

Css class for main container element

public

Enable or disable column headers, default: false

public

Grid-layout container width as CSS string

Method Summary

Public Methods
public

Removes the grid layout

public

init()

Generates a grid with fixed headers TODO: reduce size of init by extracting single purposed methods

Inherited Summary

From class Feature
public

TableFilter configuration

public

TableFilter emitter instance

public

TableFilter feature setting

public

Feature name

public

Field indicating whether Feature is initialized

public

TableFilter instance

public

Destroy the feature

public

Disable the feature

public

enable()

Enable the feature

public

init()

Initialize the feature

public

Indicate whether the feature is enabled or not

public

reset()

Reset the feature after being disabled

Public Constructors

public constructor(tf: TableFilter) source

Creates an instance of GridLayout

Override:

Feature#constructor

Params:

NameTypeAttributeDescription
tf TableFilter

TableFilter instance

Public Members

public contCssClass: String source

Css class for body table container element

public defaultColWidth: String source

Grid-layout default column widht as CSS string

public filters: Boolean source

Enable or disable column filters generation, default: true

public headContCssClass: String source

Css class for headers table container element

public headRowIndex: Number source

Index of the headers row, default: 0

public headRows: Array source

Collection of the header row indexes to be moved into headers table

public height: String source

Grid-layout container height as CSS string

public infDivCssClass: String source

Css class for toolbar container element (rows counter, paging etc.)

public initialized: boolean source

Field indicating whether Feature is initialized

Override:

Feature#initialized

public mainContCssClass: String source

Css class for main container element

public noHeaders: Boolean source

Enable or disable column headers, default: false

public width: String source

Grid-layout container width as CSS string

Public Methods

public destroy() source

Removes the grid layout

Override:

Feature#destroy

public init() source

Generates a grid with fixed headers TODO: reduce size of init by extracting single purposed methods

Override:

Feature#init