app: github.com/maxence-charriere/app/pkg/app Index | Files

package app

import "github.com/maxence-charriere/app/pkg/app"

Index

Package Files

app.go app_nowasm.go compo.go condition.go elem.go html.go http.go js.go js_nowasm.go menu.go node.go notfound.go range.go raw.go route.go scripts.go storage.go storage_nowasm.go strings.go text.go

Variables

var (
    // LocalStorage is a storage that uses the browser local storage associated
    // to the document origin. Data stored are encrypted and has no expiration
    // time.
    LocalStorage BrowserStorage

    // SessionStorage is a storage that uses the browser session storage
    // associated to the document origin. Data stored are encrypted and expire
    // when the page session ends.
    SessionStorage BrowserStorage

    // NotFound is the ui element that is displayed when a request is not
    // routed.
    NotFound UI  = &notFound{}
)

func CopyBytesToGo Uses

func CopyBytesToGo(dst []byte, src Value) int

CopyBytesToGo copies bytes from the Uint8Array src to dst. It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.

CopyBytesToGo panics if src is not an Uint8Array.

func CopyBytesToJS Uses

func CopyBytesToJS(dst Value, src []byte) int

CopyBytesToJS copies bytes from src to the Uint8Array dst. It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.

CopyBytesToJS panics if dst is not an Uint8Array.

func Dispatch Uses

func Dispatch(f func())

Dispatch executes the given function on the UI goroutine.

func Getenv Uses

func Getenv(k string) string

Getenv retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present.

func KeepBodyClean Uses

func KeepBodyClean() (close func())

KeepBodyClean prevents third-party Javascript libraries to add nodes to the body element.

func Navigate(rawurl string)

Navigate navigates to the given URL.

func NewContextMenu Uses

func NewContextMenu(menuItems ...MenuItemNode)

NewContextMenu displays a context menu filled with the given menu items.

func Reload Uses

func Reload()

Reload reloads the current page.

func ResolveStaticResourcePath Uses

func ResolveStaticResourcePath(path string) string

ResolveStaticResourcePath makes a static resource path point to the right location whether the root directory is remote or not.

Static resources are resources located in the web directory.

This call is used internally to resolve paths within Cite, Data, Href, Src, and SrcSet. Paths already resolved are skipped.

func Route Uses

func Route(path string, node UI)

Route binds the requested path to the given UI node.

func RouteWithRegexp Uses

func RouteWithRegexp(pattern string, node UI)

RouteWithRegexp binds the regular expression pattern to the given UI node. Patterns use the Go standard regexp format.

func Run Uses

func Run()

Run starts the wasm app and displays the UI node associated with the requested URL path.

It panics if Go architecture is not wasm.

type BrowserStorage Uses

type BrowserStorage interface {
    // Set sets the value to the given key. The value must be json convertible.
    Set(k string, v interface{}) error

    // Get gets the item associated to the given key and store it in the given
    // value.
    // It returns an error if v is not a pointer.
    Get(k string, v interface{}) error

    // Del deletes the item associated with the given key.
    Del(k string)

    // Clear deletes all items.
    Clear()
}

BrowserStorage is the interface that describes a web browser storage.

type BrowserWindow Uses

type BrowserWindow interface {
    Value

    // The window current url (window.location.href).
    URL() *url.URL

    // The window size.
    Size() (w, h int)

    // The position of the cursor (mouse or touch).
    CursorPosition() (x, y int)

    // Scrolls to the element with the given id.
    ScrollToID(id string)
    // contains filtered or unexported methods
}

BrowserWindow is the interface that describes the browser window.

func Window Uses

func Window() BrowserWindow

Window returns the JavaScript "window" object.

type Compo Uses

type Compo struct {
    // contains filtered or unexported fields
}

Compo represents the base struct to use in order to build a component.

func (*Compo) JSValue Uses

func (c *Compo) JSValue() Value

JSValue returns the component root javascript value.

func (*Compo) Render Uses

func (c *Compo) Render() UI

Render describes the component content. This is a default implementation to satisfy the app.Composer interface. It should be redefined when app.Compo is embedded.

func (*Compo) Update Uses

func (c *Compo) Update()

Update update the component appearance. It should be called when a field used to render the component has been modified.

type Composer Uses

type Composer interface {
    UI

    // Render returns the node tree that define how the component is desplayed.
    Render() UI

    // Update update the component appearance. It should be called when a field
    // used to render the component has been modified.
    Update()
    // contains filtered or unexported methods
}

Composer is the interface that describes a component that embeds other nodes.

Satisfying this interface is done by embedding app.Compo into a struct and implementing the Render function.

Example:

type Hello struct {
    app.Compo
}

func (c *Hello) Render() app.UI {
    return app.Text("hello")
}

type Condition Uses

type Condition interface {
    Node

    // ElseIf sets the condition with the given nodes if previous expressions
    // were not met and given expression is true.
    ElseIf(expr bool, nodes ...Node) Condition

    // Else sets the condition with the given UI elements if previous
    // expressions were not met.
    Else(nodes ...Node) Condition
    // contains filtered or unexported methods
}

Condition represents a control structure that displays nodes depending on a given expression.

func If Uses

func If(expr bool, nodes ...Node) Condition

If returns a condition that contains the given nodes depending on the given expression.

type Dismounter Uses

type Dismounter interface {
    Composer

    // The function that is called when the component is dismounted.
    OnDismount()
}

Dismounter is the interface that describes a component that can perform additional actions when dismounted.

type Dispatcher Uses

type Dispatcher func(func())

Dispatcher is a function that executes the given function on the goroutine dedicated to UI.

type Environment Uses

type Environment map[string]string

Environment describes the environment variables to pass to the progressive web app.

type Event Uses

type Event struct {
    Value
}

Event is the interface that describes a javascript event.

func (Event) PreventDefault Uses

func (e Event) PreventDefault()

PreventDefault cancels the event if it is cancelable. The default action that belongs to the event will not occur.

type EventHandler Uses

type EventHandler func(src Value, e Event)

EventHandler represents a function that can handle HTML events.

type Func Uses

type Func interface {
    Value

    // Release frees up resources allocated for the function. The function must
    // not be invoked after calling Release.
    Release()
}

Func is the interface that describes a wrapped Go function to be called by JavaScript.

func FuncOf Uses

func FuncOf(fn func(this Value, args []Value) interface{}) Func

FuncOf returns a wrapped function.

Invoking the JavaScript function will synchronously call the Go function fn with the value of JavaScript's "this" keyword and the arguments of the invocation. The return value of the invocation is the result of the Go function mapped back to JavaScript according to ValueOf.

A wrapped function triggered during a call from Go to JavaScript gets executed on the same goroutine. A wrapped function triggered by JavaScript's event loop gets executed on an extra goroutine. Blocking operations in the wrapped function will block the event loop. As a consequence, if one wrapped function blocks, other wrapped funcs will not be processed. A blocking function should therefore explicitly start a new goroutine.

Func.Release must be called to free up resources when the function will not be used any more.

type HTMLA Uses

type HTMLA interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLA

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLA

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLA

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLA

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLA

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLA

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLA

    // Download specifies that the target will be downloaded when a user clicks on the hyperlink.
    Download(v bool) HTMLA

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLA

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLA

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLA

    // HrefLang specifies the language of the linked document.
    HrefLang(v string) HTMLA

    // ID specifies a unique id for an element.
    ID(v string) HTMLA

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLA

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLA

    // Ping specifies a list of URLs to be notified if the user follows the hyperlink.
    Ping(v string) HTMLA

    // Rel specifies the relationship between the current document and the linked document.
    Rel(v string) HTMLA

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLA

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLA

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLA

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLA

    // Title specifies extra information about an element.
    Title(v string) HTMLA

    // Type specifies the type of element.
    Type(v string) HTMLA

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLA

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLA

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLA

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLA

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLA

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLA

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLA

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLA

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLA

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLA

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLA

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLA

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLA

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLA

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLA

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLA

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLA

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLA

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLA

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLA

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLA

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLA

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLA

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLA

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLA

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLA

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLA

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLA

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLA

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLA

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLA

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLA
    // contains filtered or unexported methods
}

HTMLA is the interface that describes a <a> HTML element.

func A Uses

func A() HTMLA

A returns an HTML element that defines a hyperlink.

type HTMLAbbr Uses

type HTMLAbbr interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLAbbr

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAbbr

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAbbr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAbbr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAbbr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAbbr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAbbr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAbbr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAbbr

    // ID specifies a unique id for an element.
    ID(v string) HTMLAbbr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAbbr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAbbr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAbbr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAbbr

    // Title specifies extra information about an element.
    Title(v string) HTMLAbbr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAbbr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAbbr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAbbr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAbbr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAbbr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAbbr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAbbr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAbbr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAbbr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAbbr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAbbr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAbbr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAbbr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAbbr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAbbr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAbbr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAbbr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAbbr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAbbr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAbbr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAbbr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAbbr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAbbr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAbbr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAbbr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAbbr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAbbr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAbbr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAbbr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAbbr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAbbr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAbbr
    // contains filtered or unexported methods
}

HTMLAbbr is the interface that describes a <abbr> HTML element.

func Abbr Uses

func Abbr() HTMLAbbr

Abbr returns an HTML element that defines an abbreviation or an acronym.

type HTMLAddress Uses

type HTMLAddress interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLAddress

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAddress

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAddress

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAddress

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAddress

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAddress

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAddress

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAddress

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAddress

    // ID specifies a unique id for an element.
    ID(v string) HTMLAddress

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAddress

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAddress

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAddress

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAddress

    // Title specifies extra information about an element.
    Title(v string) HTMLAddress

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAddress

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAddress

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAddress

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAddress

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAddress

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAddress

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAddress

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAddress

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAddress

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAddress

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAddress

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAddress

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAddress

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAddress

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAddress

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAddress

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAddress

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAddress

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAddress

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAddress

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAddress

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAddress

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAddress

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAddress

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAddress

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAddress

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAddress

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAddress

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAddress

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAddress

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAddress

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAddress
    // contains filtered or unexported methods
}

HTMLAddress is the interface that describes a <address> HTML element.

func Address Uses

func Address() HTMLAddress

Address returns an HTML element that defines contact information for the author/owner of a document.

type HTMLArea Uses

type HTMLArea interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLArea

    // Alt specifies an alternate text when the original element fails to display.
    Alt(v string) HTMLArea

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLArea

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLArea

    // Coords specifies the coordinates of the area.
    Coords(v string) HTMLArea

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLArea

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLArea

    // Download specifies that the target will be downloaded when a user clicks on the hyperlink.
    Download(v bool) HTMLArea

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLArea

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLArea

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLArea

    // HrefLang specifies the language of the linked document.
    HrefLang(v string) HTMLArea

    // ID specifies a unique id for an element.
    ID(v string) HTMLArea

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLArea

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLArea

    // Rel specifies the relationship between the current document and the linked document.
    Rel(v string) HTMLArea

    // Shape specifies the shape of the area.
    Shape(v string) HTMLArea

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLArea

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLArea

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLArea

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLArea

    // Title specifies extra information about an element.
    Title(v string) HTMLArea

    // Type specifies the type of element.
    Type(v string) HTMLArea

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLArea

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLArea

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLArea

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLArea

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLArea

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLArea

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLArea

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLArea

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLArea

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLArea

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLArea

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLArea

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLArea

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLArea

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLArea

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLArea

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLArea

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLArea

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLArea

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLArea

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLArea

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLArea

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLArea

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLArea

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLArea

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLArea

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLArea

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLArea

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLArea

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLArea

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLArea

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLArea
    // contains filtered or unexported methods
}

