Skip to content

Commit dc22c87

Browse files
Update sidedrawer release notes
1 parent 7fd50c3 commit dc22c87

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

releases/sidedrawer.md

+25
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@
44

55
### Breaking changes
66
- [Add enumerations for string properties](https://github.com/NativeScript/nsplugins-internal/issues/169)
7+
8+
## What is the current behavior?
9+
The enum-looking property `drawerLocation` is difficult to use, because its type is string and the available values are hard to guess:
10+
```
11+
this._sideDrawer.drawerLocation = "Left";
12+
```
13+
14+
## What is the new behavior?
15+
The `drawerLocation` property's type is `SideDrawerLocation`, so it is easier to use:
16+
```
17+
this._sideDrawer.drawerLocation = SideDrawerLocation.Left;
18+
```
19+
20+
Related to [this issue](https://github.com/NativeScript/nsplugins-internal/issues/169).
21+
22+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
23+
24+
## &#x1F534; BREAKING CHANGES &#x1F534;
25+
26+
The following enumeration is created: `SideDrawerLocation`. It is used for RadSideDrawer's `drawerLocation` property.
27+
28+
Migration steps:
29+
Replace every setting of a string value to the `drawerLocation` property value, to setting a value from the `SideDrawerLocation` enumeration.
30+
31+
732

833
## 5.1.0 (2018, December, 17)
934

0 commit comments

Comments
 (0)