File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ app := application.New(application.Options{
37
37
38
38
Set a badge on the application tile/dock icon:
39
39
40
- ** Go **
40
+ #### Go
41
41
``` go
42
42
// Set a default badge
43
43
badgeService.SetBadge (" " )
@@ -49,7 +49,7 @@ badgeService.SetBadge("3")
49
49
badgeService.SetBadge (" New" )
50
50
```
51
51
52
- ** JS **
52
+ #### JS
53
53
``` js
54
54
import {SetBadge } from " ../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service" ;
55
55
@@ -67,12 +67,12 @@ SetBadge("New")
67
67
68
68
Remove the badge from the application icon:
69
69
70
- ** Go **
70
+ #### Go
71
71
``` go
72
72
badgeService.RemoveBadge ()
73
73
```
74
74
75
- ** JS **
75
+ #### JS
76
76
``` js
77
77
import {RemoveBadge } from " ../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service" ;
78
78
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ app := application.New(application.Options{
28
28
29
29
Set a badge on the application tile/dock icon:
30
30
31
- ** Go **
31
+ #### Go
32
32
``` go
33
33
// Set a default badge
34
34
badgeService.SetBadge (" " )
@@ -40,7 +40,7 @@ badgeService.SetBadge("3")
40
40
badgeService.SetBadge (" New" )
41
41
```
42
42
43
- ** JS **
43
+ #### JS
44
44
``` js
45
45
import {SetBadge } from " ../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service" ;
46
46
@@ -58,12 +58,12 @@ SetBadge("New")
58
58
59
59
Remove the badge from the application icon:
60
60
61
- ** Go **
61
+ #### Go
62
62
``` go
63
63
badgeService.RemoveBadge ()
64
64
```
65
65
66
- ** JS **
66
+ #### JS
67
67
``` js
68
68
import {RemoveBadge } from " ../bindings/github.com/wailsapp/wails/v3/pkg/services/badge/service" ;
69
69
You can’t perform that action at this time.
0 commit comments