This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3d7d64
commit 6b501a1
Showing
28 changed files
with
478 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": 3, | ||
"name": "DataTable", | ||
"data": [ | ||
{ | ||
"visibility": "public", | ||
"description": null, | ||
"keywords": [], | ||
"name": "class", | ||
"kind": "const", | ||
"static": false, | ||
"readonly": true, | ||
"type": { | ||
"kind": "type", | ||
"text": "string", | ||
"type": "string" | ||
}, | ||
"localName": "klass" | ||
} | ||
], | ||
"computed": [], | ||
"methods": [], | ||
"components": [], | ||
"description": null, | ||
"keywords": [], | ||
"events": [], | ||
"slots": [ | ||
{ | ||
"name": "default", | ||
"description": null, | ||
"visibility": "public", | ||
"parameters": [] | ||
} | ||
], | ||
"refs": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": 3, | ||
"name": "DataTableBody", | ||
"data": [ | ||
{ | ||
"visibility": "public", | ||
"description": null, | ||
"keywords": [], | ||
"name": "class", | ||
"kind": "const", | ||
"static": false, | ||
"readonly": true, | ||
"type": { | ||
"kind": "type", | ||
"text": "string", | ||
"type": "string" | ||
}, | ||
"localName": "klass" | ||
} | ||
], | ||
"computed": [], | ||
"methods": [], | ||
"components": [], | ||
"description": null, | ||
"keywords": [], | ||
"events": [], | ||
"slots": [ | ||
{ | ||
"name": "default", | ||
"description": null, | ||
"visibility": "public", | ||
"parameters": [] | ||
} | ||
], | ||
"refs": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"version": 3, | ||
"name": "DataTableCell", | ||
"data": [ | ||
{ | ||
"visibility": "public", | ||
"description": null, | ||
"keywords": [], | ||
"name": "class", | ||
"kind": "const", | ||
"static": false, | ||
"readonly": true, | ||
"type": { | ||
"kind": "type", | ||
"text": "string", | ||
"type": "string" | ||
}, | ||
"localName": "klass" | ||
}, | ||
{ | ||
"visibility": "public", | ||
"description": null, | ||
"keywords": [], | ||
"name": "numeric", | ||
"kind": "let", | ||
"static": false, | ||
"readonly": false, | ||
"type": { | ||
"kind": "type", | ||
"text": "boolean", | ||
"type": "boolean" | ||
}, | ||
"defaultValue": false | ||
} | ||
], | ||
"computed": [], | ||
"methods": [], | ||
"components": [], | ||
"description": null, | ||
"keywords": [], | ||
"events": [], | ||
"slots": [ | ||
{ | ||
"name": "default", | ||
"description": null, | ||
"visibility": "public", | ||
"parameters": [] | ||
} | ||
], | ||
"refs": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": 3, | ||
"name": "DataTableHead", | ||
"data": [ | ||
{ | ||
"visibility": "public", | ||
"description": null, | ||
"keywords": [], | ||
"name": "class", | ||
"kind": "const", | ||
"static": false, | ||
"readonly": true, | ||
"type": { | ||
"kind": "type", | ||
"text": "string", | ||
"type": "string" | ||
}, | ||
"localName": "klass" | ||
} | ||
], | ||
"computed": [], | ||
"methods": [], | ||
"components": [], | ||
"description": null, | ||
"keywords": [], | ||
"events": [], | ||
"slots": [ | ||
{ | ||
"name": "default", | ||
"description": null, | ||
"visibility": "public", | ||
"parameters": [] | ||
} | ||
], | ||
"refs": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": 3, | ||
"name": "DataTableRow", | ||
"data": [ | ||
{ | ||
"visibility": "public", | ||
"description": null, | ||
"keywords": [], | ||
"name": "class", | ||
"kind": "const", | ||
"static": false, | ||
"readonly": true, | ||
"type": { | ||
"kind": "type", | ||
"text": "string", | ||
"type": "string" | ||
}, | ||
"localName": "klass" | ||
} | ||
], | ||
"computed": [], | ||
"methods": [], | ||
"components": [], | ||
"description": null, | ||
"keywords": [], | ||
"events": [], | ||
"slots": [ | ||
{ | ||
"name": "default", | ||
"description": null, | ||
"visibility": "public", | ||
"parameters": [] | ||
} | ||
], | ||
"refs": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script> | ||
import { | ||
DataTable, | ||
DataTableHead, | ||
DataTableRow, | ||
DataTableCell, | ||
DataTableBody, | ||
} from 'svelte-materialify/src'; | ||
</script> | ||
|
||
<DataTable> | ||
<DataTableHead> | ||
<DataTableRow> | ||
<DataTableCell>Dessert</DataTableCell> | ||
<DataTableCell numeric>Carbs (g)</DataTableCell> | ||
<DataTableCell numeric>Protein (g)</DataTableCell> | ||
<DataTableCell>Comments</DataTableCell> | ||
</DataTableRow> | ||
</DataTableHead> | ||
<DataTableBody> | ||
<DataTableRow> | ||
<DataTableCell>Frozen yogurt</DataTableCell> | ||
<DataTableCell numeric>24</DataTableCell> | ||
<DataTableCell numeric>4.0</DataTableCell> | ||
<DataTableCell>Super tasty</DataTableCell> | ||
</DataTableRow> | ||
<DataTableRow> | ||
<DataTableCell>Ice cream sandwich</DataTableCell> | ||
<DataTableCell numeric>37</DataTableCell> | ||
<DataTableCell numeric>4.33333333333</DataTableCell> | ||
<DataTableCell>I like ice cream more</DataTableCell> | ||
</DataTableRow> | ||
<DataTableRow> | ||
<DataTableCell>Eclair</DataTableCell> | ||
<DataTableCell numeric>24</DataTableCell> | ||
<DataTableCell numeric>6.0</DataTableCell> | ||
<DataTableCell>New filing flavor</DataTableCell> | ||
</DataTableRow> | ||
</DataTableBody> | ||
</DataTable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: Data Tables | ||
description: The list component is a continuous group of text, images and icons that may contain primary or supplemental actions. | ||
keywords: data tables, svelte materialify data table component, svelte data table component | ||
related: | ||
- components/list | ||
- components/subheader | ||
--- | ||
|
||
# DataTable | ||
|
||
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. | ||
|
||
## API | ||
|
||
- [DataTable](/api/DataTable/) | ||
- [DataTableHead](/api/DataTableHead/) | ||
- [DataTableBody](/api/DataTableBody/) | ||
- [DataTableRow](/api/DataTableRow/) | ||
- [DataTableCell](/api/DataTableCell/) | ||
|
||
## Examples | ||
|
||
Below is a collection of simple to complex examples. | ||
|
||
### Basic | ||
|
||
This is a basic example. | ||
<Components.Example file="DataTable/basic" /> | ||
|
||
### Disabled | ||
|
||
You cannot interact with disabled `List`. | ||
<Components.Example file="List/disabled" /> | ||
|
||
### Dense | ||
|
||
Smol | ||
<Components.Example file="List/dense" /> | ||
|
||
### Avatar and Icons | ||
|
||
We can add avatars and icons to out lists. | ||
<Components.Example file="List/avatar" /> | ||
|
||
### Nested | ||
|
||
Using the `ListGroup` component you can create infinite levels of depth and set custom offsets. | ||
<Components.Example file="List/nested" /> | ||
|
||
### Subheading and Dividers | ||
|
||
Lists can contain multiple subheaders and dividers. | ||
<Components.Example file="List/subheading" /> | ||
|
||
### Navigation | ||
|
||
Lists can receive an alternative `nav` styling that reduces the width `ListItem` takes up as well as adding a border radius. | ||
<Components.Example file="List/navigation" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { SvelteComponent } from './shared'; | ||
|
||
interface DataTableProps {} | ||
|
||
declare class DataTable extends SvelteComponent<DataTableProps> {} | ||
|
||
export default DataTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { SvelteComponent } from './shared'; | ||
|
||
interface DataTableBodyProps {} | ||
|
||
declare class DataTableBody extends SvelteComponent<DataTableBodyProps> {} | ||
|
||
export default DataTableBody; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { SvelteComponent } from './shared'; | ||
|
||
interface DataTableCellProps { | ||
numeric?: boolean; | ||
} | ||
|
||
declare class DataTableCell extends SvelteComponent<DataTableCellProps> {} | ||
|
||
export default DataTableCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { SvelteComponent } from './shared'; | ||
|
||
interface DataTableHeadProps {} | ||
|
||
declare class DataTableHead extends SvelteComponent<DataTableHeadProps> {} | ||
|
||
export default DataTableHead; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { SvelteComponent } from './shared'; | ||
|
||
interface DataTableRowProps {} | ||
|
||
declare class DataTableRow extends SvelteComponent<DataTableRowProps> {} | ||
|
||
export default DataTableRow; |
Oops, something went wrong.