Pivot Table
The PivotTable add-on provides a table component for Jmix UI with drag-and-drop functionality that enables turning a data set into a summary table and manipulating it using 2D drag-and-drop UI.
The add-on is based on the PivotTable is based on the external PivotTable.js JavaScript library. You can find more examples of PivotTable on its author’s website.
Installation
For automatic installation through Jmix Marketplace, follow instructions in the Add-ons section.
For manual installation, do the following:
-
Add dependencies to your
build.gradle:implementation "io.jmix.ui:jmix-pivot-table-starter" widgets "io.jmix.ui:jmix-ui-widgets" widgets "io.jmix.ui:jmix-pivot-table-widgets" -
Remove
implementation 'io.jmix.ui:jmix-ui-widgets-compiled'dependency. -
Add
compileWidgetstask (change paths according to your application base package):compileWidgets { generate "pivottable.ex1.widgets.CustomWidgetSet" } -
Add
jmix.ui.widget-setproperty to yourapplication.propertiesfile (adjust location according to thecompileWidgetstask above):jmix.ui.widget-set=pivottable.ex1.widgets.CustomWidgetSet
To enable using the component in a screen, declare the pivot namespace in the root element of the screen XML descriptor:
<window xmlns="http://jmix.io/schema/ui/window"
xmlns:pivot="http://jmix.io/schema/ui/pivot-table">