Skip to content

Commit

Permalink
fix: one more rearrangeColumns file fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevetracvc committed Mar 30, 2022
1 parent 9464aa7 commit 679dde8
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function loadData(
alignPn = false,
showCellBars = true,
includeSearch = true,
rearrangeColumns = false,
allowRearrangeColumns = false,
},
): TableChartProps {
if (!props.queriesData || !props.queriesData[0]) return props;
Expand All @@ -87,7 +87,7 @@ function loadData(
page_length: pageLength,
show_cell_bars: showCellBars,
include_search: includeSearch,
rearrange_columns: rearrangeColumns,
allow_rearrange_columns: allowRearrangeColumns,
},
height: window.innerHeight - 130,
};
Expand Down Expand Up @@ -121,15 +121,18 @@ export const BigTable = ({ width, height }) => {
const includeSearch = boolean('Include search', true);
const alignPn = boolean('Align PosNeg', false);
const showCellBars = boolean('Show Cell Bars', true);
const rearrangeColumns = boolean('Allow user to rearrange columns', false);
const allowRearrangeColumns = boolean(
'Allow end user to drag-and-drop column headers to rearrange them.',
false,
);
const chartProps = loadData(birthNames, {
pageLength,
rows,
cols,
alignPn,
showCellBars,
includeSearch,
rearrangeColumns,
allowRearrangeColumns,
});
return (
<SuperChart
Expand Down

0 comments on commit 679dde8

Please sign in to comment.