HTMLArea is the interface that describes a <area> HTML element.

func Area Uses

func Area() HTMLArea

Area returns an HTML element that defines an area inside an image-map.

type HTMLArticle Uses

type HTMLArticle interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLArticle

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLArticle

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLArticle

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLArticle

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLArticle

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLArticle

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLArticle

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLArticle

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLArticle

    // ID specifies a unique id for an element.
    ID(v string) HTMLArticle

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLArticle

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLArticle

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLArticle

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLArticle

    // Title specifies extra information about an element.
    Title(v string) HTMLArticle

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLArticle

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLArticle

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLArticle

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLArticle

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLArticle

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLArticle

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLArticle

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLArticle

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLArticle

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLArticle

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLArticle

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLArticle

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLArticle

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLArticle

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLArticle

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLArticle

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLArticle

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLArticle

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLArticle

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLArticle

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLArticle

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLArticle

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLArticle

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLArticle

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLArticle

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLArticle

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLArticle

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLArticle

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLArticle

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLArticle

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLArticle

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLArticle
    // contains filtered or unexported methods
}

HTMLArticle is the interface that describes a <article> HTML element.

func Article Uses

func Article() HTMLArticle

Article returns an HTML element that defines an article.

type HTMLAside Uses

type HTMLAside interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLAside

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAside

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAside

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAside

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAside

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAside

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAside

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAside

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAside

    // ID specifies a unique id for an element.
    ID(v string) HTMLAside

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAside

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAside

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAside

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAside

    // Title specifies extra information about an element.
    Title(v string) HTMLAside

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAside

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAside

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAside

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAside

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAside

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAside

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAside

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAside

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAside

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAside

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAside

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAside

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAside

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAside

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAside

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAside

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAside

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAside

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAside

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAside

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAside

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAside

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAside

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAside

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAside

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAside

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAside

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAside

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAside

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAside

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAside

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAside
    // contains filtered or unexported methods
}

HTMLAside is the interface that describes a <aside> HTML element.

func Aside Uses

func Aside() HTMLAside

Aside returns an HTML element that defines content aside from the page content.

type HTMLAudio Uses

type HTMLAudio interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLAudio

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAudio

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAudio

    // AutoPlay specifies that the audio/video will start playing as soon as it is ready.
    AutoPlay(v bool) HTMLAudio

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAudio

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAudio

    // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc).
    Controls(v bool) HTMLAudio

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAudio

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAudio

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAudio

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAudio

    // ID specifies a unique id for an element.
    ID(v string) HTMLAudio

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAudio

    // Loop specifies that the audio/video will start over again, every time it is finished.
    Loop(v bool) HTMLAudio

    // Muted specifies that the audio output of the video should be muted.
    Muted(v bool) HTMLAudio

    // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads.
    Preload(v string) HTMLAudio

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAudio

    // Src specifies the URL of the media file.
    Src(v string) HTMLAudio

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAudio

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAudio

    // Title specifies extra information about an element.
    Title(v string) HTMLAudio

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLAudio

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAudio

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLAudio

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLAudio

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAudio

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAudio

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAudio

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAudio

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLAudio

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAudio

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAudio

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAudio

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAudio

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAudio

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAudio

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAudio

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAudio

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAudio

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLAudio

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLAudio

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLAudio

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLAudio

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAudio

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAudio

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAudio

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAudio

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAudio

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAudio

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLAudio

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLAudio

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAudio

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAudio

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAudio

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAudio

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAudio

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAudio

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLAudio

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLAudio

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLAudio

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLAudio

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLAudio

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAudio

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAudio

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAudio

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLAudio

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLAudio

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAudio

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLAudio

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAudio

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLAudio

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLAudio

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLAudio

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLAudio

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAudio

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLAudio
    // contains filtered or unexported methods
}

HTMLAudio is the interface that describes a <audio> HTML element.

func Audio Uses

func Audio() HTMLAudio

Audio returns an HTML element that defines sound content.

type HTMLB Uses

type HTMLB interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLB

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLB

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLB

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLB

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLB

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLB

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLB

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLB

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLB

    // ID specifies a unique id for an element.
    ID(v string) HTMLB

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLB

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLB

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLB

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLB

    // Title specifies extra information about an element.
    Title(v string) HTMLB

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLB

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLB

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLB

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLB

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLB

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLB

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLB

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLB

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLB

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLB

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLB

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLB

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLB

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLB

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLB

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLB

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLB

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLB

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLB

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLB

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLB

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLB

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLB

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLB

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLB

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLB

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLB

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLB

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLB

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLB

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLB

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLB
    // contains filtered or unexported methods
}

HTMLB is the interface that describes a <b> HTML element.

func B Uses

func B() HTMLB

B returns an HTML element that defines bold text.

type HTMLBase Uses

type HTMLBase interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBase

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBase

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBase

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBase

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBase

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBase

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBase

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLBase

    // ID specifies a unique id for an element.
    ID(v string) HTMLBase

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBase

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBase

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBase

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBase

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLBase

    // Title specifies extra information about an element.
    Title(v string) HTMLBase

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBase

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBase

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBase

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBase

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBase

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBase

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBase

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBase

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBase

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBase

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBase

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBase

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBase

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBase

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBase

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBase

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBase

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBase

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBase

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBase

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBase

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBase

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBase

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBase

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBase

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBase

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBase

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBase

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBase

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBase

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBase

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBase
    // contains filtered or unexported methods
}

HTMLBase is the interface that describes a <base> HTML element.

func Base Uses

func Base() HTMLBase

Base returns an HTML element that specifies the base URL/target for all relative URLs in a document.

type HTMLBdi Uses

type HTMLBdi interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLBdi

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBdi

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBdi

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBdi

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBdi

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBdi

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBdi

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBdi

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBdi

    // ID specifies a unique id for an element.
    ID(v string) HTMLBdi

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBdi

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBdi

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBdi

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBdi

    // Title specifies extra information about an element.
    Title(v string) HTMLBdi

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBdi

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBdi

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBdi

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBdi

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBdi

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBdi

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBdi

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBdi

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBdi

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBdi

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBdi

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBdi

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBdi

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBdi

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBdi

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBdi

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBdi

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBdi

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBdi

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBdi

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBdi

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBdi

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBdi

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBdi

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBdi

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBdi

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBdi

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBdi

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBdi

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBdi

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBdi

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBdi
    // contains filtered or unexported methods
}

HTMLBdi is the interface that describes a <bdi> HTML element.

func Bdi Uses

func Bdi() HTMLBdi

Bdi returns an HTML element that isolates a part of text that might be formatted in a different direction from other text outside it.

type HTMLBdo Uses

type HTMLBdo interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLBdo

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBdo

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBdo

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBdo

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBdo

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBdo

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBdo

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBdo

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBdo

    // ID specifies a unique id for an element.
    ID(v string) HTMLBdo

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBdo

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBdo

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBdo

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBdo

    // Title specifies extra information about an element.
    Title(v string) HTMLBdo

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBdo

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBdo

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBdo

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBdo

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBdo

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBdo

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBdo

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBdo

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBdo

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBdo

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBdo

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBdo

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBdo

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBdo

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBdo

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBdo

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBdo

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBdo

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBdo

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBdo

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBdo

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBdo

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBdo

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBdo

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBdo

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBdo

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBdo

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBdo

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBdo

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBdo

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBdo

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBdo
    // contains filtered or unexported methods
}

HTMLBdo is the interface that describes a <bdo> HTML element.

func Bdo Uses

func Bdo() HTMLBdo

Bdo returns an HTML element that overrides the current text direction.

type HTMLBlockquote Uses

type HTMLBlockquote interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLBlockquote

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBlockquote

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBlockquote

    // Cite specifies a URL which explains the quote/deleted/inserted text.
    Cite(v string) HTMLBlockquote

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBlockquote

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBlockquote

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBlockquote

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBlockquote

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBlockquote

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBlockquote

    // ID specifies a unique id for an element.
    ID(v string) HTMLBlockquote

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBlockquote

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBlockquote

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBlockquote

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBlockquote

    // Title specifies extra information about an element.
    Title(v string) HTMLBlockquote

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBlockquote

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBlockquote

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBlockquote

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBlockquote

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBlockquote

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBlockquote

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBlockquote

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBlockquote

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBlockquote

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBlockquote

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBlockquote

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBlockquote

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBlockquote

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBlockquote

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBlockquote

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBlockquote

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBlockquote

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBlockquote

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBlockquote

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBlockquote

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBlockquote

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBlockquote

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBlockquote

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBlockquote

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBlockquote

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBlockquote

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBlockquote

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBlockquote

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBlockquote

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBlockquote

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBlockquote

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBlockquote
    // contains filtered or unexported methods
}

HTMLBlockquote is the interface that describes a <blockquote> HTML element.

func Blockquote Uses

func Blockquote() HTMLBlockquote

Blockquote returns an HTML element that defines a section that is quoted from another source.

type HTMLBody Uses

type HTMLBody interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLBody

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBody

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBody

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBody

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBody

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBody

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBody

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBody

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBody

    // ID specifies a unique id for an element.
    ID(v string) HTMLBody

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBody

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBody

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBody

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBody

    // Title specifies extra information about an element.
    Title(v string) HTMLBody

    // OnAfterPrint runs the given handler after the document is printed.
    OnAfterPrint(h EventHandler) HTMLBody

    // OnBeforePrint calls the given handler before the document is printed.
    OnBeforePrint(h EventHandler) HTMLBody

    // OnBeforeUnload calls the given handler when the document is about to be unloaded.
    OnBeforeUnload(h EventHandler) HTMLBody

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBody

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBody

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBody

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBody

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBody

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBody

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBody

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBody

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBody

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBody

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBody

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBody

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBody

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBody

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLBody

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBody

    // OnHashChange calls the given handler when there has been changes to the anchor part of the a URL.
    OnHashChange(h EventHandler) HTMLBody

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBody

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBody

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBody

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBody

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBody

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLBody

    // OnMessage calls then given handler when a message is triggered.
    OnMessage(h EventHandler) HTMLBody

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBody

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBody

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBody

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBody

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBody

    // OnOffline calls the given handler when the browser starts to work offline.
    OnOffline(h EventHandler) HTMLBody

    // OnOnline calls the given handler when the browser starts to work online.
    OnOnline(h EventHandler) HTMLBody

    // OnPageHide calls the given handler when a user navigates away from a page.
    OnPageHide(h EventHandler) HTMLBody

    // OnPageShow calls the given handler when a user navigates to a page.
    OnPageShow(h EventHandler) HTMLBody

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBody

    // OnPopState calls the given handler when the window's history changes.
    OnPopState(h EventHandler) HTMLBody

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBody

    // OnResize calls the given handler when the browser window is resized.
    OnResize(h EventHandler) HTMLBody

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBody

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBody

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBody

    // OnStorage calls the given handler when a Web Storage area is updated.
    OnStorage(h EventHandler) HTMLBody

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBody

    // OnUnload calls the given handler once a page has unloaded (or the browser window has been closed).
    OnUnload(h EventHandler) HTMLBody

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBody
    // contains filtered or unexported methods
}

