Skip to content

Commit

Permalink
Update MigrationGuide.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 committed Jul 5, 2024
1 parent d5a3fe3 commit c970a12
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion docs/MigrationGuide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ Please use the following components instead:
- `headerContent` now only accepts the `ObjectPageHeader` component.
- `headerTitle` now only accepts the `ObjectPageTitle` component.

**Renamed props:**
**Renamed Props:**

- `a11yConfig.dynamicPageAnchorBar` has been renamed to `a11yConfig.objectPageAnchorBar`

Expand Down Expand Up @@ -422,6 +422,54 @@ function MyComponent() {
}
```

### AnalyticalTable

**Renamed or Changed Props:**

- `alwaysShowSubComponent` has been removed, please use `subComponentsBehavior` with `AnalyticalTableSubComponentsBehavior.Visibe` instead.
- The default value of `sortable` (`true`) has been removed. To allow sorting in your table please set `sorting` to `true` yourself.

**Renamed Enums:**

Only the names of the following enums have changed, so it's sufficient to replace them with the new name.

- `TableScaleWidthMode` is now `AnalyticalTableScaleWidthMode`
- `TableSelectionBehavior` is now `AnalyticalTableSelectionBehavior`
- `TableSelectionMode` is now `AnalyticalTableSelectionMode`
- `TableVisibleRowCountMode` is now `AnalyticalTableVisibleRowCountMode`

**[Column Properties](https://sap.github.io/ui5-webcomponents-react/?path=/docs/data-display-analyticaltable--docs#column-properties) Changes**

- `canReorder` has been removed, please use `disableDragAndDrop` instead.

```jsx
// v1
const columns = [{ ...otherProperties, canReorder: false }];

<AnalyticalTable
{...otherProps}
columns={columns}
alwaysShowSubComponent
scaleWidthMode={TableScaleWidthMode.Grow}
selectionBehavior={TableSelectionBehavior.Row}
selectionMode={TableSelectionMode.MultiSelect}
visibleRowCountMode={TableVisibleRowCountMode.Interactive}
/>;

// v2
const columns = [{ ...otherProps, disableDragAndDrop: true }];

<AnalyticalTable
{...otherProps}
columns={columns}
subComponentsBehavior={AnalyticalTableSubComponentsBehavior.Visible}
scaleWidthMode={AnalyticalTableScaleWidthMode.Grow}
selectionBehavior={AnalyticalTableSelectionBehavior.Row}
selectionMode={AnalyticalTableSelectionMode.MultiSelect}
visibleRowCountMode={AnalyticalTableVisibleRowCountMode.Interactive}
/>;
```

### Expandable Text

The prop `portalContainer` has been removed as it is no longer needed due to the [popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) which is now used in the UI5 Web Components.
Expand Down

0 comments on commit c970a12

Please sign in to comment.