Merge pull request #91 from Kingsrook/feature/CE-1240-out-of-stock-summary-page

CE-1240: added multi table widget type
This commit is contained in:
2024-05-15 19:17:21 -05:00
committed by GitHub
3 changed files with 99 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public class CompositeWidgetData extends AbstractBlockWidgetData<CompositeWidget
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// note, these are used in QQQ FMD CompositeWidgetData.tsx // // note, these are used in QQQ FMD CompositeWidgetData.tsx //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
FLEX_COLUMN,
FLEX_ROW_WRAPPED, FLEX_ROW_WRAPPED,
FLEX_ROW_SPACE_BETWEEN, FLEX_ROW_SPACE_BETWEEN,
TABLE_SUB_ROW_DETAILS, TABLE_SUB_ROW_DETAILS,

View File

@ -0,0 +1,97 @@
/*
* QQQ - Low-code Application Framework for Engineers.
* Copyright (C) 2021-2022. Kingsrook, LLC
* 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
* contact@kingsrook.com
* https://github.com/Kingsrook/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.kingsrook.qqq.backend.core.model.dashboard.widgets;
import java.util.List;
/*******************************************************************************
** Model containing datastructure expected by frontend bar chart widget
**
*******************************************************************************/
public class MultiTableData extends QWidgetData
{
List<TableData> tableDataList;
/*******************************************************************************
**
*******************************************************************************/
public MultiTableData()
{
}
/*******************************************************************************
**
*******************************************************************************/
public MultiTableData(List<TableData> tableDataList)
{
setTableDataList(tableDataList);
}
/*******************************************************************************
** Getter for type
**
*******************************************************************************/
public String getType()
{
return WidgetType.MULTI_TABLE.getType();
}
/*******************************************************************************
** Getter for tableDataList
*******************************************************************************/
public List<TableData> getTableDataList()
{
return (this.tableDataList);
}
/*******************************************************************************
** Setter for tableDataList
*******************************************************************************/
public void setTableDataList(List<TableData> tableDataList)
{
this.tableDataList = tableDataList;
}
/*******************************************************************************
** Fluent setter for tableDataList
*******************************************************************************/
public MultiTableData withTableDataList(List<TableData> tableDataList)
{
this.tableDataList = tableDataList;
return (this);
}
}

View File

@ -42,6 +42,7 @@ public enum WidgetType
SMALL_LINE_CHART("smallLineChart"), SMALL_LINE_CHART("smallLineChart"),
LOCATION("location"), LOCATION("location"),
MULTI_STATISTICS("multiStatistics"), MULTI_STATISTICS("multiStatistics"),
MULTI_TABLE("multiTable"),
PIE_CHART("pieChart"), PIE_CHART("pieChart"),
QUICK_SIGHT_CHART("quickSightChart"), QUICK_SIGHT_CHART("quickSightChart"),
STATISTICS("statistics"), STATISTICS("statistics"),