mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
update headers
This commit is contained in:
parent
af3c6afb3b
commit
51c0d1dcdc
2 changed files with 8 additions and 8 deletions
|
|
@ -37,7 +37,7 @@ app := application.New(application.Options{
|
|||
|
||||
Set a badge on the application tile/dock icon:
|
||||
|
||||
**Go**
|
||||
#### Go
|
||||
```go
|
||||
// Set a default badge
|
||||
badgeService.SetBadge("")
|
||||
|
|
@ -49,7 +49,7 @@ badgeService.SetBadge("3")
|
|||
badgeService.SetBadge("New")
|
||||
```
|
||||
|
||||
**JS**
|
||||
#### JS
|
||||
```js
|
||||
import {SetBadge} from "../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service";
|
||||
|
||||
|
|
@ -67,12 +67,12 @@ SetBadge("New")
|
|||
|
||||
Remove the badge from the application icon:
|
||||
|
||||
**Go**
|
||||
#### Go
|
||||
```go
|
||||
badgeService.RemoveBadge()
|
||||
```
|
||||
|
||||
**JS**
|
||||
#### JS
|
||||
```js
|
||||
import {RemoveBadge} from "../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service";
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ app := application.New(application.Options{
|
|||
|
||||
Set a badge on the application tile/dock icon:
|
||||
|
||||
**Go**
|
||||
#### Go
|
||||
```go
|
||||
// Set a default badge
|
||||
badgeService.SetBadge("")
|
||||
|
|
@ -40,7 +40,7 @@ badgeService.SetBadge("3")
|
|||
badgeService.SetBadge("New")
|
||||
```
|
||||
|
||||
**JS**
|
||||
#### JS
|
||||
```js
|
||||
import {SetBadge} from "../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service";
|
||||
|
||||
|
|
@ -58,12 +58,12 @@ SetBadge("New")
|
|||
|
||||
Remove the badge from the application icon:
|
||||
|
||||
**Go**
|
||||
#### Go
|
||||
```go
|
||||
badgeService.RemoveBadge()
|
||||
```
|
||||
|
||||
**JS**
|
||||
#### JS
|
||||
```js
|
||||
import {RemoveBadge} from "../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue