attribute

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept

func Accept(value string) hatmill.Attrib

Accept creates a "accept" attribute

func AcceptCharset

func AcceptCharset(value string) hatmill.Attrib

AcceptCharset creates a "accept-charset" attribute

func Accesskey

func Accesskey(value rune) hatmill.Attrib

func Action

func Action(value string) hatmill.Attrib

Action creates a "action" attribute

func Alt

func Alt(value string) hatmill.Attrib

Alt creates a "alt" attribute

func Async

func Async() hatmill.Attrib

Async creates a "async" attribute

func Autocapitalize

func Autocapitalize(value string) hatmill.Attrib

Autocapitalize creates a "autocapitalize" attribute

func Autocomplete

func Autocomplete(value string) hatmill.Attrib

Autocomplete creates a "autocomplete" attribute

func Autofocus

func Autofocus() hatmill.Attrib

Autofocus creates a "autofocus" attribute

func Autoplay

func Autoplay() hatmill.Attrib

Autoplay creates a "autoplay" attribute

func Charset

func Charset(value string) hatmill.Attrib

Charset creates a "charset" attribute

func Checked

func Checked() hatmill.Attrib

Checked creates a "checked" attribute

func Cite

func Cite(value string) hatmill.Attrib

Cite creates a "cite" attribute

func Class

func Class(value string) hatmill.Attrib

Class creates a "class" attribute

func Cols

func Cols(value int) hatmill.Attrib

Cols creates a "cols" attribute

func Colspan

func Colspan(value int) hatmill.Attrib

Colspan creates a "colspan" attribute

func Content

func Content(value string) hatmill.Attrib

Content creates a "content" attribute

func Contenteditable

func Contenteditable(value bool) hatmill.Attrib

Contenteditable creates a "contenteditable" attribute

func Contextmenu

func Contextmenu(value string) hatmill.Attrib

Contextmenu creates a "contextmenu" attribute

func Controls

func Controls() hatmill.Attrib

Controls creates a "controls" attribute

func Coords

func Coords(value string) hatmill.Attrib

Coords creates a "coords" attribute

func Crossorigin

func Crossorigin(value string) hatmill.Attrib

Crossorigin creates a "crossorigin" attribute

func CustomData

func CustomData(suffix, value string) hatmill.Attrib

CustomData creates an attribute of the form data-suffix='value'.

func Datetime

func Datetime(value string) hatmill.Attrib

Datetime creates a "datetime" attribute

func Decoding

func Decoding(value string) hatmill.Attrib

Decoding creates a "decoding" attribute

func Default

func Default() hatmill.Attrib

Default creates a "default" attribute

func Defer

func Defer() hatmill.Attrib

Defer creates a "defer" attribute

func Dir

func Dir(value string) hatmill.Attrib

Dir creates a "dir" attribute

func Dirname

func Dirname(value string) hatmill.Attrib

Dirname creates a "dirname" attribute

func Disabled

func Disabled() hatmill.Attrib

Disabled creates a "disabled" attribute

func Download

func Download(value string) hatmill.Attrib

Download creates a "download" attribute

func Draggable

func Draggable(value bool) hatmill.Attrib

Draggable creates a "draggable" attribute

func Enctype

func Enctype(value string) hatmill.Attrib

Enctype creates a "enctype" attribute

func For

func For(value string) hatmill.Attrib

For creates a "for" attribute

func Form

func Form(value string) hatmill.Attrib

Form creates a "form" attribute

func Formaction

func Formaction(value string) hatmill.Attrib

Formaction creates a "formaction" attribute

func Headers

func Headers(value string) hatmill.Attrib

Headers creates a "headers" attribute

func Height

func Height(value int) hatmill.Attrib

Height creates a "height" attribute

func Hidden

func Hidden() hatmill.Attrib

Hidden creates a "hidden" attribute

func High

func High(value float32) hatmill.Attrib

High creates a "high" attribute

func Href

func Href(value string) hatmill.Attrib

Href creates a "href" attribute

func Hreflang

func Hreflang(value string) hatmill.Attrib

Hreflang creates a "hreflang" attribute

func HttpEquiv

func HttpEquiv(value string) hatmill.Attrib

HttpEquiv creates a "http-equiv" attribute

func Id

func Id(value string) hatmill.Attrib

Id creates a "id" attribute

func Ismap

func Ismap() hatmill.Attrib

Ismap creates a "ismap" attribute

func Itemprop

func Itemprop(value string) hatmill.Attrib

Itemprop creates a "itemprop" attribute

func Kind

func Kind(value string) hatmill.Attrib

Kind creates a "kind" attribute

func Label

func Label(value string) hatmill.Attrib

Label creates a "label" attribute

func Lang

func Lang(value string) hatmill.Attrib

Lang creates a "lang" attribute

func List

func List(value string) hatmill.Attrib

List creates a "list" attribute

func Loop

func Loop() hatmill.Attrib

Loop creates a "loop" attribute

func Low

func Low(value float32) hatmill.Attrib

Low creates a "low" attribute

func Max

func Max(value float32) hatmill.Attrib

Max creates a "max" attribute

