Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit b8d76df

Browse files
committed
fix(datatable): correct docs for DataTable
1 parent 839670d commit b8d76df

File tree

1 file changed

+19
-24
lines changed

1 file changed

+19
-24
lines changed
Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
title: Data Tables
3-
description: The list component is a continuous group of text, images and icons that may contain primary or supplemental actions.
2+
title: DataTable
3+
description: The DataTable component is used to display tabular information across rows and columns.
44
keywords: data tables, svelte materialify data table component, svelte data table component
55
related:
66
- components/list
7-
- components/subheader
7+
- components/list-item-groups
88
---
99

1010
# DataTable
1111

12-
The `List` component is used to display information. It can contain an avatar, content, actions, subheaders and much more. Lists present content in a way that makes it easy to identify a specific item in a collection. They provide a consistent styling for organizing groups of text and images.
12+
The `DataTable` component is used to display tabular information across rows and columns.
1313

1414
## API
1515

@@ -28,32 +28,27 @@ Below is a collection of simple to complex examples.
2828
This is a basic example.
2929
<Components.Example file="DataTable/basic" />
3030

31-
### Disabled
32-
33-
You cannot interact with disabled `List`.
34-
<Components.Example file="List/disabled" />
35-
36-
### Dense
31+
### Basic
3732

38-
Smol
39-
<Components.Example file="List/dense" />
33+
Optionally, the header of the table can be fixed in place while scrolling.
34+
<Components.Example file="DataTable/fixed-header" />
4035

41-
### Avatar and Icons
36+
### With row selection
4237

43-
We can add avatars and icons to out lists.
44-
<Components.Example file="List/avatar" />
38+
Row selection allows users to select one or multiple rows via row checkboxes. Users can select or deselect all rows with the header row checkbox, which is also live updated based on the selection.
39+
<Components.Example file="DataTable/row-selection" />
4540

46-
### Nested
41+
### With pagination
4742

48-
Using the `ListGroup` component you can create infinite levels of depth and set custom offsets.
49-
<Components.Example file="List/nested" />
43+
Pagination can additionally be rendered in the table footer.
44+
<Components.Example file="DataTable/pagination" />
5045

51-
### Subheading and Dividers
46+
### With progress indicator
5247

53-
Lists can contain multiple subheaders and dividers.
54-
<Components.Example file="List/subheading" />
48+
Progress indicator bellow the table header can be used to signify an ongoing process to the user.
49+
<Components.Example file="DataTable/progress-indicator" />
5550

56-
### Navigation
51+
### With column sorting
5752

58-
Lists can receive an alternative `nav` styling that reduces the width `ListItem` takes up as well as adding a border radius.
59-
<Components.Example file="List/navigation" />
53+
Column sorting allows the user to reorder the table rows in ascending or descending order by a column.
54+
<Components.Example file="DataTable/column-sorting" />

0 commit comments

Comments
 (0)