docs: Update positioner readme (#1072)

pull/1073/head
DK Liao 1 year ago committed by GitHub
parent a3b5396113
commit 14c858391d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -73,9 +73,9 @@ fn main() {
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript
import { move_window, Position } from "@tauri-apps/plugin-positioner";
import { moveWindow, Position } from "@tauri-apps/plugin-positioner";
move_window(Position.TopRight);
moveWindow(Position.TopRight);
```
If you only intend on moving the window from rust code, you can import the Window trait extension instead of registering the plugin:

Loading…
Cancel
Save