You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/2-MigrationGuide.stories.mdx
+93Lines changed: 93 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ or the [changelog](https://github.com/SAP/ui5-webcomponents-react/blob/master/CH
15
15
16
16
## Table of Contents
17
17
18
+
-[0.16.x to 0.17.0](#migrating-from-016x-to-0170)
18
19
-[0.15.x to 0.16.0](#migrating-from-015x-to-0160)
19
20
-[0.14.x to 0.15.0](#migrating-from-014x-to-0150)
20
21
-[0.13.x to 0.14.0](#migrating-from-013x-to-0140)
@@ -24,6 +25,98 @@ or the [changelog](https://github.com/SAP/ui5-webcomponents-react/blob/master/CH
24
25
-[0.9.x to 0.10.0](#migrating-from-09x-to-0100)
25
26
-[0.8.x to 0.9.0](#migrating-from-08x-to-090)
26
27
28
+
## Migrating from 0.16.x to 0.17.0
29
+
30
+
### Consolidate API of ObjectPage and DynamicPage
31
+
32
+
The DynamicPage and the ObjectPage are very similar but had completely different APIs and props.
33
+
We streamlined those APIs by adding components used by the `DynamicPage` to the `ObjectPage`.
34
+
35
+
#### DynamicPage changes
36
+
37
+
-`title` has been renamed to `headerTitle`.
38
+
-**`DynamicPageTitle`:**`subHeading` has been renamed to `subheading`.
39
+
-**`DynamicPageHeader`:**`children` are no longer displayed as `flex` items to support other display types like `grid`. To align children you now need to add the container (like `FlexBox`) and CSS yourself.
40
+
<br />
41
+
<br />
42
+
Example for aligning items next to each other:
43
+
44
+
```jsx
45
+
// Before
46
+
<DynamicPageHeader>
47
+
<div>Content 1</div>
48
+
<div>Content 2</div>
49
+
</DynamicPageHeader>
50
+
51
+
// Now
52
+
<DynamicPageHeader>
53
+
<FlexBox>
54
+
<div>Content 1</div>
55
+
<div>Content 2</div>
56
+
</FlexBox>
57
+
</DynamicPageHeader>
58
+
```
59
+
60
+
#### ObjectPage changes
61
+
62
+
-**`ObjectPageSection`:**`title` and `titleUppercase` has been renamed. Please use `heading` and `headingUppercase` instead.
63
+
-**`ObjectPageSubSection`:**`title` has been renamed to `heading`.
64
+
-`title` has been renamed to `headerTitle` and is now defining the upper, static, title section of the `ObjectPage`. It expects to receive the `DynamicPageTitle` component.
65
+
-`headerContent` has been renamed to `header` and expects now the `DynamicPageHeader` component to be passed.
66
+
-`noHeader` has been removed. It is now sufficient not to set `headerTitle` and `header` to achieve the same behavior.
67
+
-`title`, `subTitle`, `headerActions`, `breadcrumbs` and `keyInfos` should now be passed to the corresponding `DynamicPageTitle` props.
0 commit comments