attr

package
v0.13.66 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: BSD-3-Clause, BSD-3-Clause Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

func About(a string) html.SingleAttr

RDFa

func Accept added in v0.9.6

func Accept(vals string) html.SingleAttr

Unique file type specifiers A unique file type specifier is a string that describes a type of file that may be selected by the user in an <input> element of type file. Each unique file type specifier may take one of the following forms:

A valid case-insensitive filename extension, starting with a period (".") character. For example: .jpg, .pdf, or .doc. A valid MIME type string, with no extensions. The string audio/* meaning "any audio file". The string video/* meaning "any video file". The string image/* meaning "any image file". The accept attribute takes a string containing one or more of these unique file type specifiers as its value, separated by commas.

func AccessKey added in v0.9.6

func AccessKey(key rune) html.SingleAttr

func Action

func Action(a string) html.SingleAttr

func Alt

func Alt(alttext string) html.SingleAttr

func AriaCurrent added in v0.13.60

func AriaCurrent(value string) html.SingleAttr

func AriaExpanded added in v0.13.59

func AriaExpanded(value string) html.SingleAttr

func AriaHidden added in v0.13.59

func AriaHidden(value string) html.SingleAttr

func AriaLabel added in v0.13.59

func AriaLabel(value string) html.SingleAttr

func AutoCapitalize added in v0.9.6

func AutoCapitalize(code int) html.SingleAttr

Autocapitalize switches on or off autocaptilization: The values for the code are: 0: off 1: autocapitalize every sentence 2: autocapitalize every word 3: autocapitalize every character

func AutoCorrect added in v0.9.6

func AutoCorrect(on bool) html.SingleAttr

func AutoFocus added in v0.9.6

func AutoFocus(pat string) html.SingleAttr

func Autocomplete added in v0.0.2

func Autocomplete(f string) html.SingleAttr

func Checked

func Checked() html.SingleAttr

func Content added in v0.0.2

func Content(f string) html.SingleAttr

func ContentEditable added in v0.9.6

func ContentEditable(code int) html.SingleAttr

ContentEditable switches on or off contenteditable: The values for the code are: 0: false 1: plaintext-only 2: true

func DataId

func DataId(f string) html.SingleAttr

func DataTarget

func DataTarget(f string) html.SingleAttr

func DataTheme added in v0.13.59

func DataTheme(f string) html.SingleAttr

func DataToggle

func DataToggle(f string) html.SingleAttr

func Disabled added in v0.9.6

func Disabled() html.SingleAttr

func Enctype

func Enctype(f string) html.SingleAttr

func For

func For(f string) html.SingleAttr

func FormAction added in v0.9.6

func FormAction(f string) html.SingleAttr

func FormEncType added in v0.9.6

func FormEncType(f string) html.SingleAttr

func FormMethod added in v0.9.6

func FormMethod(f string) html.SingleAttr

func Height

func Height(f string) html.SingleAttr

func Href

func Href(url string) html.SingleAttr

func Lang added in v0.0.2

func Lang(f string) html.SingleAttr

func List added in v0.9.6

func List(idOfDatalistElement string) html.SingleAttr

func Max added in v0.9.6

func Max(n int) html.SingleAttr

func MaxDate added in v0.9.6

func MaxDate(year int, month int, day int) html.SingleAttr

func MaxDateTimeLocal added in v0.9.6

func MaxDateTimeLocal(year, month, day, hours, minutes int) html.SingleAttr

func MaxLength added in v0.9.6

func MaxLength(l int) html.SingleAttr

func MaxMonth added in v0.9.6

func MaxMonth(year int, month int) html.SingleAttr

func MaxTime added in v0.9.6

func MaxTime(hours int, minutes int) html.SingleAttr

func MaxWeek added in v0.9.6

func MaxWeek(year int, week int) html.SingleAttr

func Media

func Media(md string) html.SingleAttr

func Method

func Method(m string) html.SingleAttr

Forms

func Min added in v0.9.6

func Min(n int) html.SingleAttr

func MinDate added in v0.9.6

func MinDate(year int, month int, day int) html.SingleAttr

func MinDateTimeLocal added in v0.9.6

func MinDateTimeLocal(year, month, day, hours, minutes int) html.SingleAttr

func MinLength added in v0.9.6

func MinLength(l int) html.SingleAttr

func MinMonth added in v0.9.6

func MinMonth(year int, month int) html.SingleAttr

func MinTime added in v0.9.6

func MinTime(hours int, minutes int) html.SingleAttr

func MinWeek added in v0.9.6

func MinWeek(year int, week int) html.SingleAttr

func MultiPart

func MultiPart() html.SingleAttr

func Multiple added in v0.9.6

func Multiple(pat string) html.SingleAttr

func Name

func Name(n string) html.SingleAttr

func OnClick

func OnClick(js string) html.SingleAttr

func OnSubmit

func OnSubmit(js string) html.SingleAttr

func Part added in v0.9.6

func Part(f string) html.SingleAttr

func Pattern added in v0.9.6

func Pattern(pat string) html.SingleAttr

func Placeholder added in v0.0.2

func Placeholder(f string) html.SingleAttr

func Property

func Property(a string) html.SingleAttr

func Readonly added in v0.9.6

func Readonly(pat string) html.SingleAttr

func Rel

func Rel(relation string) html.SingleAttr

func Required

func Required() html.SingleAttr

func Role added in v0.9.6

func Role(f string) html.SingleAttr

func Selected added in v0.12.0

func Selected() html.SingleAttr

func Size added in v0.9.6

func Size(s int) html.SingleAttr

func Spellcheck added in v0.9.6

func Spellcheck(on bool) html.SingleAttr

func Src

func Src(src string) html.SingleAttr

func StepFloat added in v0.13.60

func StepFloat(dec uint, step float64) html.SingleAttr

if s is 0, step is "any"

func StepInt added in v0.13.60

func StepInt(step uint) html.SingleAttr

if s is 0, step is "any"

func TabIndex added in v0.9.6

func TabIndex(s int) html.SingleAttr

func Target

func Target(f string) html.SingleAttr

func Title

func Title(text string) html.SingleAttr

func Type

func Type(ty string) html.SingleAttr

func TypeButton added in v0.9.6

func TypeButton() html.SingleAttr

func TypeCheckbox added in v0.9.6

func TypeCheckbox() html.SingleAttr

func TypeColor added in v0.9.6

func TypeColor() html.SingleAttr

func TypeDate added in v0.9.6

func TypeDate() html.SingleAttr

func TypeDateTimeLocal added in v0.9.6

func TypeDateTimeLocal() html.SingleAttr

func TypeEMail added in v0.9.6

func TypeEMail() html.SingleAttr

func TypeFile added in v0.9.6

func TypeFile() html.SingleAttr

func TypeHidden added in v0.9.6

func TypeHidden() html.SingleAttr

func TypeImage added in v0.9.6

func TypeImage() html.SingleAttr

func TypeMonth added in v0.9.6

func TypeMonth() html.SingleAttr

func TypeNumber added in v0.9.6

func TypeNumber() html.SingleAttr

func TypeOf

func TypeOf(a string) html.SingleAttr

func TypePassword added in v0.9.6

func TypePassword() html.SingleAttr

func TypeRadio added in v0.9.6

func TypeRadio() html.SingleAttr

func TypeRange added in v0.9.6

func TypeRange() html.SingleAttr

func TypeReset added in v0.9.6

func TypeReset() html.SingleAttr

func TypeSearch added in v0.9.6

func TypeSearch() html.SingleAttr

func TypeSubmit added in v0.9.6

func TypeSubmit() html.SingleAttr

func TypeTelephone added in v0.9.6

func TypeTelephone() html.SingleAttr

func TypeText added in v0.9.6

func TypeText() html.SingleAttr

func TypeTime added in v0.9.6

func TypeTime() html.SingleAttr

func TypeURL added in v0.9.6

func TypeURL() html.SingleAttr

func TypeWeek added in v0.9.6

func TypeWeek() html.SingleAttr

func Value

func Value(v string) html.SingleAttr

func ValueColor added in v0.9.6

func ValueColor(r, g, b int) html.SingleAttr

func ValueDate added in v0.9.6

func ValueDate(year int, month int, day int) html.SingleAttr

func ValueDateTimeLocal added in v0.9.6

func ValueDateTimeLocal(year, month, day, hours, minutes int) html.SingleAttr

func Width

func Width(f string) html.SingleAttr

Types

This section is empty.

Jump to

Keyboard shortcuts

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