You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-components/source/react/library/table/Table.md
+24-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Tables display data and sometimes allow users to take action on that data. Table
7
7
- Use headings to eliminate redundant words in columns. For example, instead of Version 3.8.4 and Version 3.8.5, title the column Version, and use only the version numbers in the table cells. This makes it easier for users to scan the options and reduces word count for Localization. Use sentence case capitalization.
8
8
- Use capitalization appropriate to the item named in the cell. For example, if the cell lists an environment, use the same capitalization as the environment name.
9
9
10
-
###Basic use
10
+
## Basic use
11
11
12
12
A basic table displays content and doesn't add additional capabilities.
13
13
@@ -32,6 +32,8 @@ const columns = [
32
32
```
33
33
<!-- prettier-ignore-end -->
34
34
35
+
## Variations
36
+
35
37
### Fixed layouts
36
38
37
39
The `fixed` prop allows the table to be used in fixed layout mode. Provide explicit widths with the inline `style` parameter on each column or with an additional className.
@@ -185,3 +187,24 @@ A unique key can also be provided via a function:
185
187
rowKey={rowData=>rowdata.nested.uniqueKey}
186
188
/>
187
189
```
190
+
191
+
### Hidden Overflow
192
+
193
+
Use the `hideOverflow` flag if you want to hide long cell content with an ellipses. The flag only affects the column it is turned on for. You must provide explicit widths with the inline `style` parameter on each column you want to use it on or with an additional className.
194
+
195
+
<!-- prettier-ignore-start -->
196
+
```jsx
197
+
constdata= [
198
+
{ id:1, type:'Lorem ipsum', passage:'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', characters:123 },
199
+
{ id:2, type:'Cicero', passage:'Sed ut perspiciatis', characters:19 },
200
+
{ id:3, type:'1914', passage:'But I must explain to you how all this mistaken idea', characters:52 },
0 commit comments