mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-20 10:59:30 +08:00
[v3] Update docs
This commit is contained in:
parent
e7e5597c95
commit
fcb98e6523
10
v3/STATUS.md
10
v3/STATUS.md
@ -378,7 +378,7 @@ Note: things are currently not working after the refactor
|
|||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
| Example | Windows | Linux | Mac |
|
| Example | Windows | Linux | Mac |
|
||||||
|--------------|--------------------------------------------------------|-------|-----|
|
|--------------|----------------------|-------|-----|
|
||||||
| binding | NO | | |
|
| binding | NO | | |
|
||||||
| build | Yes (Debug + Prod) | | |
|
| build | Yes (Debug + Prod) | | |
|
||||||
| clipboard | Yes | | |
|
| clipboard | Yes | | |
|
||||||
@ -386,14 +386,14 @@ Note: things are currently not working after the refactor
|
|||||||
| dialogs | Almost | | |
|
| dialogs | Almost | | |
|
||||||
| drag-n-drop | NO | | |
|
| drag-n-drop | NO | | |
|
||||||
| events | NO | | |
|
| events | NO | | |
|
||||||
| frameless | Needs resizing | | |
|
| frameless | Yes | | |
|
||||||
| kitchensink | Yes | | |
|
| kitchensink | Yes | | |
|
||||||
| menu | Yes | | |
|
| menu | Yes | | |
|
||||||
| plain | Yes | | |
|
| plain | Yes | | |
|
||||||
| plugins | Needs StartAtLogin | | |
|
| plugins | Yes | | |
|
||||||
| screen | Yes | | |
|
| screen | Yes | | |
|
||||||
| systray | Yes | | |
|
| systray | Yes | | Yes |
|
||||||
| window | Size of initial window not right with application menu | | |
|
| window | Yes | | |
|
||||||
| windowjs | Example not complete | | |
|
| windowjs | Example not complete | | |
|
||||||
| wml | Yes | | |
|
| wml | Yes | | |
|
||||||
|
|
||||||
|
@ -128,6 +128,18 @@ This attribute specifies which javascript event should trigger the action. The d
|
|||||||
<button data-wml-event="hover-box" data-wml-trigger="mouseover">Hover over me!</button>
|
<button data-wml-event="hover-box" data-wml-trigger="mouseover">Hover over me!</button>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Systray
|
||||||
|
|
||||||
|
Wails 3 comes with a built-in systray. This is a fully featured systray that has been designed to be as simple as possible to use.
|
||||||
|
It is possible to set the icon, tooltip and menu of the systray. It is possible to also "attach" a window to the systray. Doing this will provide the following functionality:
|
||||||
|
|
||||||
|
- Clicking the systray icon with toggle the window visibility
|
||||||
|
- Right-clicking the systray will open the menu, if there is one
|
||||||
|
|
||||||
|
On macOS, if there is no attached window, the systray will use the default method of displaying the menu (any button).
|
||||||
|
If there is an attached window but no menu, the systray will toggle the window regardless of the button pressed.
|
||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
|
|
||||||
Plugins are a way to extend the functionality of your Wails application.
|
Plugins are a way to extend the functionality of your Wails application.
|
||||||
@ -255,3 +267,4 @@ handle this. The `--webkit-app-region` attribute can be set to any of the follow
|
|||||||
|
|
||||||
We would have ideally liked to use `app-region`, however this is not supported by the `getComputedStyle` call on
|
We would have ideally liked to use `app-region`, however this is not supported by the `getComputedStyle` call on
|
||||||
webkit on macOS.
|
webkit on macOS.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user