@@ -772,6 +772,7 @@ export function TableCompView(props: {
772772 const rowStyle = compChildren . rowStyle . getView ( ) ;
773773 const headerStyle = compChildren . headerStyle . getView ( ) ;
774774 const toolbarStyle = compChildren . toolbarStyle . getView ( ) ;
775+ const hideToolbar = compChildren . hideToolbar . getView ( )
775776 const rowAutoHeight = compChildren . rowAutoHeight . getView ( ) ;
776777 const tableAutoHeight = comp . getTableAutoHeight ( ) ;
777778 const showHorizontalScrollbar = compChildren . showHorizontalScrollbar . getView ( ) ;
@@ -935,7 +936,7 @@ export function TableCompView(props: {
935936 [ viewMode , compChildren . onEvent , compChildren . columns ]
936937 ) ;
937938
938- const toolbarView = (
939+ const toolbarView = ! hideToolbar && (
939940 < TableToolbar
940941 toolbar = { toolbar }
941942 $style = { toolbarStyle }
@@ -1003,7 +1004,7 @@ export function TableCompView(props: {
10031004 $showVerticalScrollbar = { showVerticalScrollbar }
10041005 $fixedToolbar = { toolbar . fixedToolbar }
10051006 >
1006- { toolbar . position === "above" && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
1007+ { toolbar . position === "above" && ! hideToolbar && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
10071008 < ScrollBar
10081009 className = "table-scrollbar-wrapper"
10091010 style = { { height : "100%" , margin : "0px" , padding : "0px" } }
@@ -1068,7 +1069,7 @@ export function TableCompView(props: {
10681069 </ SlotConfigContext . Provider >
10691070 </ TableWrapper >
10701071 </ ScrollBar >
1071- { toolbar . position === "below" && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
1072+ { toolbar . position === "below" && ! hideToolbar && ( toolbar . fixedToolbar || ( tableAutoHeight && showHorizontalScrollbar ) ) && toolbarView }
10721073 </ BackgroundWrapper >
10731074
10741075 </ BackgroundColorContext . Provider >
0 commit comments