mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-27 11:56:05 +02:00
docs: Update positioner readme (#1072)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user