mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-27 11:56:05 +02:00
chore(window): fix package name on documentation (#408)
This commit is contained in:
committed by
GitHub
parent
0f480d0985
commit
cf5864266e
@@ -9,7 +9,7 @@
|
||||
*
|
||||
* Events can be listened to using `appWindow.listen`:
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* appWindow.listen("my-window-event", ({ event, payload }) => { });
|
||||
* ```
|
||||
*
|
||||
@@ -1378,7 +1378,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* const unlisten = await appWindow.onResized(({ payload: size }) => {
|
||||
* console.log('Window resized', size);
|
||||
* });
|
||||
@@ -1404,7 +1404,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* const unlisten = await appWindow.onMoved(({ payload: position }) => {
|
||||
* console.log('Window moved', position);
|
||||
* });
|
||||
@@ -1430,7 +1430,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* import { confirm } from '@tauri-apps/api/dialog';
|
||||
* const unlisten = await appWindow.onCloseRequested(async (event) => {
|
||||
* const confirmed = await confirm('Are you sure?');
|
||||
@@ -1469,7 +1469,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* const unlisten = await appWindow.onFocusChanged(({ payload: focused }) => {
|
||||
* console.log('Focus changed, window is focused? ' + focused);
|
||||
* });
|
||||
@@ -1511,7 +1511,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* const unlisten = await appWindow.onScaleChanged(({ payload }) => {
|
||||
* console.log('Scale changed', payload.scaleFactor, payload.size);
|
||||
* });
|
||||
@@ -1539,7 +1539,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* const unlisten = await appWindow.onMenuClicked(({ payload: menuId }) => {
|
||||
* console.log('Menu clicked: ' + menuId);
|
||||
* });
|
||||
@@ -1564,7 +1564,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* const unlisten = await appWindow.onFileDropEvent((event) => {
|
||||
* if (event.payload.type === 'hover') {
|
||||
* console.log('User hovering', event.payload.paths);
|
||||
@@ -1620,7 +1620,7 @@ class WindowManager extends WebviewWindowHandle {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { appWindow } from "@tauri-apps/window";
|
||||
* import { appWindow } from "@tauri-apps/plugin-window";
|
||||
* const unlisten = await appWindow.onThemeChanged(({ payload: theme }) => {
|
||||
* console.log('New theme: ' + theme);
|
||||
* });
|
||||
|
||||
Reference in New Issue
Block a user