-
Notifications
You must be signed in to change notification settings - Fork 0
/
disabled.go
63 lines (60 loc) · 1.09 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package formselect
import app "github.com/maxence-charriere/go-app/v9/pkg/app"
type Disabled struct {
app.Compo
}
func (c *Disabled) Render() app.UI {
return app.Select().
Aria("label", "FormSelect Input").
Class("pf-c-form-control").
Aria("invalid", "false").
DataSet("ouia-component-type", "PF4/FormSelect").
DataSet("ouia-safe", true).
DataSet("ouia-component-id", "OUIA-Generated-FormSelect-default-7").
Disabled(true).
Body(
app.Option().
Class("").
Value("please choose").
Disabled(true).
Body(
app.Text("Select one"),
),
app.Option().
Class("").
Value("mr").
Body(
app.Text("Mr"),
),
app.Option().
Class("").
Value("miss").
Body(
app.Text("Miss"),
),
app.Option().
Class("").
Value("mrs").
Body(
app.Text("Mrs"),
),
app.Option().
Class("").
Value("ms").
Body(
app.Text("Ms"),
),
app.Option().
Class("").
Value("dr").
Body(
app.Text("Dr"),
),
app.Option().
Class("").
Value("other").
Body(
app.Text("Other"),
),
)
}