func Maxlength

func Maxlength(value int) hatmill.Attrib

Maxlength creates a "maxlength" attribute

func Media

func Media(value string) hatmill.Attrib

Media creates a "media" attribute

func Method

func Method(value string) hatmill.Attrib

Method creates a "method" attribute

func Min

func Min(value float32) hatmill.Attrib

Min creates a "min" attribute

func Minlength

func Minlength(value int) hatmill.Attrib

Minlength creates a "minlength" attribute

func Multiple

func Multiple() hatmill.Attrib

Multiple creates a "multiple" attribute

func Muted

func Muted() hatmill.Attrib

Muted creates a "muted" attribute

func Name

func Name(value string) hatmill.Attrib

Name creates a "name" attribute

func Novalidate

func Novalidate() hatmill.Attrib

Novalidate creates a "novalidate" attribute

func Open

func Open() hatmill.Attrib

Open creates a "open" attribute

func Optimum

func Optimum(value float32) hatmill.Attrib

Optimum creates a "optimum" attribute

func Pattern

func Pattern(value string) hatmill.Attrib

Pattern creates a "pattern" attribute

func Ping

func Ping(value string) hatmill.Attrib

Ping creates a "ping" attribute

func Placeholder

func Placeholder(value string) hatmill.Attrib

Placeholder creates a "placeholder" attribute

func Poster

func Poster(value string) hatmill.Attrib

Poster creates a "poster" attribute

func Preload

func Preload(value string) hatmill.Attrib

Preload creates a "preload" attribute

func Readonly

func Readonly() hatmill.Attrib

Readonly creates a "readonly" attribute

func Referrerpolicy

func Referrerpolicy(value string) hatmill.Attrib

Referrerpolicy creates a "referrerpolicy" attribute

func Rel

func Rel(value string) hatmill.Attrib

Rel creates a "rel" attribute

func Required

func Required() hatmill.Attrib

Required creates a "required" attribute

func Reversed

func Reversed() hatmill.Attrib

Reversed creates a "reversed" attribute

func Rows

func Rows(value int) hatmill.Attrib

Rows creates a "rows" attribute

func Rowspan

func Rowspan(value int) hatmill.Attrib

Rowspan creates a "rowspan" attribute

func Sandbox

func Sandbox(value string) hatmill.Attrib

Sandbox creates a "sandbox" attribute

func Scope

func Scope(value string) hatmill.Attrib

Scope creates a "scope" attribute

func Selected

func Selected() hatmill.Attrib

Selected creates a "selected" attribute

func Shape

func Shape(value string) hatmill.Attrib

Shape creates a "shape" attribute

func Size

func Size(value int) hatmill.Attrib

Size creates a "size" attribute

func Sizes

func Sizes(value string) hatmill.Attrib

Sizes creates a "sizes" attribute

func Span

func Span(value int) hatmill.Attrib

Span creates a "span" attribute

func Spellcheck

func Spellcheck(value bool) hatmill.Attrib

Spellcheck creates a "spellcheck" attribute

func Src

func Src(value string) hatmill.Attrib

Src creates a "src" attribute

func Srcdoc

func Srcdoc(value string) hatmill.Attrib

Srcdoc creates a "srcdoc" attribute

func Srclang

func Srclang(value string) hatmill.Attrib

Srclang creates a "srclang" attribute

func Srcset

func Srcset(value string) hatmill.Attrib

Srcset creates a "srcset" attribute

func Start

func Start(value string) hatmill.Attrib

Start creates a "start" attribute

func Step

func Step(value StepValue) hatmill.Attrib

Step indicates the minimum allowed change to a number input.

Example
package main

import (
	"gitlab.codemonkeysoftware.net/b/hatmill/attribute"
	"gitlab.codemonkeysoftware.net/b/hatmill/element"
	"os"
)

func main() {
	s1 := attribute.Step(attribute.StepAny())
	s2 := attribute.Step(attribute.StepFloat(0.5))
	e := element.Div()(
		element.Input(s1),
		element.Input(s2),
	)
	e.WriteTo(os.Stdout)
}
Output:

<div><input step='any'><input step='0.5'></div>

func Style

func Style(value string) hatmill.Attrib

Style creates a "style" attribute

func Tabindex

func Tabindex(value int) hatmill.Attrib

Tabindex creates a "tabindex" attribute

func Target

func Target(value string) hatmill.Attrib

Target creates a "target" attribute

func Title

func Title(value string) hatmill.Attrib

Title creates a "title" attribute

func Type

func Type(value string) hatmill.Attrib

Type creates a "type" attribute

func Usemap

func Usemap(value string) hatmill.Attrib

Usemap creates a "usemap" attribute

func Value

func Value(value string) hatmill.Attrib

Value creates a "value" attribute

func Width

func Width(value int) hatmill.Attrib

Width creates a "width" attribute

func Wrap

func Wrap(value string) hatmill.Attrib

Wrap creates a "wrap" attribute

Types

type StepValue

type StepValue *float32

func StepAny

func StepAny() StepValue

func StepFloat

func StepFloat(value float32) StepValue

Jump to

Keyboard shortcuts

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