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/main/src/components/AnalyticalTable/AnalyticalTable.mdx
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -77,5 +77,37 @@ React.useEffect(() => {
77
77
78
78
For more details on this behavior you can double check the [react-table docs](https://github.com/tannerlinsley/react-table/blob/master/docs/faq.md#how-do-i-stop-my-table-state-from-automatically-resetting-when-my-data-changes).
79
79
80
-
<Stories />
80
+
### How can I show a subset of all columns on mobile devices?
81
+
82
+
83
+
In case you want to use the `AnalyticalTable` on mobile devices as well, it might be helpful to reduce the amount of columns
84
+
for the sake of better readability. You can achieve this by using the `useViewportRange` hook in combination with a local React state:
With the help of that effect, the table will now show either 2 columns on a mobile phone, 3 columns on a tablet device and all columns on Desktop devices.
0 commit comments