Skip to content

Commit a7fad2d

Browse files
root(README): rename changeIconPosition method to toggleIconPosition.
1 parent 2a0a7b8 commit a7fad2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,17 +509,17 @@ if (screens && screens[0]) {
509509

510510
##### Set icon position
511511

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

520520
if (screens && screens[0]) {
521521
if (screens[0].isIconPositionAdjustable()) {
522-
screens[0].changeIconPosition()
522+
screens[0].toggleIconPosition()
523523
}
524524
}
525525
```

0 commit comments

Comments
 (0)