frontend: github.com/shurcooL/frontend/checkbox Index | Files

package checkbox

import "github.com/shurcooL/frontend/checkbox"

Package checkbox provides a checkbox connected to a query parameter.

Index

Package Files

backend.go

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 1 packages. Updated 2016-08-06. Refresh now. Tools for package owners.