-
Notifications
You must be signed in to change notification settings - Fork 0
/
disabled.go
47 lines (44 loc) · 986 Bytes
/
disabled.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package checkbox
import app "github.com/maxence-charriere/go-app/v9/pkg/app"
type Disabled struct {
app.Compo
}
func (c *Disabled) Render() app.UI {
return app.Div().
Class("ws-preview-html pf-u-h-100").
Body(
app.Div().
Class("pf-c-check").
Body(
app.Input().
Class("pf-c-check__input").
Type("checkbox").
ID("check-disabled").
Name("check-disabled").
Disabled(true),
app.Label().
Class("pf-c-check__label pf-m-disabled").
For("check-disabled").
Body(
app.Text("Check disabled"),
),
),
app.Div().
Class("pf-c-check").
Body(
app.Input().
Class("pf-c-check__input").
Type("checkbox").
ID("check-disabled-2").
Name("check-disabled-2").
Checked(true).
Disabled(true),
app.Label().
Class("pf-c-check__label pf-m-disabled").
For("check-disabled-2").
Body(
app.Text("Check disabled checked"),
),
),
)
}