File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
packages/main/src/components/AnalyticalTable Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,23 @@ By adding the `visibleRowCountMode` prop and setting it to `AnalyticalTableVisib
355
355
356
356
<Canvas sourceState="none" of={ComponentStories.DynamicRowCount} />
357
357
358
+ ### Code
359
+
360
+ ` ` ` jsx
361
+ const TableComponent = (props ) => {
362
+ return (
363
+ < div style= {{ height: ` ${ props .containerHeight } px` }}>
364
+ < AnalyticalTable
365
+ data= {props .data }
366
+ columns= {props .columns }
367
+ visibleRowCountMode= {AnalyticalTableVisibleRowCountMode .Auto }
368
+ header= {` Current height: ${ props .containerHeight } px - Change the height in the table above` }
369
+ / >
370
+ < / div>
371
+ );
372
+ };
373
+ ` ` `
374
+
358
375
## Responsively display columns on small devices (Pop-In)
359
376
360
377
<ControlsWithNote
You can’t perform that action at this time.
0 commit comments