HTMLBody is the interface that describes a <body> HTML element.

func Body Uses

func Body() HTMLBody

Body returns an HTML element that defines the document's body.

type HTMLBr Uses

type HTMLBr interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBr

    // ID specifies a unique id for an element.
    ID(v string) HTMLBr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBr

    // Title specifies extra information about an element.
    Title(v string) HTMLBr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBr
    // contains filtered or unexported methods
}

HTMLBr is the interface that describes a <br> HTML element.

func Br Uses

func Br() HTMLBr

Br returns an HTML element that defines a single line break.

type HTMLButton Uses

type HTMLButton interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLButton

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLButton

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLButton

    // AutoFocus specifies that the element should automatically get focus when the page loads.
    AutoFocus(v bool) HTMLButton

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLButton

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLButton

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLButton

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLButton

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLButton

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLButton

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLButton

    // FormAction specifies where to send the form-data when a form is submitted. Only for submit type.
    FormAction(v string) HTMLButton

    // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type.
    FormEncType(v string) HTMLButton

    // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type.
    FormMethod(v string) HTMLButton

    // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type.
    FormNoValidate(v bool) HTMLButton

    // FormTarget specifies where to display the response after submitting the form. Only for submit type.
    FormTarget(v string) HTMLButton

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLButton

    // ID specifies a unique id for an element.
    ID(v string) HTMLButton

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLButton

    // Name specifies the name of the element.
    Name(v string) HTMLButton

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLButton

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLButton

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLButton

    // Title specifies extra information about an element.
    Title(v string) HTMLButton

    // Type specifies the type of element.
    Type(v string) HTMLButton

    // Value specifies the value of the element.
    Value(v interface{}) HTMLButton

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLButton

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLButton

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLButton

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLButton

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLButton

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLButton

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLButton

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLButton

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLButton

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLButton

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLButton

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLButton

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLButton

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLButton

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLButton

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLButton

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLButton

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLButton

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLButton

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLButton

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLButton

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLButton

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLButton

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLButton

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLButton

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLButton

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLButton

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLButton

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLButton

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLButton

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLButton

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLButton
    // contains filtered or unexported methods
}

HTMLButton is the interface that describes a <button> HTML element.

func Button Uses

func Button() HTMLButton

Button returns an HTML element that defines a clickable button.

type HTMLCanvas Uses

type HTMLCanvas interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLCanvas

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCanvas

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCanvas

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCanvas

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCanvas

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCanvas

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCanvas

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCanvas

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLCanvas

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCanvas

    // ID specifies a unique id for an element.
    ID(v string) HTMLCanvas

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCanvas

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCanvas

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCanvas

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCanvas

    // Title specifies extra information about an element.
    Title(v string) HTMLCanvas

    // Width specifies the width of the element.
    Width(v int) HTMLCanvas

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCanvas

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCanvas

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCanvas

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCanvas

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCanvas

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCanvas

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCanvas

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCanvas

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCanvas

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCanvas

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCanvas

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCanvas

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCanvas

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCanvas

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCanvas

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCanvas

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCanvas

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCanvas

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCanvas

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCanvas

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCanvas

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCanvas

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCanvas

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCanvas

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCanvas

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCanvas

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCanvas

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCanvas

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCanvas

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCanvas

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCanvas

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCanvas
    // contains filtered or unexported methods
}

HTMLCanvas is the interface that describes a <canvas> HTML element.

func Canvas Uses

func Canvas() HTMLCanvas

Canvas returns an HTML element that is used to draw graphics on the fly.

type HTMLCaption Uses

type HTMLCaption interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLCaption

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCaption

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCaption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCaption

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCaption

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCaption

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCaption

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCaption

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCaption

    // ID specifies a unique id for an element.
    ID(v string) HTMLCaption

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCaption

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCaption

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCaption

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCaption

    // Title specifies extra information about an element.
    Title(v string) HTMLCaption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCaption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCaption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCaption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCaption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCaption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCaption

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCaption

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCaption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCaption

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCaption

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCaption

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCaption

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCaption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCaption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCaption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCaption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCaption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCaption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCaption

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCaption

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCaption

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCaption

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCaption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCaption

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCaption

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCaption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCaption

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCaption

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCaption

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCaption

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCaption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCaption
    // contains filtered or unexported methods
}

HTMLCaption is the interface that describes a <caption> HTML element.

func Caption Uses

func Caption() HTMLCaption

Caption returns an HTML element that defines a table caption.

type HTMLCite Uses

type HTMLCite interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLCite

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCite

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCite

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCite

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCite

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCite

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCite

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCite

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCite

    // ID specifies a unique id for an element.
    ID(v string) HTMLCite

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCite

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCite

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCite

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCite

    // Title specifies extra information about an element.
    Title(v string) HTMLCite

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCite

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCite

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCite

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCite

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCite

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCite

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCite

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCite

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCite

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCite

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCite

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCite

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCite

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCite

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCite

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCite

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCite

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCite

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCite

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCite

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCite

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCite

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCite

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCite

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCite

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCite

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCite

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCite

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCite

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCite

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCite

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCite
    // contains filtered or unexported methods
}

HTMLCite is the interface that describes a <cite> HTML element.

func Cite Uses

func Cite() HTMLCite

Cite returns an HTML element that defines the title of a work.

type HTMLCode Uses

type HTMLCode interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLCode

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCode

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCode

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCode

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCode

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCode

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCode

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCode

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCode

    // ID specifies a unique id for an element.
    ID(v string) HTMLCode

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCode

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCode

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCode

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCode

    // Title specifies extra information about an element.
    Title(v string) HTMLCode

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCode

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCode

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCode

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCode

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCode

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCode

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCode

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCode

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCode

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCode

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCode

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCode

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCode

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCode

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCode

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCode

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCode

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCode

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCode

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCode

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCode

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCode

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCode

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCode

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCode

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCode

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCode

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCode

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCode

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCode

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCode

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCode
    // contains filtered or unexported methods
}

HTMLCode is the interface that describes a <code> HTML element.

func Code Uses

func Code() HTMLCode

Code returns an HTML element that defines a piece of computer code.

type HTMLCol Uses

type HTMLCol interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCol

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCol

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCol

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCol

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCol

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCol

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCol

    // ID specifies a unique id for an element.
    ID(v string) HTMLCol

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCol

    // Span specifies the number of columns to span.
    Span(v int) HTMLCol

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCol

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCol

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCol

    // Title specifies extra information about an element.
    Title(v string) HTMLCol

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCol

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCol

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCol

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCol

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCol

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCol

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCol

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCol

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCol

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCol

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCol

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCol

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCol

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCol

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCol

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCol

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCol

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCol

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCol

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCol

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCol

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCol

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCol

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCol

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCol

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCol

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCol

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCol

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCol

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCol

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCol

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCol
    // contains filtered or unexported methods
}

HTMLCol is the interface that describes a <col> HTML element.

func Col Uses

func Col() HTMLCol

Col returns an HTML element that specifies column properties for each column within a colgroup element.

type HTMLColGroup Uses

type HTMLColGroup interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLColGroup

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLColGroup

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLColGroup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLColGroup

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLColGroup

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLColGroup

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLColGroup

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLColGroup

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLColGroup

    // ID specifies a unique id for an element.
    ID(v string) HTMLColGroup

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLColGroup

    // Span specifies the number of columns to span.
    Span(v int) HTMLColGroup

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLColGroup

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLColGroup

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLColGroup

    // Title specifies extra information about an element.
    Title(v string) HTMLColGroup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLColGroup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLColGroup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLColGroup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLColGroup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLColGroup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLColGroup

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLColGroup

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLColGroup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLColGroup

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLColGroup

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLColGroup

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLColGroup

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLColGroup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLColGroup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLColGroup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLColGroup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLColGroup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLColGroup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLColGroup

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLColGroup

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLColGroup

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLColGroup

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLColGroup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLColGroup

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLColGroup

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLColGroup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLColGroup

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLColGroup

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLColGroup

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLColGroup

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLColGroup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLColGroup
    // contains filtered or unexported methods
}

HTMLColGroup is the interface that describes a <colgroup> HTML element.

func ColGroup Uses

func ColGroup() HTMLColGroup

ColGroup returns an HTML element that specifies a group of one or more columns in a table for formatting.

type HTMLData Uses

type HTMLData interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLData

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLData

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLData

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLData

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLData

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLData

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLData

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLData

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLData

    // ID specifies a unique id for an element.
    ID(v string) HTMLData

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLData

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLData

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLData

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLData

    // Title specifies extra information about an element.
    Title(v string) HTMLData

    // Value specifies the value of the element.
    Value(v interface{}) HTMLData
    // contains filtered or unexported methods
}

HTMLData is the interface that describes a <data> HTML element.

func Data Uses

func Data() HTMLData

Data returns an HTML element that links the given content with a machine-readable translation.

type HTMLDataList Uses

type HTMLDataList interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDataList

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDataList

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDataList

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDataList

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDataList

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDataList

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDataList

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDataList

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDataList

    // ID specifies a unique id for an element.
    ID(v string) HTMLDataList

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDataList

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDataList

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDataList

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDataList

    // Title specifies extra information about an element.
    Title(v string) HTMLDataList

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDataList

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDataList

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDataList

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDataList

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDataList

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDataList

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDataList

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDataList

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDataList

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDataList

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDataList

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDataList

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDataList

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDataList

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDataList

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDataList

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDataList

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDataList

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDataList

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDataList

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDataList

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDataList

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDataList

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDataList

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDataList

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDataList

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDataList

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDataList

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDataList

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDataList

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDataList

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDataList
    // contains filtered or unexported methods
}

HTMLDataList is the interface that describes a <datalist> HTML element.

func DataList Uses

func DataList() HTMLDataList

DataList returns an HTML element that specifies a list of pre-defined options for input controls.

type HTMLDd Uses

type HTMLDd interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDd

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDd

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDd

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDd

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDd

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDd

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDd

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDd

    // ID specifies a unique id for an element.
    ID(v string) HTMLDd

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDd

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDd

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDd

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDd

    // Title specifies extra information about an element.
    Title(v string) HTMLDd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDd

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDd

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDd

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDd

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDd

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDd

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDd

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDd

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDd

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDd

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDd

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDd

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDd

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDd

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDd

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDd

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDd
    // contains filtered or unexported methods
}

HTMLDd is the interface that describes a <dd> HTML element.

func Dd Uses

func Dd() HTMLDd

Dd returns an HTML element that defines a description/value of a term in a description list.

type HTMLDel Uses

type HTMLDel interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDel

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDel

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDel

    // Cite specifies a URL which explains the quote/deleted/inserted text.
    Cite(v string) HTMLDel

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDel

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDel

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDel

    // DateTime specifies the date and time.
    DateTime(v string) HTMLDel

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDel

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDel

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDel

    // ID specifies a unique id for an element.
    ID(v string) HTMLDel

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDel

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDel

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDel

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDel

    // Title specifies extra information about an element.
    Title(v string) HTMLDel

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDel

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDel

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDel

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDel

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDel

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDel

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDel

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDel

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDel

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDel

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDel

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDel

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDel

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDel

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDel

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDel

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDel

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDel

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDel

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDel

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDel

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDel

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDel

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDel

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDel

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDel

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDel

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDel

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDel

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDel

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDel

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDel
    // contains filtered or unexported methods
}

