Useful Components Logo

Component Library

Table

One of easiest way to display a large amount of data is to display the table. Here is a component that allow to display data in a pretty way and to let users have some controls (sort, filter, ...) on it.

Basic table

IDNameQuantityBuying date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12
This is a simple HTML table. It is not responsive and does not have any interactivity.

Header row

Automatically, the titles of column are set to the keyname of the dictionnary, you can change that.

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12
id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12

Clikable row

Allow the user to get more informations about a row.

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12

Clikable cell

Allow the user to get more informations about a cell.

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12

Box and Title

The table can be directly put on a box with a title

Fruit information

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12
The box is responsive, if the screen is too small, the table will be scrollable. This is not the case otherwise.

Sort

The table can be sortable by clicking on incons in the header of the column.

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12

Filterable column

It is possible to filter some columns to hide them from display.

Icons appear on hover

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12

Icons appear always

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12

Icons appear outside box

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12
Some styles need to be changed !

Download

It is possible to get only information that the user want to display, for downloading them for instance.

Downloadable table

id
name
quantity
buying_date
1banana282023-10-01
2apple152023-10-05
3orange422023-10-10
4grape82023-10-12

Paginated

Coming soon !

Virtual table

When you have a lot of columns, you can use the virtual table to display only the columns that are visible on the screen.

Virtual table

id
name
quantity
buying_date
The virtual table is not compatible with the filterable and downloadable options. There is also some problems of styling !