DataTable

DataTable presents a collection of data in a responsive tabular layout. Columns can be given priority to define visibility depending on screen size and optional reflow mode enables stacking on smaller screens.

Column Toggle

In column toggle mode, visibility of columns are toggled based on their priority value.

IdYearBrandColor
f586f9142002MercedesBlack
5ea1d2472002VolvoSilver
077f656f2000AudiRed
4346d8ae1995BMWGreen
40996d5e1999JaguarWhite
e1b789261981JaguarYellow
292539a01980JaguarWhite
8bc5e3ed2006FiatWhite
60db0ca81985FiatBlack
b3aee8b61966MercedesWhite

Reflow Mode

In reflow mode, datatable displays its content as stacked.

IdYearBrandColor
Idd5e40cd3Year1970BrandVolkswagenColorYellow
Id18ba4894Year1971BrandVolvoColorWhite
Id2c5942b6Year2005BrandHondaColorWhite
Id97e901baYear1982BrandFordColorBlack
Id799067e5Year1994BrandFordColorYellow
Idf0362158Year1961BrandJaguarColorSilver
Idc93cb11aYear1971BrandRenaultColorRed
Idc68f27d7Year1985BrandHondaColorWhite
Id289d6191Year1992BrandVolkswagenColorBlack
Id19b93632Year1979BrandVolkswagenColorSilver

Advanced

In addition to the responsive modes, core features such as pagination, sorting, lazy loading, dynamic columns, grouping, single and multiple selection are provided. Mobile specific events like swipeleft, swiperight, tap and taphold are available as ajax behaviors. In following datatable, swipeleft to display information in an overlay and swiperight to remove the record.

IdYearBrandColor
f3a9f6841983RenaultSilver
5a215f4e1988BMWBlue
542980bf2008JaguarBlack
263ef5c61971MercedesBlue
72fe4b0a1963MercedesBlack
833d22f11969MercedesMaroon
402b87941979RenaultWhite
0d8530dd1968RenaultRed
47627d051996HondaOrange
469027bb1985FiatMaroon

Source