docs.rs failed to build tauri-plugin-positioner-1.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
tauri-plugin-positioner-2.3.1
Tauri plugin positioner
A plugin for Tauri that helps position your windows at well-known locations.
This plugin is a port of electron-positioner for tauri.
Install
Rust
[]
= "1.0"
JavaScript
pnpm add tauri-plugin-positioner
# or
npm install tauri-plugin-positioner
# or
yarn add tauri-plugin-positioner
Usage
You need to register the plugin first:
Now you can import the JavaScript API package and move the window:
import from 'tauri-plugin-positioner-api'
Rust only
If you only intend on moving the window from rust code, you can import the Window trait extension instead of registering the plugin:
Note:
Window.move_windowmethod must be called from a different thread!
use ;
Contributing
PRs are welcome!