-
Notifications
You must be signed in to change notification settings - Fork 0
/
newTagDataList.go
35 lines (32 loc) · 1.06 KB
/
newTagDataList.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
package factoryBrowser
import "github.com/helmutkemper/iotmaker.webassembly/browser/html"
// NewTagDataList
//
// English:
//
// Create the elemento datalist.
//
// The <datalist> HTML element contains a set of <option> elements that represent the permissible
// or recommended options available to choose from within other controls.
//
// Português:
//
// Cria o elemento datalist
//
// O elemento HTML <datalist> contém um conjunto de elementos <option> que representam as opções
// permitidas ou recomendadas disponíveis para escolha em outros controles.
//
// Example:
//
// factoryBrowser.NewTagDataList("test_A").
// SetNewOption("test_A_a", "label a", "value_a", true, false).
// SetNewOption("test_A_b", "label b", "value_b", false, false).
// SetNewOption("test_A_c", "label c", "value_c", false, false).
// SetNewOption("test_A_d", "label d", "value_d", false, true).
// AppendById("stage")
func NewTagDataList(id string) (ref *html.TagDataList) {
ref = &html.TagDataList{}
ref.CreateElement(html.KTagDatalist)
ref.Id(id)
return ref
}