HTMLDel is the interface that describes a <del> HTML element.

func Del Uses

func Del() HTMLDel

Del returns an HTML element that defines text that has been deleted from a document.

type HTMLDetails Uses

type HTMLDetails interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDetails

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDetails

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDetails

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDetails

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDetails

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDetails

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDetails

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDetails

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDetails

    // ID specifies a unique id for an element.
    ID(v string) HTMLDetails

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDetails

    // Open specifies that the details should be visible (open) to the user.
    Open(v bool) HTMLDetails

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDetails

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDetails

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDetails

    // Title specifies extra information about an element.
    Title(v string) HTMLDetails

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDetails

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDetails

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDetails

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDetails

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDetails

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDetails

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDetails

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDetails

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDetails

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDetails

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDetails

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDetails

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDetails

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDetails

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDetails

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDetails

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDetails

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDetails

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDetails

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDetails

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDetails

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDetails

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDetails

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDetails

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDetails

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDetails

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDetails

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDetails

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDetails

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDetails

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDetails

    // OnToggle calls the given handler when the user opens or closes the details element.
    OnToggle(h EventHandler) HTMLDetails

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDetails
    // contains filtered or unexported methods
}

HTMLDetails is the interface that describes a <details> HTML element.

func Details Uses

func Details() HTMLDetails

Details returns an HTML element that defines additional details that the user can view or hide.

type HTMLDfn Uses

type HTMLDfn interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDfn

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDfn

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDfn

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDfn

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDfn

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDfn

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDfn

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDfn

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDfn

    // ID specifies a unique id for an element.
    ID(v string) HTMLDfn

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDfn

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDfn

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDfn

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDfn

    // Title specifies extra information about an element.
    Title(v string) HTMLDfn

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDfn

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDfn

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDfn

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDfn

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDfn

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDfn

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDfn

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDfn

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDfn

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDfn

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDfn

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDfn

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDfn

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDfn

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDfn

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDfn

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDfn

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDfn

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDfn

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDfn

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDfn

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDfn

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDfn

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDfn

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDfn

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDfn

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDfn

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDfn

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDfn

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDfn

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDfn

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDfn
    // contains filtered or unexported methods
}

HTMLDfn is the interface that describes a <dfn> HTML element.

func Dfn Uses

func Dfn() HTMLDfn

Dfn returns an HTML element that represents the defining instance of a term.

type HTMLDialog Uses

type HTMLDialog interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDialog

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDialog

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDialog

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDialog

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDialog

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDialog

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDialog

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDialog

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDialog

    // ID specifies a unique id for an element.
    ID(v string) HTMLDialog

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDialog

    // Open specifies that the details should be visible (open) to the user.
    Open(v bool) HTMLDialog

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDialog

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDialog

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDialog

    // Title specifies extra information about an element.
    Title(v string) HTMLDialog

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDialog

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDialog

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDialog

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDialog

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDialog

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDialog

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDialog

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDialog

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDialog

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDialog

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDialog

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDialog

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDialog

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDialog

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDialog

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDialog

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDialog

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDialog

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDialog

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDialog

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDialog

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDialog

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDialog

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDialog

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDialog

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDialog

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDialog

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDialog

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDialog

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDialog

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDialog

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDialog
    // contains filtered or unexported methods
}

HTMLDialog is the interface that describes a <dialog> HTML element.

func Dialog Uses

func Dialog() HTMLDialog

Dialog returns an HTML element that defines a dialog box or window.

type HTMLDiv Uses

type HTMLDiv interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDiv

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDiv

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDiv

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDiv

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDiv

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDiv

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDiv

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDiv

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDiv

    // ID specifies a unique id for an element.
    ID(v string) HTMLDiv

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDiv

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDiv

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDiv

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDiv

    // Title specifies extra information about an element.
    Title(v string) HTMLDiv

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDiv

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDiv

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDiv

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDiv

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDiv

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDiv

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDiv

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDiv

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDiv

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDiv

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDiv

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDiv

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDiv

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDiv

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDiv

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDiv

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDiv

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDiv

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDiv

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDiv

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDiv

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDiv

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDiv

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDiv

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDiv

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDiv

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDiv

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDiv

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDiv

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDiv

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDiv

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDiv
    // contains filtered or unexported methods
}

HTMLDiv is the interface that describes a <div> HTML element.

func Div Uses

func Div() HTMLDiv

Div returns an HTML element that defines a section in a document.

type HTMLDl Uses

type HTMLDl interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDl

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDl

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDl

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDl

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDl

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDl

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDl

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDl

    // ID specifies a unique id for an element.
    ID(v string) HTMLDl

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDl

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDl

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDl

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDl

    // Title specifies extra information about an element.
    Title(v string) HTMLDl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDl

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDl

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDl

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDl

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDl

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDl

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDl

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDl

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDl

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDl

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDl

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDl

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDl

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDl

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDl

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDl

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDl
    // contains filtered or unexported methods
}

HTMLDl is the interface that describes a <dl> HTML element.

func Dl Uses

func Dl() HTMLDl

Dl returns an HTML element that defines a description list.

type HTMLDt Uses

type HTMLDt interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLDt

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDt

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDt

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDt

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDt

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDt

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDt

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDt

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDt

    // ID specifies a unique id for an element.
    ID(v string) HTMLDt

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDt

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDt

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDt

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDt

    // Title specifies extra information about an element.
    Title(v string) HTMLDt

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDt

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDt

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDt

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDt

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDt

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDt

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDt

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDt

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDt

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDt

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDt

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDt

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDt

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDt

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDt

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDt

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDt

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDt

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDt

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDt

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDt

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDt

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDt

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDt

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDt

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDt

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDt

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDt

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDt

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDt

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDt

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDt
    // contains filtered or unexported methods
}

HTMLDt is the interface that describes a <dt> HTML element.

func Dt Uses

func Dt() HTMLDt

Dt returns an HTML element that defines a term/name in a description list.

type HTMLEm Uses

type HTMLEm interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLEm

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLEm

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLEm

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLEm

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLEm

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLEm

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLEm

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLEm

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLEm

    // ID specifies a unique id for an element.
    ID(v string) HTMLEm

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLEm

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLEm

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLEm

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLEm

    // Title specifies extra information about an element.
    Title(v string) HTMLEm

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLEm

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLEm

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLEm

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLEm

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLEm

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLEm

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLEm

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLEm

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLEm

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLEm

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLEm

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLEm

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLEm

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLEm

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLEm

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLEm

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLEm

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLEm

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLEm

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLEm

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLEm

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLEm

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLEm

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLEm

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLEm

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLEm

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLEm

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLEm

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLEm

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLEm

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLEm

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLEm
    // contains filtered or unexported methods
}

HTMLEm is the interface that describes a <em> HTML element.

func Em Uses

func Em() HTMLEm

Em returns an HTML element that defines emphasized text.

type HTMLEmbed Uses

type HTMLEmbed interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLEmbed

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLEmbed

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLEmbed

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLEmbed

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLEmbed

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLEmbed

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLEmbed

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLEmbed

    // ID specifies a unique id for an element.
    ID(v string) HTMLEmbed

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLEmbed

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLEmbed

    // Src specifies the URL of the media file.
    Src(v string) HTMLEmbed

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLEmbed

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLEmbed

    // Title specifies extra information about an element.
    Title(v string) HTMLEmbed

    // Type specifies the type of element.
    Type(v string) HTMLEmbed

    // Width specifies the width of the element.
    Width(v int) HTMLEmbed

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLEmbed

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLEmbed

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLEmbed

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLEmbed

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLEmbed

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLEmbed

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLEmbed

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLEmbed

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLEmbed

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLEmbed

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLEmbed

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLEmbed

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLEmbed

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLEmbed

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLEmbed

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLEmbed

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLEmbed

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLEmbed

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLEmbed

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLEmbed

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLEmbed

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLEmbed

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLEmbed

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLEmbed

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLEmbed

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLEmbed

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLEmbed

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLEmbed

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLEmbed

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLEmbed

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLEmbed

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLEmbed

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLEmbed

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLEmbed

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLEmbed

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLEmbed

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLEmbed

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLEmbed

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLEmbed

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLEmbed

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLEmbed

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLEmbed

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLEmbed

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLEmbed

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLEmbed

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLEmbed

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLEmbed

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLEmbed

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLEmbed

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLEmbed

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLEmbed

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLEmbed

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLEmbed

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLEmbed

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLEmbed
    // contains filtered or unexported methods
}

HTMLEmbed is the interface that describes a <embed> HTML element.

func Embed Uses

func Embed() HTMLEmbed

Embed returns an HTML element that defines a container for an external (non-HTML) application.

type HTMLFieldSet Uses

type HTMLFieldSet interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLFieldSet

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFieldSet

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFieldSet

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFieldSet

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFieldSet

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFieldSet

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFieldSet

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLFieldSet

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFieldSet

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLFieldSet

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFieldSet

    // ID specifies a unique id for an element.
    ID(v string) HTMLFieldSet

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFieldSet

    // Name specifies the name of the element.
    Name(v string) HTMLFieldSet

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFieldSet

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFieldSet

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFieldSet

    // Title specifies extra information about an element.
    Title(v string) HTMLFieldSet

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFieldSet

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFieldSet

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFieldSet

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFieldSet

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFieldSet

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFieldSet

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFieldSet

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFieldSet

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFieldSet

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFieldSet

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFieldSet

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFieldSet

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFieldSet

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFieldSet

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFieldSet

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFieldSet

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFieldSet

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFieldSet

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFieldSet

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFieldSet

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFieldSet

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFieldSet

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFieldSet

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFieldSet

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFieldSet

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFieldSet

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFieldSet

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFieldSet

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFieldSet

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFieldSet

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFieldSet

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFieldSet
    // contains filtered or unexported methods
}

HTMLFieldSet is the interface that describes a <fieldset> HTML element.

func FieldSet Uses

func FieldSet() HTMLFieldSet

FieldSet returns an HTML element that groups related elements in a form.

type HTMLFigCaption Uses

type HTMLFigCaption interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLFigCaption

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFigCaption

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFigCaption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFigCaption

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFigCaption

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFigCaption

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFigCaption

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFigCaption

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFigCaption

    // ID specifies a unique id for an element.
    ID(v string) HTMLFigCaption

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFigCaption

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFigCaption

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFigCaption

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFigCaption

    // Title specifies extra information about an element.
    Title(v string) HTMLFigCaption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFigCaption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFigCaption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFigCaption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFigCaption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFigCaption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFigCaption

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFigCaption

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFigCaption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFigCaption

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFigCaption

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFigCaption

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFigCaption

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFigCaption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFigCaption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFigCaption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFigCaption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFigCaption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFigCaption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFigCaption

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFigCaption

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFigCaption

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFigCaption

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFigCaption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFigCaption

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFigCaption

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFigCaption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFigCaption

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFigCaption

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFigCaption

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFigCaption

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFigCaption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFigCaption
    // contains filtered or unexported methods
}

HTMLFigCaption is the interface that describes a <figcaption> HTML element.

