checkbox

package
v0.0.0-...-0699c23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Overview

Package checkbox provides a checkbox connected to a query parameter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL