Skip to content

Commit

Permalink
[update] migration updated, what's new added
Browse files Browse the repository at this point in the history
  • Loading branch information
tbshag2 committed Jul 5, 2024
1 parent 883b8f3 commit 853cc01
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/guides/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const widget = new pivot.Pivot("#pivot", {

## Expanding/collapsing all rows

To expand/collapse all rows, the **tree** mode should be enabled via the [`tableShape`](/api/config/tableshape-property) property and you should use the [`render-table`](/api/events/render-table-event) event that allows changing configuration settings, namely, making data rows expanded or collapsed (via the `row.open` parameter of the [`config`](/api/config/config-property) object).
To expand/collapse all rows, the **tree** mode should be enabled via the [`tableShape`](/api/config/tableshape-property) property and you should use the [`render-table`](/api/events/render-table-event) event that allows changing configuration settings, namely, making data rows expand or collapse (via the `row.open` parameter of the [`config`](/api/config/config-property) object).

The example below shows how to expand/collapse all data rows with the button click in the table tree mode.

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/loading-exporting-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ document.body.appendChild(importButton);

## Exporting data

To export the table data to the XLSX or CSV format, it's necessary to get access to the underlying DataGrid instance inside Pivot and apply the DataGrid public API to export data. LINK TO BE ADDED!
To export the table data to the XLSX or CSV format, it's necessary to get access to the underlying DataGrid instance inside Pivot and apply the DataGrid public API to export data.

To do this, apply the [`getTable`](/api/methods/gettable-method) method.

Expand Down
17 changes: 16 additions & 1 deletion docs/news/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,24 @@ New properties do not fully duplicate the previous ones but provide more extende

### Removed API

- [Methods from version 1.5.6](https://docs.dhtmlx.com/pivot/api__refs__pivot_methods.html) are deprecated, all new methods you can find here: [Methods](/api/overview/main-overview#pivot-methods)
- [Methods from version 1.5.6](https://docs.dhtmlx.com/pivot/api__refs__pivot_methods.html) are deprecated, all new methods you can find here: [Methods](/api/overview/main-overview#pivot-methods)
- [Pivot 1.5.6 events](https://docs.dhtmlx.com/pivot/api__refs__pivot_events.html) (`change`, `fieldClick`, `applyButtonClick`) are no longer available in Pivot 2.0 but you can find more extended functionality in a new version (refer to [Pivot events](/api/overview/events-overview))

### Configuration and other important features

- Exporting data: [previous export option](https://docs.dhtmlx.com/pivot/guides__export.html) -> [new export option](/guides/loading-exporting-data#exporting-data)
- Sorting: [sorting fields](https://docs.dhtmlx.com/pivot/guides__configuration.html#configuringfields) -> [sorting data](/guides/working-with-data#sorting-data)
- Tree mode: [gridMode](https://docs.dhtmlx.com/pivot/guides__configuration.html#gridmode) -> [enabling tree mode](/guides/configuration#enabling-the-tree-mode)
- Operations with data: [data operations](https://docs.dhtmlx.com/pivot/guides__working_with_pivot.html#definingdataoperations) -> [applying maths methods](/guides/working-with-data#applying-maths-methods)
- Customization:
- [cells formatting](https://docs.dhtmlx.com/pivot/guides__customization.html#conditionalformattingofcells) -> [cells style](/guides/stylization#cell-style)
- [templates for headers](https://docs.dhtmlx.com/pivot/guides__customization.html#settingtemplatesforheaders) ->
[applying templates to headers](/guides/configuration#applying-templates-to-headers)
- [templates for cells](https://docs.dhtmlx.com/pivot/guides__customization.html#settingtemplatesforcells) ->
[applying templates to headers](/guides/configuration#applying-templates-to-cells)
- Filtering: [manipulating with filters](https://docs.dhtmlx.com/pivot/guides__using_filters.html) -> [filtering data](/guides/working-with-data#filtering-data)





Expand Down
37 changes: 16 additions & 21 deletions docs/news/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ description: You can explore what's new in DHTMLX Pivot and its release history

# What's new

TBD!!!

## Version 2.0

Released on Month Day, 2024
Expand All @@ -16,28 +14,25 @@ Released on Month Day, 2024

### New functionality

- New events are added:

- **Configuring the table structure**:
- reordering fields
- updating the current config
- the rendering feature that allows altering the final table configuration on the fly or prevent the rendering of the table altogether
- **Showing and hiding the configuration panel**
- **Configuring the look and behavior of columns**:
- setting autowidth with the ability to set maxRows to be processed for the autoWidth calculation
- the firstOnly feature when each field of the same data is analyzed only once to calculate the column width (by default)
- **Configuring the look and behavior of headers**:
- New events are added: [`add-field`](/api/events/add-field-event), [`delete-field`](/api/events/delete-field-event), [`open-filter`](/api/events/open-filter-event), [`render-table`](/api/events/render-table-event), [`reorder-fields`](/api/events/reorder-fields-event), [`show-config-panel`](/api/events/show-config-panel-event), [`show-config-panel`](/api/events/show-config-panel-event), [`update-config`](/api/events/update-config-event), [`update-value`](/api/events/update-value-event).
- Now you can hide the Configuration panel: [`configPanel`](/api/config/configpanel-property)
- Next new features for configuring the look and behavior of columns are available via the [`columnShape`](/api/config/columnshape-property) property:
- setting **autowidth** with the ability to set maxRows to be processed for the **autoWidth** calculation
- the **firstOnly** feature when each field of the same data is analyzed only once to calculate the column width (by default)
- For configuring the look and behavior of headers the [`headerShape`](/api/config/headershape-property) property is added that allows:
- applying a template to the text in headers
- changing text orientation
- making dimension groups in the table collapsible
- **Configuring the look of the table**:
- The shape and sizes of the table can be configured via the [`tableShape`](/api/config/tableshape-property) property that makes possible:
- configuring the sizes: rowHeight, headerHeight, footerHeight, colWidth
- generating the total column and footer
- generating the total column besides footer
- hiding the duplicate values in the table view
- fixing columns from the left making them static while scrolling
- **Working with data**:
- exporting data to the xlsx or csv format
- limiting loaded data
- applying and customizing an extended list of maths methods
- processing data with predicates (applying custom pre-processing functions for data)
- setting date format via locale
- making all rows expand or collapse
- More features are added to aggregate data:
- [loading data from CSV](/guides/loading-exporting-data#loading-csv-data)
- [limiting loaded data](/guides/working-with-data#limiting-loaded-data)
- [applying maths methods](/guides/working-with-data#applying-maths-methods)
- [processing data with predicates](/guides/working-with-data#processing-data-with-predicates) - applying custom pre-processing functions for data
- [setting date format via locale](/guides/loading-exporting-data#setting-date-format)
- New methods are added: [`getTable()`](/api/methods/gettable-method), [`setConfig()`](/api/methods/setconfig-method), [`setLocale()`](/api/methods/setlocale-method), [`showConfigPanel()`](/api/methods/showconfigpanel-method)

0 comments on commit 853cc01

Please sign in to comment.