cuba-platform / charts

Charts and Maps Addon
https://www.cuba-platform.com/
Apache License 2.0
5 stars 2 forks source link

Add description to ShowPivotAction for Studio #91

Closed alexbudarov closed 4 years ago

alexbudarov commented 4 years ago

Environment

Description of the bug or enhancement

com.haulmont.charts.gui.components.action.list.ShowPivotAction needs com.haulmont.cuba.gui.meta.StudioAction annotation with description.

Description will be shown after https://youtrack.cuba-platform.com/issue/STUDIO-7571 is implemented.

Also can think about extracting some parameters and lambdas, it it makes sense: https://github.com/cuba-platform/cuba/issues/2412

Flaurite commented 4 years ago

Changes

Added StudioAction and supported two properties with StudioPropertiesItem annotation.

New API in com.haulmont.charts.gui.components.action.list.ShowPivotAction:

This API is designed especially for using form XML. Examples:

<action id="showPivot" type="pivot_showPivot">
    <properties>
        <property name="includedProperties" value="name, value"/>
    </properties>
</action>
<action id="showPivot" type="pivot_showPivot">
    <properties>
        <property name="excludedProperties" value="description"/>
    </properties>
</action>

For QA

  1. Check new API from XML:
    • for includedProperties
    • for excludedProperties