mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-30 21:59:36 +02:00
docs: Update positioner readme (#1072)
This commit is contained in:
1 parent
a3b5396113
commit
14c858391d
1 file changed
+2
-2
@@ -73,9 +73,9 @@ fn main() {
|
|||||||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
||||||
|
|
||||||
```javascript
|
```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:
|
If you only intend on moving the window from rust code, you can import the Window trait extension instead of registering the plugin:
|
||||||
|
|||||||
Reference in new issue
Block a user