Documentation ¶ Index ¶ func New(nodes ...node.Node) *element type Element Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(nodes ...node.Node) *element New Creates a new datalist element with child nodes (typically <option> elements). Example: datalist.New(option.New().Value("Chocolate"), option.New().Value("Vanilla")) Renders: <datalist><option value="Chocolate"><option value="Vanilla"></datalist> Types ¶ type Element ¶ type Element = element Element is an exported alias for the private element type Source Files ¶ View all Source files datalist.go Click to show internal directories. Click to hide internal directories.