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:

  1. 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"
  2. Remove implementation 'io.jmix.ui:jmix-ui-widgets-compiled' dependency.

  3. Add compileWidgets task (change paths according to your application base package):

    compileWidgets {
        generate "pivottable.ex1.widgets.CustomWidgetSet"
    }
  4. Add jmix.ui.widget-set property to your application.properties file (adjust location according to the compileWidgets task 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">