func FigCaption Uses

func FigCaption() HTMLFigCaption

FigCaption returns an HTML element that defines a caption for a figure element.

type HTMLFigure Uses

type HTMLFigure interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLFigure

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFigure

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFigure

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFigure

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFigure

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFigure

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFigure

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFigure

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFigure

    // ID specifies a unique id for an element.
    ID(v string) HTMLFigure

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFigure

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFigure

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFigure

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFigure

    // Title specifies extra information about an element.
    Title(v string) HTMLFigure

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFigure

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFigure

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFigure

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFigure

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFigure

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFigure

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFigure

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFigure

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFigure

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFigure

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFigure

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFigure

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFigure

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFigure

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFigure

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFigure

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFigure

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFigure

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFigure

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFigure

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFigure

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFigure

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFigure

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFigure

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFigure

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFigure

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFigure

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFigure

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFigure

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFigure

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFigure

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFigure
    // contains filtered or unexported methods
}

HTMLFigure is the interface that describes a <figure> HTML element.

func Figure Uses

func Figure() HTMLFigure

Figure returns an HTML element that specifies self-contained content.

type HTMLFooter Uses

type HTMLFooter interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLFooter

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFooter

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFooter

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFooter

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFooter

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFooter

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFooter

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFooter

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFooter

    // ID specifies a unique id for an element.
    ID(v string) HTMLFooter

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFooter

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFooter

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFooter

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFooter

    // Title specifies extra information about an element.
    Title(v string) HTMLFooter

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFooter

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFooter

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFooter

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFooter

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFooter

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFooter

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFooter

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFooter

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFooter

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFooter

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFooter

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFooter

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFooter

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFooter

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFooter

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFooter

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFooter

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFooter

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFooter

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFooter

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFooter

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFooter

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFooter

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFooter

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFooter

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFooter

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFooter

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFooter

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFooter

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFooter

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFooter

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFooter
    // contains filtered or unexported methods
}

HTMLFooter is the interface that describes a <footer> HTML element.

func Footer() HTMLFooter

Footer returns an HTML element that defines a footer for a document or section.

type HTMLForm Uses

type HTMLForm interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLForm

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLForm

    // AcceptCharset specifies the character encodings that are to be used for the form submission.
    AcceptCharset(v string) HTMLForm

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLForm

    // Action specifies where to send the form-data when a form is submitted.
    Action(v string) HTMLForm

    // AutoComplete specifies whether the element should have autocomplete enabled.
    AutoComplete(v bool) HTMLForm

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLForm

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLForm

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLForm

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLForm

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLForm

    // EncType specifies how the form-data should be encoded when submitting it to the server (only for post method).
    EncType(v string) HTMLForm

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLForm

    // ID specifies a unique id for an element.
    ID(v string) HTMLForm

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLForm

    // Method specifies the HTTP method to use when sending form-data.
    Method(v string) HTMLForm

    // Name specifies the name of the element.
    Name(v string) HTMLForm

    // NoValidate specifies that the form should not be validated when submitted.
    NoValidate(v bool) HTMLForm

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLForm

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLForm

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLForm

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLForm

    // Title specifies extra information about an element.
    Title(v string) HTMLForm

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLForm

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLForm

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLForm

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLForm

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLForm

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLForm

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLForm

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLForm

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLForm

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLForm

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLForm

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLForm

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLForm

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLForm

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLForm

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLForm

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLForm

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLForm

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLForm

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLForm

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLForm

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLForm

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLForm

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLForm

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLForm

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLForm

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLForm

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLForm

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLForm

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLForm

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLForm

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLForm
    // contains filtered or unexported methods
}

HTMLForm is the interface that describes a <form> HTML element.

func Form Uses

func Form() HTMLForm

Form returns an HTML element that defines an HTML form for user input.

type HTMLH1 Uses

type HTMLH1 interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLH1

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH1

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH1

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH1

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH1

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH1

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH1

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH1

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH1

    // ID specifies a unique id for an element.
    ID(v string) HTMLH1

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH1

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH1

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH1

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH1

    // Title specifies extra information about an element.
    Title(v string) HTMLH1

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH1

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH1

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH1

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH1

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH1

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH1

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH1

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH1

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH1

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH1

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH1

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH1

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH1

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH1

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH1

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH1

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH1

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH1

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH1

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH1

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH1

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH1

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH1

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH1

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH1

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH1

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH1

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH1

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH1

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH1

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH1

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH1
    // contains filtered or unexported methods
}

HTMLH1 is the interface that describes a <h1> HTML element.

func H1 Uses

func H1() HTMLH1

H1 returns an HTML element that defines HTML heading.

type HTMLH2 Uses

type HTMLH2 interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLH2

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH2

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH2

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH2

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH2

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH2

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH2

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH2

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH2

    // ID specifies a unique id for an element.
    ID(v string) HTMLH2

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH2

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH2

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH2

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH2

    // Title specifies extra information about an element.
    Title(v string) HTMLH2

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH2

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH2

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH2

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH2

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH2

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH2

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH2

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH2

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH2

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH2

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH2

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH2

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH2

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH2

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH2

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH2

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH2

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH2

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH2

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH2

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH2

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH2

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH2

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH2

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH2

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH2

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH2

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH2

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH2

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH2

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH2

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH2
    // contains filtered or unexported methods
}

HTMLH2 is the interface that describes a <h2> HTML element.

func H2 Uses

func H2() HTMLH2

H2 returns an HTML element that defines HTML heading.

type HTMLH3 Uses

type HTMLH3 interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLH3

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH3

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH3

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH3

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH3

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH3

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH3

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH3

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH3

    // ID specifies a unique id for an element.
    ID(v string) HTMLH3

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH3

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH3

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH3

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH3

    // Title specifies extra information about an element.
    Title(v string) HTMLH3

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH3

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH3

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH3

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH3

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH3

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH3

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH3

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH3

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH3

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH3

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH3

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH3

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH3

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH3

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH3

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH3

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH3

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH3

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH3

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH3

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH3

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH3

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH3

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH3

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH3

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH3

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH3

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH3

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH3

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH3

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH3

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH3
    // contains filtered or unexported methods
}

HTMLH3 is the interface that describes a <h3> HTML element.

func H3 Uses

func H3() HTMLH3

H3 returns an HTML element that defines HTML heading.

type HTMLH4 Uses

type HTMLH4 interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLH4

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH4

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH4

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH4

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH4

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH4

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH4

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH4

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH4

    // ID specifies a unique id for an element.
    ID(v string) HTMLH4

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH4

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH4

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH4

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH4

    // Title specifies extra information about an element.
    Title(v string) HTMLH4

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH4

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH4

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH4

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH4

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH4

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH4

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH4

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH4

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH4

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH4

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH4

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH4

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH4

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH4

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH4

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH4

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH4

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH4

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH4

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH4

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH4

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH4

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH4

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH4

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH4

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH4

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH4

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH4

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH4

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH4

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH4

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH4
    // contains filtered or unexported methods
}

HTMLH4 is the interface that describes a <h4> HTML element.

func H4 Uses

func H4() HTMLH4

H4 returns an HTML element that defines HTML heading.

type HTMLH5 Uses

type HTMLH5 interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLH5

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH5

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH5

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH5

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH5

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH5

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH5

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH5

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH5

    // ID specifies a unique id for an element.
    ID(v string) HTMLH5

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH5

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH5

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH5

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH5

    // Title specifies extra information about an element.
    Title(v string) HTMLH5

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH5

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH5

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH5

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH5

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH5

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH5

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH5

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH5

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH5

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH5

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH5

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH5

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH5

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH5

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH5

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH5

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH5

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH5

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH5

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH5

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH5

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH5

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH5

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH5

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH5

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH5

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH5

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH5

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH5

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH5

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH5

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH5
    // contains filtered or unexported methods
}

HTMLH5 is the interface that describes a <h5> HTML element.

func H5 Uses

func H5() HTMLH5

H5 returns an HTML element that defines HTML heading.

type HTMLH6 Uses

type HTMLH6 interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLH6

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH6

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH6

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH6

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH6

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH6

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH6

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH6

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH6

    // ID specifies a unique id for an element.
    ID(v string) HTMLH6

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH6

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH6

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH6

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH6

    // Title specifies extra information about an element.
    Title(v string) HTMLH6

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH6

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH6

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH6

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH6

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH6

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH6

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH6

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH6

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH6

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH6

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH6

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH6

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH6

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH6

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH6

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH6

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH6

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH6

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH6

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH6

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH6

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH6

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH6

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH6

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH6

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH6

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH6

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH6

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH6

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH6

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH6

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH6
    // contains filtered or unexported methods
}

HTMLH6 is the interface that describes a <h6> HTML element.

func H6 Uses

func H6() HTMLH6

H6 returns an HTML element that defines HTML heading.

type HTMLHead Uses

type HTMLHead interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLHead

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLHead

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHead

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHead

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHead

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHead

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHead

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHead

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHead

    // ID specifies a unique id for an element.
    ID(v string) HTMLHead

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHead

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHead

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHead

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHead

    // Title specifies extra information about an element.
    Title(v string) HTMLHead
    // contains filtered or unexported methods
}

HTMLHead is the interface that describes a <head> HTML element.

func Head() HTMLHead

Head returns an HTML element that defines information about the document.

type HTMLHeader Uses

type HTMLHeader interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLHeader

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLHeader

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHeader

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHeader

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHeader

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHeader

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHeader

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHeader

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHeader

    // ID specifies a unique id for an element.
    ID(v string) HTMLHeader

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHeader

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHeader

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHeader

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHeader

    // Title specifies extra information about an element.
    Title(v string) HTMLHeader

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLHeader

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLHeader

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLHeader

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLHeader

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLHeader

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLHeader

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLHeader

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLHeader

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLHeader

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLHeader

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLHeader

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLHeader

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLHeader

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLHeader

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLHeader

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLHeader

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLHeader

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLHeader

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLHeader

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLHeader

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLHeader

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLHeader

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLHeader

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLHeader

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLHeader

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLHeader

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLHeader

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLHeader

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLHeader

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLHeader

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLHeader

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLHeader
    // contains filtered or unexported methods
}

HTMLHeader is the interface that describes a <header> HTML element.

func Header() HTMLHeader

Header returns an HTML element that defines a header for a document or section.

type HTMLHr Uses

type HTMLHr interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHr

    // ID specifies a unique id for an element.
    ID(v string) HTMLHr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHr

    // Title specifies extra information about an element.
    Title(v string) HTMLHr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLHr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLHr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLHr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLHr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLHr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLHr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLHr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLHr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLHr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLHr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLHr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLHr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLHr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLHr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLHr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLHr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLHr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLHr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLHr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLHr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLHr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLHr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLHr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLHr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLHr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLHr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLHr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLHr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLHr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLHr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLHr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLHr
    // contains filtered or unexported methods
}

HTMLHr is the interface that describes a <hr> HTML element.

func Hr Uses

func Hr() HTMLHr

Hr returns an HTML element that defines a thematic change in the content.

type HTMLHtml Uses

type HTMLHtml interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLHtml

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLHtml

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHtml

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHtml

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHtml

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHtml

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHtml

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHtml

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHtml

    // ID specifies a unique id for an element.
    ID(v string) HTMLHtml

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHtml

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHtml

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHtml

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHtml

    // Title specifies extra information about an element.
    Title(v string) HTMLHtml
    // contains filtered or unexported methods
}

