@@ -772,6 +772,7 @@ export function TableCompView(props: {
772
772
const rowStyle = compChildren . rowStyle . getView ( ) ;
773
773
const headerStyle = compChildren . headerStyle . getView ( ) ;
774
774
const toolbarStyle = compChildren . toolbarStyle . getView ( ) ;
775
+ const hideToolbar = compChildren . hideToolbar . getView ( )
775
776
const rowAutoHeight = compChildren . rowAutoHeight . getView ( ) ;
776
777
const tableAutoHeight = comp . getTableAutoHeight ( ) ;
777
778
const showHorizontalScrollbar = compChildren . showHorizontalScrollbar . getView ( ) ;
@@ -935,7 +936,7 @@ export function TableCompView(props: {
935
936
[ viewMode , compChildren . onEvent , compChildren . columns ]
936
937
) ;
937
938
938
- const toolbarView = (
939
+ const toolbarView = ! hideToolbar && (
939
940
< TableToolbar
940
941
toolbar = { toolbar }
941
942
$style = { toolbarStyle }
@@ -1003,7 +1004,7 @@ export function TableCompView(props: {
1003
1004
$showVerticalScrollbar = { showVerticalScrollbar }
1004
1005
$fixedToolbar = { toolbar . fixedToolbar }
1005
1006
>
1006
- { toolbar . position === "above" && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
1007
+ { toolbar . position === "above" && ! hideToolbar && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
1007
1008
< ScrollBar
1008
1009
className = "table-scrollbar-wrapper"
1009
1010
style = { { height : "100%" , margin : "0px" , padding : "0px" } }
@@ -1068,7 +1069,7 @@ export function TableCompView(props: {
1068
1069
</ SlotConfigContext . Provider >
1069
1070
</ TableWrapper >
1070
1071
</ ScrollBar >
1071
- { toolbar . position === "below" && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
1072
+ { toolbar . position === "below" && ! hideToolbar && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
1072
1073
</ BackgroundWrapper >
1073
1074
1074
1075
</ BackgroundColorContext . Provider >
0 commit comments