generated from mattermost/mattermost-plugin-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 29
/
form_multiselect.go
49 lines (47 loc) · 905 Bytes
/
form_multiselect.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
package main
import (
"github.com/mattermost/mattermost-plugin-apps/apps"
)
var formMultiselect = apps.Form{
Title: "Test Multiselect Form",
Header: "Test header",
Submit: callOK,
Fields: []apps.Field{
{
Name: "static",
Type: apps.FieldTypeStaticSelect,
Label: "static",
SelectIsMulti: true,
SelectStaticOptions: []apps.SelectOption{
{
Label: "static value 1",
Value: "sv1",
},
{
Label: "static value 2",
Value: "sv2",
},
{
Label: "static value 3",
Value: "sv3",
},
{
Label: "static value 4",
Value: "sv4",
},
},
},
{
Name: "user",
Type: apps.FieldTypeUser,
Label: "user",
SelectIsMulti: true,
},
{
Name: "channel",
Type: apps.FieldTypeChannel,
Label: "channel",
SelectIsMulti: true,
},
},
}