Skip to content

Commit

Permalink
root(README): rename changeIconPosition method to toggleIconPosition.
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Jan 23, 2019
1 parent 2a0a7b8 commit a7fad2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,17 +509,17 @@ if (screens && screens[0]) {

##### Set icon position

There is two methods `isIconPositionAdjustable` and `changeIconPosition`.
There is two methods `isIconPositionAdjustable` and `toggleIconPosition`.
The first one checks if it's possible to adjust icon position. If it returns `0` then it's not possible,
if a number is greater than `0` it means that icon position is adjustable.
The value `1` stands for the right position, accordingly, the value `2` stands for left position.
For changing the icon position here is `changeIconPosition` method. It changes icon position value `1<-->2`.
For changing the icon position here is `toggleIconPosition` method. It changes icon position value `1<-->2`.
```js
const screens = projectDataInstance.getScreens()

if (screens && screens[0]) {
if (screens[0].isIconPositionAdjustable()) {
screens[0].changeIconPosition()
screens[0].toggleIconPosition()
}
}
```
Expand Down

0 comments on commit a7fad2d

Please sign in to comment.