mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
SPRINT-20: made pagination options avaialble for table widgets, updated 'primary color' to come from branding metadata
This commit is contained in:
@ -446,6 +446,17 @@ public class ChartData extends QWidgetData
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for color
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public String getColor()
|
||||||
|
{
|
||||||
|
return (this.color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Setter for color
|
** Setter for color
|
||||||
**
|
**
|
||||||
|
@ -37,7 +37,8 @@ public class TableData extends QWidgetData
|
|||||||
private String noRowsFoundHTML;
|
private String noRowsFoundHTML;
|
||||||
private List<Column> columns;
|
private List<Column> columns;
|
||||||
private List<Map<String, Object>> rows;
|
private List<Map<String, Object>> rows;
|
||||||
private List<Map<String, String>> dropdownOptions;
|
private Integer rowsPerPage;
|
||||||
|
private Boolean hidePaginationDropdown;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -53,12 +54,11 @@ public class TableData extends QWidgetData
|
|||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public TableData(String label, List<Column> columns, List<Map<String, Object>> rows, List<Map<String, String>> dropdownOptions)
|
public TableData(String label, List<Column> columns, List<Map<String, Object>> rows)
|
||||||
{
|
{
|
||||||
setLabel(label);
|
setLabel(label);
|
||||||
setColumns(columns);
|
setColumns(columns);
|
||||||
setRows(rows);
|
setRows(rows);
|
||||||
setDropdownOptions(dropdownOptions);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -74,6 +74,74 @@ public class TableData extends QWidgetData
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for rowsPerPage
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public Integer getRowsPerPage()
|
||||||
|
{
|
||||||
|
return rowsPerPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Setter for rowsPerPage
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public void setRowsPerPage(Integer rowsPerPage)
|
||||||
|
{
|
||||||
|
this.rowsPerPage = rowsPerPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Fluent setter for rowsPerPage
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public TableData withRowsPerPage(Integer rowsPerPage)
|
||||||
|
{
|
||||||
|
this.rowsPerPage = rowsPerPage;
|
||||||
|
return (this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for hidePaginationDropdown
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public Boolean getHidePaginationDropdown()
|
||||||
|
{
|
||||||
|
return hidePaginationDropdown;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Setter for hidePaginationDropdown
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public void setHidePaginationDropdown(Boolean hidePaginationDropdown)
|
||||||
|
{
|
||||||
|
this.hidePaginationDropdown = hidePaginationDropdown;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Fluent setter for hidePaginationDropdown
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public TableData withHidePaginationDropdown(Boolean hidePaginationDropdown)
|
||||||
|
{
|
||||||
|
this.hidePaginationDropdown = hidePaginationDropdown;
|
||||||
|
return (this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Getter for columns
|
** Getter for columns
|
||||||
**
|
**
|
||||||
@ -142,40 +210,6 @@ public class TableData extends QWidgetData
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
** Getter for dropdownOptions
|
|
||||||
**
|
|
||||||
*******************************************************************************/
|
|
||||||
public List<Map<String, String>> getDropdownOptions()
|
|
||||||
{
|
|
||||||
return dropdownOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
** Setter for dropdownOptions
|
|
||||||
**
|
|
||||||
*******************************************************************************/
|
|
||||||
public void setDropdownOptions(List<Map<String, String>> dropdownOptions)
|
|
||||||
{
|
|
||||||
this.dropdownOptions = dropdownOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
** Fluent setter for dropdownOptions
|
|
||||||
**
|
|
||||||
*******************************************************************************/
|
|
||||||
public TableData withDropdownOptions(List<Map<String, String>> dropdownOptions)
|
|
||||||
{
|
|
||||||
this.dropdownOptions = dropdownOptions;
|
|
||||||
return (this);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Getter for noRowsFoundHTML
|
** Getter for noRowsFoundHTML
|
||||||
**
|
**
|
||||||
|
@ -33,6 +33,7 @@ public class QBrandingMetaData
|
|||||||
private String appName;
|
private String appName;
|
||||||
private String logo;
|
private String logo;
|
||||||
private String icon;
|
private String icon;
|
||||||
|
private String accentColor;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -209,4 +210,38 @@ public class QBrandingMetaData
|
|||||||
return (this);
|
return (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for accentColor
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public String getAccentColor()
|
||||||
|
{
|
||||||
|
return accentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Setter for accentColor
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public void setAccentColor(String accentColor)
|
||||||
|
{
|
||||||
|
this.accentColor = accentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Fluent setter for accentColor
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public QBrandingMetaData withAccentColor(String accentColor)
|
||||||
|
{
|
||||||
|
this.accentColor = accentColor;
|
||||||
|
return (this);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,3 +6,4 @@ qqq-language-support-javascript
|
|||||||
qqq-middleware-javalin
|
qqq-middleware-javalin
|
||||||
qqq-middleware-picocli
|
qqq-middleware-picocli
|
||||||
qqq-middleware-slack
|
qqq-middleware-slack
|
||||||
|
qqq-frontend-material-dashboard
|
||||||
|
Reference in New Issue
Block a user