frontend: Index | Files

package checkbox

import ""

Package checkbox provides a checkbox connected to a query parameter.


Package Files


func New Uses

func New(defaultValue bool, query url.Values, queryParameter string) template.HTML

New creates the HTML for a checkbox instance. Its checked value is directly connected to the presence of queryParameter. Changing either the presence of queryParameter, or checking/unchecking the checkbox will result in the other updating to match.

Package checkbox imports 7 packages (graph) and is imported by 2 packages. Updated 2017-06-04. Refresh now. Tools for package owners.