HTMLHtml is the interface that describes a <html> HTML element.

func Html Uses

func Html() HTMLHtml

Html returns an HTML element that defines the root of an HTML document.

type HTMLI Uses

type HTMLI interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLI

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLI

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLI

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLI

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLI

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLI

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLI

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLI

    // ID specifies a unique id for an element.
    ID(v string) HTMLI

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLI

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLI

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLI

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLI

    // Title specifies extra information about an element.
    Title(v string) HTMLI

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLI

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLI

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLI

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLI

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLI

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLI

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLI

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLI

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLI

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLI

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLI

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLI

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLI

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLI

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLI

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLI

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLI

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLI

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLI

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLI

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLI

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLI

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLI

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLI

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLI

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLI

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLI

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLI

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLI

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLI

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLI

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLI
    // contains filtered or unexported methods
}

HTMLI is the interface that describes a <i> HTML element.

func I Uses

func I() HTMLI

I returns an HTML element that defines a part of text in an alternate voice or mood.

type HTMLIFrame Uses

type HTMLIFrame interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLIFrame

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLIFrame

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLIFrame

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLIFrame

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLIFrame

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLIFrame

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLIFrame

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLIFrame

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLIFrame

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLIFrame

    // ID specifies a unique id for an element.
    ID(v string) HTMLIFrame

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLIFrame

    // Name specifies the name of the element.
    Name(v string) HTMLIFrame

    // Sandbox enables an extra set of restrictions for the content in an iframe.
    Sandbox(v bool) HTMLIFrame

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLIFrame

    // Src specifies the URL of the media file.
    Src(v string) HTMLIFrame

    // SrcDoc specifies the HTML content of the page to show in the iframe.
    SrcDoc(v string) HTMLIFrame

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLIFrame

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLIFrame

    // Title specifies extra information about an element.
    Title(v string) HTMLIFrame

    // Width specifies the width of the element.
    Width(v int) HTMLIFrame

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLIFrame

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLIFrame

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLIFrame

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLIFrame

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLIFrame

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLIFrame

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLIFrame

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLIFrame

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLIFrame

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLIFrame

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLIFrame

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLIFrame

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLIFrame

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLIFrame

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLIFrame

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLIFrame

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLIFrame

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLIFrame

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLIFrame

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLIFrame

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLIFrame

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLIFrame

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLIFrame

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLIFrame

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLIFrame

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLIFrame

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLIFrame

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLIFrame

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLIFrame

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLIFrame

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLIFrame

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLIFrame

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLIFrame
    // contains filtered or unexported methods
}

HTMLIFrame is the interface that describes a <iframe> HTML element.

func IFrame Uses

func IFrame() HTMLIFrame

IFrame returns an HTML element that defines an inline frame.

type HTMLImg Uses

type HTMLImg interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLImg

    // Alt specifies an alternate text when the original element fails to display.
    Alt(v string) HTMLImg

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLImg

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLImg

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLImg

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLImg

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLImg

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLImg

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLImg

    // ID specifies a unique id for an element.
    ID(v string) HTMLImg

    // IsMap specifies an image as a server-side image-map.
    IsMap(v bool) HTMLImg

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLImg

    // Sizes specifies the size of the linked resource.
    Sizes(v string) HTMLImg

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLImg

    // Src specifies the URL of the media file.
    Src(v string) HTMLImg

    // SrcSet specifies the URL of the image to use in different situations.
    SrcSet(v string) HTMLImg

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLImg

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLImg

    // Title specifies extra information about an element.
    Title(v string) HTMLImg

    // UseMap specifies an image as a client-side image-map.
    UseMap(v string) HTMLImg

    // Width specifies the width of the element.
    Width(v int) HTMLImg

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLImg

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLImg

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLImg

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLImg

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLImg

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLImg

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLImg

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLImg

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLImg

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLImg

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLImg

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLImg

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLImg

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLImg

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLImg

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLImg

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLImg

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLImg

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLImg

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLImg

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLImg

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLImg

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLImg

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLImg

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLImg

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLImg

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLImg

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLImg

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLImg

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLImg

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLImg

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLImg

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLImg

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLImg

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLImg

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLImg

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLImg

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLImg

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLImg

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLImg

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLImg

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLImg

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLImg

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLImg

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLImg

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLImg

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLImg

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLImg

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLImg

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLImg

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLImg

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLImg

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLImg

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLImg

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLImg

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLImg
    // contains filtered or unexported methods
}

HTMLImg is the interface that describes a <img> HTML element.

func Img Uses

func Img() HTMLImg

Img returns an HTML element that defines an image.

type HTMLInput Uses

type HTMLInput interface {

    // Accept specifies the types of files that the server accepts (only for file type).
    Accept(v string) HTMLInput

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLInput

    // Alt specifies an alternate text when the original element fails to display.
    Alt(v string) HTMLInput

    // AutoComplete specifies whether the element should have autocomplete enabled.
    AutoComplete(v bool) HTMLInput

    // AutoFocus specifies that the element should automatically get focus when the page loads.
    AutoFocus(v bool) HTMLInput

    // Checked specifies that an input element should be pre-selected when the page loads (for checkbox or radio types).
    Checked(v bool) HTMLInput

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLInput

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLInput

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLInput

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLInput

    // DirName specifies that the text direction will be submitted.
    DirName(v string) HTMLInput

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLInput

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLInput

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLInput

    // FormAction specifies where to send the form-data when a form is submitted. Only for submit type.
    FormAction(v string) HTMLInput

    // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type.
    FormEncType(v string) HTMLInput

    // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type.
    FormMethod(v string) HTMLInput

    // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type.
    FormNoValidate(v bool) HTMLInput

    // FormTarget specifies where to display the response after submitting the form. Only for submit type.
    FormTarget(v string) HTMLInput

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLInput

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLInput

    // ID specifies a unique id for an element.
    ID(v string) HTMLInput

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLInput

    // List refers to a datalist element that contains pre-defined options for an input element.
    List(v string) HTMLInput

    // Max Specifies the maximum value.
    Max(v string) HTMLInput

    // MaxLength specifies the maximum number of characters allowed in an element.
    MaxLength(v int) HTMLInput

    // Min specifies a minimum value.
    Min(v string) HTMLInput

    // Multiple specifies that a user can enter more than one value.
    Multiple(v bool) HTMLInput

    // Name specifies the name of the element.
    Name(v string) HTMLInput

    // Pattern specifies a regular expression that an input element's value is checked against.
    Pattern(v string) HTMLInput

    // Placeholder specifies a short hint that describes the expected value of the element.
    Placeholder(v string) HTMLInput

    // ReadOnly specifies that the element is read-only.
    ReadOnly(v bool) HTMLInput

    // Required specifies that the element must be filled out before submitting the form.
    Required(v bool) HTMLInput

    // Size specifies the width.
    Size(v int) HTMLInput

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLInput

    // Src specifies the URL of the media file.
    Src(v string) HTMLInput

    // Step specifies the legal number intervals for an input field.
    Step(v int) HTMLInput

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLInput

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLInput

    // Title specifies extra information about an element.
    Title(v string) HTMLInput

    // Type specifies the type of element.
    Type(v string) HTMLInput

    // Value specifies the value of the element.
    Value(v interface{}) HTMLInput

    // Width specifies the width of the element.
    Width(v int) HTMLInput

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLInput

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLInput

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLInput

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLInput

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLInput

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLInput

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLInput

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLInput

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLInput

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLInput

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLInput

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLInput

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLInput

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLInput

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLInput

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLInput

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLInput

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLInput

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLInput

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLInput

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLInput

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLInput

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLInput

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLInput

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLInput

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLInput

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLInput

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLInput

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLInput

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLInput

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLInput

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLInput

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLInput
    // contains filtered or unexported methods
}

HTMLInput is the interface that describes a <input> HTML element.

func Input Uses

func Input() HTMLInput

Input returns an HTML element that defines an input control.

type HTMLIns Uses

type HTMLIns interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLIns

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLIns

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLIns

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLIns

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLIns

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLIns

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLIns

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLIns

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLIns

    // ID specifies a unique id for an element.
    ID(v string) HTMLIns

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLIns

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLIns

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLIns

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLIns

    // Title specifies extra information about an element.
    Title(v string) HTMLIns

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLIns

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLIns

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLIns

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLIns

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLIns

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLIns

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLIns

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLIns

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLIns

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLIns

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLIns

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLIns

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLIns

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLIns

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLIns

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLIns

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLIns

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLIns

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLIns

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLIns

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLIns

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLIns

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLIns

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLIns

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLIns

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLIns

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLIns

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLIns

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLIns

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLIns

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLIns

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLIns
    // contains filtered or unexported methods
}

HTMLIns is the interface that describes a <ins> HTML element.

func Ins Uses

func Ins() HTMLIns

Ins returns an HTML element that defines a text that has been inserted into a document.

type HTMLKbd Uses

type HTMLKbd interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLKbd

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLKbd

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLKbd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLKbd

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLKbd

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLKbd

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLKbd

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLKbd

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLKbd

    // ID specifies a unique id for an element.
    ID(v string) HTMLKbd

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLKbd

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLKbd

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLKbd

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLKbd

    // Title specifies extra information about an element.
    Title(v string) HTMLKbd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLKbd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLKbd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLKbd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLKbd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLKbd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLKbd

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLKbd

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLKbd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLKbd

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLKbd

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLKbd

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLKbd

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLKbd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLKbd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLKbd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLKbd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLKbd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLKbd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLKbd

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLKbd

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLKbd

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLKbd

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLKbd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLKbd

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLKbd

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLKbd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLKbd

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLKbd

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLKbd

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLKbd

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLKbd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLKbd
    // contains filtered or unexported methods
}

HTMLKbd is the interface that describes a <kbd> HTML element.

func Kbd Uses

func Kbd() HTMLKbd

Kbd returns an HTML element that defines keyboard input.

type HTMLLabel Uses

type HTMLLabel interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLLabel

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLLabel

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLabel

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLabel

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLabel

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLabel

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLabel

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLabel

    // For specifies which form element(s) a label/calculation is bound to.
    For(v string) HTMLLabel

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLLabel

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLabel

    // ID specifies a unique id for an element.
    ID(v string) HTMLLabel

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLabel

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLabel

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLabel

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLabel

    // Title specifies extra information about an element.
    Title(v string) HTMLLabel

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLabel

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLabel

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLabel

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLabel

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLabel

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLabel

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLabel

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLabel

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLabel

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLabel

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLabel

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLabel

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLabel

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLabel

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLabel

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLabel

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLabel

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLabel

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLabel

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLabel

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLabel

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLabel

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLabel

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLabel

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLabel

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLabel

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLabel

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLabel

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLabel

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLabel

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLabel

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLabel
    // contains filtered or unexported methods
}

HTMLLabel is the interface that describes a <label> HTML element.

func Label Uses

func Label() HTMLLabel

Label returns an HTML element that defines a label for an input element.

type HTMLLegends Uses

type HTMLLegends interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLLegends

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLLegends

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLegends

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLegends

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLegends

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLegends

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLegends

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLegends

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLegends

    // ID specifies a unique id for an element.
    ID(v string) HTMLLegends

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLegends

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLegends

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLegends

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLegends

    // Title specifies extra information about an element.
    Title(v string) HTMLLegends

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLegends

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLegends

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLegends

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLegends

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLegends

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLegends

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLegends

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLegends

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLegends

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLegends

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLegends

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLegends

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLegends

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLegends

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLegends

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLegends

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLegends

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLegends

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLegends

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLegends

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLegends

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLegends

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLegends

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLegends

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLegends

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLegends

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLegends

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLegends

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLegends

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLegends

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLegends

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLegends
    // contains filtered or unexported methods
}

