Skip to content

Commit 902fe26

Browse files
author
FalkWolsky
committed
Optional Hiding Table Toolbar
1 parent f4e4a88 commit 902fe26

File tree

10 files changed

+16
-4
lines changed

10 files changed

+16
-4
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

client/packages/lowcoder/src/comps/comps/tableComp/tablePropertyView.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,9 @@ export function compTablePropertyView<T extends MultiBaseComp<TableChildrenType>
547547
{comp.children.hideHeader.propertyView({
548548
label: trans("table.hideHeader"),
549549
})}
550+
{comp.children.hideToolbar.propertyView({
551+
label: trans("table.hideToolbar"),
552+
})}
550553
{comp.children.viewModeResizable.propertyView({
551554
label: trans("table.viewModeResizable"),
552555
tooltip: trans("table.viewModeResizableTooltip"),

client/packages/lowcoder/src/comps/comps/tableComp/tableTypes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ const tableChildrenMap = {
239239
rowStyle: styleControl(TableRowStyle, 'rowStyle'),
240240
summaryRowStyle: styleControl(TableSummaryRowStyle, 'summaryRowStyle'),
241241
toolbarStyle: styleControl(TableToolbarStyle, 'toolbarStyle'),
242+
hideToolbar: withDefault(BoolControl,false),
242243
headerStyle: styleControl(TableHeaderStyle, 'headerStyle'),
243244
searchText: StringControl,
244245
columnsStyle: styleControl(TableColumnStyle, 'columnsStyle'),

client/packages/lowcoder/src/i18n/locales/de.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,8 @@ export const de = {
19881988
"defaultButton": "Standard",
19891989
"type": "Typ",
19901990
"tableSize": "Tabelle Größe",
1991-
"hideHeader": "Tabellenüberschrift ausblenden",
1991+
"hideHeader": "Tabellenkopfzeile ausblenden",
1992+
"hideToolbar" : "Tabellenfußzeile ausblenden",
19921993
"fixedHeader": "Feste Tabellenüberschrift",
19931994
"fixedHeaderTooltip": "Kopfzeile wird für vertikal scrollbare Tabelle fixiert",
19941995
"fixedToolbar": "Feste Symbolleiste",

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,6 +2035,7 @@ export const en = {
20352035
"type": "Type",
20362036
"tableSize": "Table Size",
20372037
"hideHeader": "Hide Table Header",
2038+
"hideToolbar": "Hide Table Toolbar (Footer)",
20382039
"fixedHeader": "Fixed Table Header",
20392040
"fixedHeaderTooltip": "Header Will Be Fixed for Vertically Scrollable Table",
20402041
"fixedToolbar": "Fixed Toolbar",

client/packages/lowcoder/src/i18n/locales/es.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ export const es = {
19891989
"type": "Tipo",
19901990
"tableSize": "Tamaño de la tabla",
19911991
"hideHeader": "Ocultar cabecera de tabla",
1992+
"hideToolbar": "Ocultar pie de página",
19921993
"fixedHeader": "Cabecera de tabla fija",
19931994
"fixedHeaderTooltip": "La cabecera será fija para la tabla desplazable verticalmente",
19941995
"fixedToolbar": "Barra de herramientas fija",

client/packages/lowcoder/src/i18n/locales/it.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ export const it = {
19891989
"type": "Tipo",
19901990
"tableSize": "Dimensione della tabella",
19911991
"hideHeader": "Nascondere l'intestazione della tabella",
1992+
"hideToolbar": "Nascondere Piè di pagina",
19921993
"fixedHeader": "Intestazione fissa della tabella",
19931994
"fixedHeaderTooltip": "L'intestazione sarà fissa per la tabella a scorrimento verticale",
19941995
"fixedToolbar": "Barra degli strumenti fissa",

client/packages/lowcoder/src/i18n/locales/pt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ export const pt = {
19891989
"type": "Tipo",
19901990
"tableSize": "Tamanho da Tabela",
19911991
"hideHeader": "Ocultar Cabeçalho da Tabela",
1992+
"hideToolbar": "Ocultar barra de ferramentas",
19921993
"fixedHeader": "Cabeçalho da Tabela Fixo",
19931994
"fixedHeaderTooltip": "O cabeçalho será fixado para tabelas com rolagem vertical",
19941995
"fixedToolbar": "Barra de Ferramentas Fixa",

client/packages/lowcoder/src/i18n/locales/ru.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ export const ru = {
19891989
"type": "Тип",
19901990
"tableSize": "Размер стола",
19911991
"hideHeader": "Скрыть заголовок таблицы",
1992+
"hideToolbar": "Скрыть нижний колонтитул",
19921993
"fixedHeader": "Фиксированный заголовок таблицы",
19931994
"fixedHeaderTooltip": "Заголовок будет фиксированным для вертикально прокручиваемой таблицы",
19941995
"fixedToolbar": "Исправленная панель инструментов",

client/packages/lowcoder/src/i18n/locales/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,7 @@ export const zh: typeof en = {
15921592
type: "类型",
15931593
tableSize: "表格尺寸",
15941594
hideHeader: "隐藏表头",
1595+
hideToolbar: "隐藏表工具栏(页脚)",
15951596
fixedHeader: "固定表头",
15961597
fixedHeaderTooltip: "垂直滚动表格的标题将被固定",
15971598
fixedToolbar: "固定工具栏",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy