Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagOpen = []byte("<select") TagClose = []byte("</select>") AttrName = []byte(" name=\"") AttrAutoComplete = []byte(" autocomplete=\"") AttrDisabled = []byte(" disabled") AttrForm = []byte(" form=\"") AttrMultiple = []byte(" multiple") AttrRequired = []byte(" required") AttrSize = []byte(" size=\"") )
Byte constants for HTML rendering.
Functions ¶
func New ¶
New Creates a new select element with option and optgroup child elements. Example: dropdown.New(option.Option("Red", "red"), option.Option("Blue", "blue")) Renders: <select><option value="red">Red</option><option value="blue">Blue</option></select>
func Options ¶ added in v0.3.0
Options Creates a select element from option elements, enforcing correct nesting at compile time. Example: dropdown.Options(option.Option("red", "Red"), option.Option("blue", "Blue")) Renders: <select><option value="red">Red</option><option value="blue">Blue</option></select>
Types ¶
Click to show internal directories.
Click to hide internal directories.