Component Data Grid
Grids are used when displaying a data table.
Example
ID | Animal name | Animal type |
---|---|---|
1 | Kitty | cat |
2 | Doug | dog |
3 | Travis | tiger |
Props
Attr | Type | Default | Docs |
---|---|---|---|
borders | "all" | "none" | "outside" | 'none' | This is the value used to set the table style as bordered. |
hoverable | boolean | false | This boolean is the value used to set the table style as hoverable. |
labelled-by | string | '' | This is the DOM element ID used to label this table. This is used for accessibility. |
loading | boolean | false | This boolean is used to set the grid in |
loading-message | string | 'loading...' | This property is the message to be displayed when loading property is set to |
sort-direction | "ascending" | "descending" | "none" | 'none' | This property represents the direction for sorting.
Possible values: |
sort-on | string | '' | This property turns column sorting on. This is used with |
striped | boolean | false | This boolean is the value used to set the table style as striped. |
Methods
Name | Returns | Docs |
---|---|---|
sortCompleted |
| This public method sets |
Events
Event | Detail | Docs |
---|---|---|
sortChange | any | This event will be triggered when a column sorting is emitted by a column header |
Do you have an idea, or want to help us improve this page? Reach out to us via email.
DTMB-DG-Support@michigan.govNeed help? Visit our Support page to learn how to get assistance, troubleshoot issues, and connect with the team.