attr

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package attr provides shortcuts and helpers to common HTML attributes. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes for a list of attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept added in v0.8.0

func Accept(v string) g.Node

func Async added in v0.8.0

func Async() g.Node

func AutoComplete added in v0.8.0

func AutoComplete(v string) g.Node

func AutoFocus added in v0.8.0

func AutoFocus() g.Node

func AutoPlay added in v0.8.0

func AutoPlay() g.Node

func Charset added in v0.8.0

func Charset(v string) g.Node

func Class

func Class(v string) g.Node

func Cols added in v0.11.0

func Cols(v string) g.Node

func Content added in v0.8.0

func Content(v string) g.Node

func Controls added in v0.8.0

func Controls() g.Node

func Defer added in v0.8.0

func Defer() g.Node

func Disabled added in v0.8.0

func Disabled() g.Node

func Form added in v0.8.0

func Form(v string) g.Node

func Height added in v0.8.0

func Height(v string) g.Node

func Href added in v0.8.0

func Href(v string) g.Node

func ID

func ID(v string) g.Node

func Lang added in v0.8.0

func Lang(v string) g.Node

func Max added in v0.8.0

func Max(v string) g.Node

func MaxLength added in v0.8.0

func MaxLength(v string) g.Node

func Min added in v0.8.0

func Min(v string) g.Node

func MinLength added in v0.8.0

func MinLength(v string) g.Node

func Multiple added in v0.8.0

func Multiple() g.Node

func Name added in v0.8.0

func Name(v string) g.Node

func Pattern added in v0.8.0

func Pattern(v string) g.Node

func Placeholder added in v0.5.0

func Placeholder(v string) g.Node

func Preload added in v0.8.0

func Preload(v string) g.Node

func ReadOnly added in v0.8.0

func ReadOnly() g.Node

func Rel added in v0.8.0

func Rel(v string) g.Node

func Required added in v0.5.0

func Required() g.Node

func Rows added in v0.11.0

func Rows(v string) g.Node

func Selected added in v0.8.0

func Selected() g.Node

func Src added in v0.8.0

func Src(v string) g.Node

func Style added in v0.8.0

func Style(v string) g.Node

func TabIndex added in v0.8.0

func TabIndex(v string) g.Node

func Target added in v0.8.0

func Target(v string) g.Node

func Title added in v0.8.0

func Title(v string) g.Node

func Type added in v0.8.0

func Type(v string) g.Node

func Value added in v0.8.0

func Value(v string) g.Node

func Width added in v0.8.0

func Width(v string) g.Node

Types

type Classes

type Classes map[string]bool

Classes is a map of strings to booleans, which Renders to an attribute with name "class". The attribute value is a sorted, space-separated string of all the map keys, for which the corresponding map value is true.

func (Classes) Render added in v0.4.0

func (c Classes) Render(w io.Writer) error

func (Classes) String added in v0.4.0

func (c Classes) String() string

String satisfies fmt.Stringer.

func (Classes) Type added in v0.11.0

func (c Classes) Type() g.NodeType

Jump to

Keyboard shortcuts

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