HTMLLegends is the interface that describes a <legends> HTML element.

func Legends Uses

func Legends() HTMLLegends

Legends returns an HTML element that defines a caption for a fieldset element.

type HTMLLi Uses

type HTMLLi interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLLi

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLLi

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLi

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLi

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLi

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLi

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLi

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLi

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLi

    // ID specifies a unique id for an element.
    ID(v string) HTMLLi

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLi

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLi

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLi

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLi

    // Title specifies extra information about an element.
    Title(v string) HTMLLi

    // Value specifies the value of the element.
    Value(v interface{}) HTMLLi

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLi

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLi

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLi

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLi

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLi

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLi

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLi

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLi

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLi

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLi

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLi

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLi

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLi

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLi

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLi

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLi

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLi

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLi

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLi

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLi

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLi

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLi

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLi

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLi

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLi

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLi

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLi

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLi

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLi

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLi

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLi

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLi
    // contains filtered or unexported methods
}

HTMLLi is the interface that describes a <li> HTML element.

func Li Uses

func Li() HTMLLi

Li returns an HTML element that defines a list item.

type HTMLLink interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLink

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLink

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLink

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLink

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLink

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLink

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLink

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLLink

    // HrefLang specifies the language of the linked document.
    HrefLang(v string) HTMLLink

    // ID specifies a unique id for an element.
    ID(v string) HTMLLink

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLink

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLLink

    // Rel specifies the relationship between the current document and the linked document.
    Rel(v string) HTMLLink

    // Sizes specifies the size of the linked resource.
    Sizes(v string) HTMLLink

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLink

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLink

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLink

    // Title specifies extra information about an element.
    Title(v string) HTMLLink

    // Type specifies the type of element.
    Type(v string) HTMLLink

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLink

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLink

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLink

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLink

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLink

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLink

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLink

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLink

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLink

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLink

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLink

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLink

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLink

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLink

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLink

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLink

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLink

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLink

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLink

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLink

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLLink

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLink

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLink

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLink

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLink

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLink

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLink

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLink

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLink

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLink

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLink

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLink

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLink
    // contains filtered or unexported methods
}

HTMLLink is the interface that describes a <link> HTML element.

func Link() HTMLLink

Link returns an HTML element that defines the relationship between a document and an external resource (most used to link to style sheets).

type HTMLMain Uses

type HTMLMain interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLMain

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMain

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMain

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMain

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMain

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMain

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMain

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMain

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMain

    // ID specifies a unique id for an element.
    ID(v string) HTMLMain

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMain

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMain

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMain

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMain

    // Title specifies extra information about an element.
    Title(v string) HTMLMain

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMain

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMain

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMain

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMain

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMain

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMain

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMain

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMain

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMain

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMain

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMain

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMain

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMain

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMain

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMain

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMain

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMain

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMain

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMain

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMain

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMain

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMain

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMain

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMain

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMain

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMain

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMain

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMain

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMain

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMain

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMain

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMain
    // contains filtered or unexported methods
}

HTMLMain is the interface that describes a <main> HTML element.

func Main Uses

func Main() HTMLMain

Main returns an HTML element that specifies the main content of a document.

type HTMLMap Uses

type HTMLMap interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLMap

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMap

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMap

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMap

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMap

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMap

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMap

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMap

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMap

    // ID specifies a unique id for an element.
    ID(v string) HTMLMap

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMap

    // Name specifies the name of the element.
    Name(v string) HTMLMap

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMap

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMap

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMap

    // Title specifies extra information about an element.
    Title(v string) HTMLMap

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMap

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMap

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMap

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMap

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMap

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMap

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMap

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMap

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMap

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMap

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMap

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMap

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMap

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMap

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMap

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMap

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMap

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMap

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMap

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMap

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMap

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMap

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMap

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMap

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMap

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMap

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMap

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMap

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMap

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMap

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMap

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMap
    // contains filtered or unexported methods
}

HTMLMap is the interface that describes a <map> HTML element.

func Map Uses

func Map() HTMLMap

Map returns an HTML element that defines a client-side image-map.

type HTMLMark Uses

type HTMLMark interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLMark

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMark

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMark

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMark

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMark

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMark

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMark

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMark

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMark

    // ID specifies a unique id for an element.
    ID(v string) HTMLMark

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMark

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMark

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMark

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMark

    // Title specifies extra information about an element.
    Title(v string) HTMLMark

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMark

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMark

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMark

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMark

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMark

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMark

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMark

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMark

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMark

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMark

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMark

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMark

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMark

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMark

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMark

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMark

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMark

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMark

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMark

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMark

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMark

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMark

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMark

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMark

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMark

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMark

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMark

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMark

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMark

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMark

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMark

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMark
    // contains filtered or unexported methods
}

HTMLMark is the interface that describes a <mark> HTML element.

func Mark Uses

func Mark() HTMLMark

Mark returns an HTML element that defines marked/highlighted text.

type HTMLMeta Uses

type HTMLMeta interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMeta

    // Charset specifies the character encoding.
    Charset(v string) HTMLMeta

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMeta

    // Content gives the value associated with the http-equiv or name attribute.
    Content(v string) HTMLMeta

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMeta

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMeta

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMeta

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMeta

    // HTTPEquiv provides an HTTP header for the information/value of the content attribute.
    HTTPEquiv(v string) HTMLMeta

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMeta

    // ID specifies a unique id for an element.
    ID(v string) HTMLMeta

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMeta

    // Name specifies the name of the element.
    Name(v string) HTMLMeta

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMeta

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMeta

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMeta

    // Title specifies extra information about an element.
    Title(v string) HTMLMeta
    // contains filtered or unexported methods
}

HTMLMeta is the interface that describes a <meta> HTML element.

func Meta Uses

func Meta() HTMLMeta

Meta returns an HTML element that .

type HTMLMeter Uses

type HTMLMeter interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLMeter

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMeter

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMeter

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMeter

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMeter

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMeter

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMeter

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMeter

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLMeter

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMeter

    // High specifies the range that is considered to be a high value.
    High(v float64) HTMLMeter

    // ID specifies a unique id for an element.
    ID(v string) HTMLMeter

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMeter

    // Low specifies the range that is considered to be a low value.
    Low(v float64) HTMLMeter

    // Max Specifies the maximum value.
    Max(v string) HTMLMeter

    // Min specifies a minimum value.
    Min(v string) HTMLMeter

    // Optimum specifies what value is the optimal value for the gauge.
    Optimum(v float64) HTMLMeter

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMeter

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMeter

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMeter

    // Title specifies extra information about an element.
    Title(v string) HTMLMeter

    // Value specifies the value of the element.
    Value(v interface{}) HTMLMeter

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMeter

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMeter

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMeter

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMeter

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMeter

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMeter

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMeter

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMeter

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMeter

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMeter

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMeter

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMeter

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMeter

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMeter

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMeter

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMeter

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMeter

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMeter

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMeter

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMeter

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMeter

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMeter

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMeter

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMeter

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMeter

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMeter

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMeter

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMeter

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMeter

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMeter

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMeter

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMeter
    // contains filtered or unexported methods
}

HTMLMeter is the interface that describes a <meter> HTML element.

func Meter Uses

func Meter() HTMLMeter

Meter returns an HTML element that defines a scalar measurement within a known range (a gauge).

type HTMLNav Uses

type HTMLNav interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLNav

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLNav

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLNav

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLNav

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLNav

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLNav

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLNav

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLNav

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLNav

    // ID specifies a unique id for an element.
    ID(v string) HTMLNav

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLNav

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLNav

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLNav

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLNav

    // Title specifies extra information about an element.
    Title(v string) HTMLNav

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLNav

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLNav

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLNav

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLNav

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLNav

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLNav

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLNav

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLNav

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLNav

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLNav

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLNav

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLNav

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLNav

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLNav

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLNav

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLNav

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLNav

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLNav

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLNav

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLNav

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLNav

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLNav

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLNav

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLNav

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLNav

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLNav

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLNav

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLNav

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLNav

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLNav

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLNav

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLNav
    // contains filtered or unexported methods
}

HTMLNav is the interface that describes a <nav> HTML element.

func Nav() HTMLNav

Nav returns an HTML element that defines navigation links.

type HTMLNoScript Uses

type HTMLNoScript interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLNoScript

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLNoScript

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLNoScript

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLNoScript

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLNoScript

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLNoScript

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLNoScript

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLNoScript

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLNoScript

    // ID specifies a unique id for an element.
    ID(v string) HTMLNoScript

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLNoScript

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLNoScript

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLNoScript

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLNoScript

    // Title specifies extra information about an element.
    Title(v string) HTMLNoScript
    // contains filtered or unexported methods
}

HTMLNoScript is the interface that describes a <noscript> HTML element.

func NoScript Uses

func NoScript() HTMLNoScript

NoScript returns an HTML element that defines an alternate content for users that do not support client-side scripts.

type HTMLObject Uses

type HTMLObject interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLObject

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLObject

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLObject

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLObject

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLObject

    // Data specifies the URL of the resource to be used by the object.
    Data(v string) HTMLObject

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLObject

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLObject

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLObject

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLObject

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLObject

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLObject

    // ID specifies a unique id for an element.
    ID(v string) HTMLObject

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLObject

    // Name specifies the name of the element.
    Name(v string) HTMLObject

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLObject

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLObject

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLObject

    // Title specifies extra information about an element.
    Title(v string) HTMLObject

    // Type specifies the type of element.
    Type(v string) HTMLObject

    // UseMap specifies an image as a client-side image-map.
    UseMap(v string) HTMLObject

    // Width specifies the width of the element.
    Width(v int) HTMLObject

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLObject

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLObject

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLObject

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLObject

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLObject

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLObject

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLObject

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLObject

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLObject

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLObject

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLObject

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLObject

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLObject

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLObject

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLObject

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLObject

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLObject

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLObject

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLObject

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLObject

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLObject

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLObject

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLObject

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLObject

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLObject

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLObject

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLObject

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLObject

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLObject

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLObject

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLObject

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLObject

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLObject

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLObject

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLObject

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLObject

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLObject

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLObject

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLObject

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLObject

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLObject

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLObject

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLObject

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLObject

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLObject

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLObject

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLObject

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLObject

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLObject

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLObject

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLObject

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLObject

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLObject

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLObject

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLObject
    // contains filtered or unexported methods
}

HTMLObject is the interface that describes a <object> HTML element.

func Object Uses

func Object() HTMLObject

Object returns an HTML element that defines an embedded object.

type HTMLOl Uses

type HTMLOl interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLOl

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOl

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOl

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOl

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOl

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOl

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOl

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOl

    // ID specifies a unique id for an element.
    ID(v string) HTMLOl

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOl

    // Reversed specifies that the list order should be descending (9,8,7...).
    Reversed(v bool) HTMLOl

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOl

    // Start specifies the start value of the ordered list.
    Start(v int) HTMLOl

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOl

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOl

    // Title specifies extra information about an element.
    Title(v string) HTMLOl

    // Type specifies the type of element.
    Type(v string) HTMLOl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOl

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOl

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOl

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOl

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOl

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOl

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOl

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOl

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOl

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOl

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOl

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOl

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOl

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOl

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOl

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOl

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOl
    // contains filtered or unexported methods
}

