diff --git a/docs/Migrating to version 2.0 guide.md b/docs/Migrating to version 2.0 guide.md index 7ddce6eceddd..698809ece9bc 100644 --- a/docs/Migrating to version 2.0 guide.md +++ b/docs/Migrating to version 2.0 guide.md @@ -619,6 +619,63 @@ Now you have to use it like: ``` +### ui5-segmented-button + + +| Changed item | Old | New | +|--------------|---------|---------| +| Property | mode | selectionMode | +| Readonly Property | selectedItem | selectedItems | + +- The property `mode` has been renamed to `selectionMode`. The selection modes are renamed from `SingleSelect` and `MultiSelect` to `Single` and `Multiple`. + +If you previously used it as follows: +```html + + +``` +Now you have to use: +```html + + +``` +- The read-only getter `selectedItem` has been replaced by `selectedItems` as multiple items can be selected. + +### ui5-segmented-button-item + +| Changed item | Old | New | +|--------------|---------|---------| +| Property | pressed | selected | +| Property | design | ---- | +| Property | iconEnd | ---- | +| Property | submits | ---- | +| Property | type | ---- | +| Property | accessibilityAttributes | ---- | +| Property | accessibleRole | ---- | + +- The property `pressed` has been renamed to `selected`. + +If you previously used it as follows: +```html + + Item 1 + Item 2 + +``` +Now you have to use it as follows: +```html + + Item 1 + Item 2 + +``` + +- The property `design` has been inherited but never had effect and it's now removed. +- The property `iconEnd` has been inherited but never had effect and it's now removed. +- The property `submits` has been inherited but never had effect and it's now removed. +- The property `type` has been inherited but never had effect and it's now removed. +- The property `accessibilityAttributes` has been inherited but never had effect and it's now removed. +- The property `accessibleRole` has been inherited but never had effect and it's now removed. ### ui5-step-input diff --git a/packages/website/docs/_samples/main/SegmentedButton/SelectionModes/sample.html b/packages/website/docs/_samples/main/SegmentedButton/SelectionModes/sample.html index 7e99a54f0fa7..16dbdbdc5ea0 100644 --- a/packages/website/docs/_samples/main/SegmentedButton/SelectionModes/sample.html +++ b/packages/website/docs/_samples/main/SegmentedButton/SelectionModes/sample.html @@ -12,7 +12,7 @@ - + @@ -20,7 +20,7 @@

- + Map Satellite Terrain