HTMLOl is the interface that describes a <ol> HTML element.

func Ol Uses

func Ol() HTMLOl

Ol returns an HTML element that defines an ordered list.

type HTMLOptGroup Uses

type HTMLOptGroup interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLOptGroup

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOptGroup

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOptGroup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOptGroup

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOptGroup

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOptGroup

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOptGroup

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLOptGroup

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOptGroup

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOptGroup

    // ID specifies a unique id for an element.
    ID(v string) HTMLOptGroup

    // Label specifies a shorter label for the option.
    Label(v string) HTMLOptGroup

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOptGroup

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOptGroup

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOptGroup

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOptGroup

    // Title specifies extra information about an element.
    Title(v string) HTMLOptGroup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOptGroup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOptGroup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOptGroup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOptGroup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOptGroup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOptGroup

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOptGroup

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOptGroup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOptGroup

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOptGroup

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOptGroup

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOptGroup

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOptGroup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOptGroup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOptGroup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOptGroup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOptGroup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOptGroup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOptGroup

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOptGroup

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOptGroup

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOptGroup

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOptGroup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOptGroup

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOptGroup

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOptGroup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOptGroup

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOptGroup

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOptGroup

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOptGroup

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOptGroup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOptGroup
    // contains filtered or unexported methods
}

HTMLOptGroup is the interface that describes a <optgroup> HTML element.

func OptGroup Uses

func OptGroup() HTMLOptGroup

OptGroup returns an HTML element that defines a group of related options in a drop-down list.

type HTMLOption Uses

type HTMLOption interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLOption

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOption

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOption

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOption

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOption

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOption

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLOption

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOption

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOption

    // ID specifies a unique id for an element.
    ID(v string) HTMLOption

    // Label specifies a shorter label for the option.
    Label(v string) HTMLOption

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOption

    // Selected specifies that an option should be pre-selected when the page loads.
    Selected(v bool) HTMLOption

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOption

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOption

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOption

    // Title specifies extra information about an element.
    Title(v string) HTMLOption

    // Value specifies the value of the element.
    Value(v interface{}) HTMLOption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOption

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOption

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOption

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOption

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOption

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOption

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOption

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOption

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOption

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOption

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOption

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOption

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOption

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOption

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOption

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOption

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOption
    // contains filtered or unexported methods
}

HTMLOption is the interface that describes a <option> HTML element.

func Option Uses

func Option() HTMLOption

Option returns an HTML element that defines an option in a drop-down list.

type HTMLOutput Uses

type HTMLOutput interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLOutput

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOutput

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOutput

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOutput

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOutput

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOutput

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOutput

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOutput

    // For specifies which form element(s) a label/calculation is bound to.
    For(v string) HTMLOutput

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLOutput

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOutput

    // ID specifies a unique id for an element.
    ID(v string) HTMLOutput

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOutput

    // Name specifies the name of the element.
    Name(v string) HTMLOutput

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOutput

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOutput

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOutput

    // Title specifies extra information about an element.
    Title(v string) HTMLOutput

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOutput

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOutput

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOutput

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOutput

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOutput

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOutput

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOutput

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOutput

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOutput

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOutput

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOutput

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOutput

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOutput

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOutput

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOutput

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOutput

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOutput

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOutput

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOutput

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOutput

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOutput

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOutput

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOutput

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOutput

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOutput

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOutput

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOutput

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOutput

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOutput

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOutput

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOutput

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOutput
    // contains filtered or unexported methods
}

HTMLOutput is the interface that describes a <output> HTML element.

func Output Uses

func Output() HTMLOutput

Output returns an HTML element that .

type HTMLP Uses

type HTMLP interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLP

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLP

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLP

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLP

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLP

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLP

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLP

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLP

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLP

    // ID specifies a unique id for an element.
    ID(v string) HTMLP

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLP

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLP

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLP

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLP

    // Title specifies extra information about an element.
    Title(v string) HTMLP

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLP

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLP

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLP

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLP

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLP

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLP

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLP

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLP

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLP

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLP

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLP

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLP

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLP

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLP

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLP

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLP

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLP

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLP

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLP

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLP

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLP

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLP

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLP

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLP

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLP

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLP

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLP

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLP

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLP

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLP

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLP

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLP
    // contains filtered or unexported methods
}

HTMLP is the interface that describes a <p> HTML element.

func P Uses

func P() HTMLP

P returns an HTML element that defines a paragraph.

type HTMLParam Uses

type HTMLParam interface {

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLParam

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLParam

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLParam

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLParam

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLParam

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLParam

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLParam

    // ID specifies a unique id for an element.
    ID(v string) HTMLParam

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLParam

    // Name specifies the name of the element.
    Name(v string) HTMLParam

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLParam

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLParam

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLParam

    // Title specifies extra information about an element.
    Title(v string) HTMLParam

    // Value specifies the value of the element.
    Value(v interface{}) HTMLParam

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLParam

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLParam

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLParam

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLParam

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLParam

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLParam

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLParam

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLParam

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLParam

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLParam

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLParam

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLParam

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLParam

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLParam

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLParam

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLParam

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLParam

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLParam

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLParam

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLParam

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLParam

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLParam

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLParam

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLParam

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLParam

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLParam

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLParam

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLParam

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLParam

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLParam

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLParam

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLParam
    // contains filtered or unexported methods
}

HTMLParam is the interface that describes a <param> HTML element.

func Param Uses

func Param() HTMLParam

Param returns an HTML element that defines a parameter for an object.

type HTMLPicture Uses

type HTMLPicture interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLPicture

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLPicture

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLPicture

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLPicture

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLPicture

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLPicture

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLPicture

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLPicture

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLPicture

    // ID specifies a unique id for an element.
    ID(v string) HTMLPicture

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLPicture

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLPicture

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLPicture

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLPicture

    // Title specifies extra information about an element.
    Title(v string) HTMLPicture

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLPicture

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLPicture

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLPicture

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLPicture

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLPicture

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLPicture

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLPicture

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLPicture

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLPicture

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLPicture

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLPicture

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLPicture

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLPicture

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLPicture

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLPicture

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLPicture

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLPicture

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLPicture

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLPicture

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLPicture

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLPicture

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLPicture

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLPicture

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLPicture

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLPicture

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLPicture

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLPicture

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLPicture

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLPicture

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLPicture

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLPicture

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLPicture
    // contains filtered or unexported methods
}

HTMLPicture is the interface that describes a <picture> HTML element.

func Picture Uses

func Picture() HTMLPicture

Picture returns an HTML element that defines a container for multiple image resources.

type HTMLPre Uses

type HTMLPre interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLPre

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLPre

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLPre

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLPre

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLPre

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLPre

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLPre

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLPre

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLPre

    // ID specifies a unique id for an element.
    ID(v string) HTMLPre

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLPre

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLPre

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLPre

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLPre

    // Title specifies extra information about an element.
    Title(v string) HTMLPre

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLPre

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLPre

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLPre

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLPre

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLPre

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLPre

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLPre

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLPre

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLPre

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLPre

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLPre

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLPre

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLPre

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLPre

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLPre

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLPre

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLPre

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLPre

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLPre

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLPre

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLPre

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLPre

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLPre

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLPre

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLPre

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLPre

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLPre

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLPre

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLPre

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLPre

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLPre

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLPre
    // contains filtered or unexported methods
}

HTMLPre is the interface that describes a <pre> HTML element.

func Pre Uses

func Pre() HTMLPre

Pre returns an HTML element that defines preformatted text.

type HTMLProgress Uses

type HTMLProgress interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLProgress

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLProgress

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLProgress

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLProgress

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLProgress

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLProgress

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLProgress

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLProgress

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLProgress

    // ID specifies a unique id for an element.
    ID(v string) HTMLProgress

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLProgress

    // Max Specifies the maximum value.
    Max(v string) HTMLProgress

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLProgress

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLProgress

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLProgress

    // Title specifies extra information about an element.
    Title(v string) HTMLProgress

    // Value specifies the value of the element.
    Value(v interface{}) HTMLProgress

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLProgress

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLProgress

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLProgress

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLProgress

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLProgress

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLProgress

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLProgress

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLProgress

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLProgress

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLProgress

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLProgress

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLProgress

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLProgress

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLProgress

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLProgress

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLProgress

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLProgress

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLProgress

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLProgress

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLProgress

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLProgress

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLProgress

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLProgress

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLProgress

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLProgress

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLProgress

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLProgress

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLProgress

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLProgress

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLProgress

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLProgress

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLProgress
    // contains filtered or unexported methods
}

HTMLProgress is the interface that describes a <progress> HTML element.

func Progress Uses

func Progress() HTMLProgress

Progress returns an HTML element that represents the progress of a task.

type HTMLQ Uses

type HTMLQ interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLQ

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLQ

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLQ

    // Cite specifies a URL which explains the quote/deleted/inserted text.
    Cite(v string) HTMLQ

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLQ

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLQ

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLQ

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLQ

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLQ

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLQ

    // ID specifies a unique id for an element.
    ID(v string) HTMLQ

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLQ

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLQ

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLQ

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLQ

    // Title specifies extra information about an element.
    Title(v string) HTMLQ

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLQ

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLQ

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLQ

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLQ

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLQ

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLQ

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLQ

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLQ

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLQ

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLQ

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLQ

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLQ

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLQ

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLQ

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLQ

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLQ

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLQ

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLQ

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLQ

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLQ

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLQ

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLQ

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLQ

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLQ

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLQ

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLQ

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLQ

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLQ

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLQ

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLQ

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLQ

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLQ
    // contains filtered or unexported methods
}

HTMLQ is the interface that describes a <q> HTML element.

func Q Uses

func Q() HTMLQ

Q returns an HTML element that defines a short quotation.

type HTMLRp Uses

type HTMLRp interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLRp

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLRp

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLRp

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLRp

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLRp

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLRp

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLRp

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLRp

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLRp

    // ID specifies a unique id for an element.
    ID(v string) HTMLRp

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLRp

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLRp

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLRp

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRp

    // Title specifies extra information about an element.
    Title(v string) HTMLRp

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLRp

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLRp

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLRp

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLRp

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLRp

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLRp

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLRp

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLRp

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLRp

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLRp

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLRp

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLRp

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLRp

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLRp

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLRp

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLRp

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLRp

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLRp

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLRp

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLRp

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLRp

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLRp

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLRp

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLRp

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLRp

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLRp

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLRp

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLRp

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLRp

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLRp

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLRp

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLRp
    // contains filtered or unexported methods
}

HTMLRp is the interface that describes a <rp> HTML element.

func Rp Uses

func Rp() HTMLRp

Rp returns an HTML element that defines what to show in browsers that do not support ruby annotations.

type HTMLRt Uses

type HTMLRt interface {

    // Body set the content of the element.
    Body(nodes ...Node) HTMLRt

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLRt

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLRt

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLRt

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLRt

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLRt

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLRt

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLRt

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLRt

    // ID specifies a unique id for an element.
    ID(v string) HTMLRt

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLRt

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLRt

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLRt

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRt

    // Title specifies extra information about an element.
    Title(v string) HTMLRt

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLRt

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLRt

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLRt

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLRt

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLRt

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLRt

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLRt

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLRt

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLRt

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLRt

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLRt

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLRt

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLRt

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLRt

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLRt

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLRt

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLRt

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLRt

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLRt

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLRt

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.