Documentation ¶
Index ¶
- Variables
- func Dispatch(f func())
- func Navigate(rawurl string)
- func NewContextMenu(menuItems ...MenuItemNode)
- func Reload()
- func Route(path string, n UI)
- func Run()
- type BrowserStorage
- type BrowserWindow
- type Compo
- type Composer
- type Condition
- type Dismounter
- type Event
- type EventHandler
- type Func
- type HTMLA
- type HTMLAbbr
- type HTMLAddress
- type HTMLArea
- type HTMLArticle
- type HTMLAside
- type HTMLAudio
- type HTMLB
- type HTMLBase
- type HTMLBdi
- type HTMLBdo
- type HTMLBlockquote
- type HTMLBody
- type HTMLBr
- type HTMLButton
- type HTMLCanvas
- type HTMLCaption
- type HTMLCite
- type HTMLCode
- type HTMLCol
- type HTMLColGroup
- type HTMLData
- type HTMLDataList
- type HTMLDd
- type HTMLDel
- type HTMLDetails
- type HTMLDfn
- type HTMLDialog
- type HTMLDiv
- type HTMLDl
- type HTMLDt
- type HTMLEm
- type HTMLEmbed
- type HTMLFieldSet
- type HTMLFigCaption
- type HTMLFigure
- type HTMLFooter
- type HTMLForm
- type HTMLH1
- type HTMLH2
- type HTMLH3
- type HTMLH4
- type HTMLH5
- type HTMLH6
- type HTMLHead
- type HTMLHeader
- type HTMLHr
- type HTMLHtml
- type HTMLI
- type HTMLIFrame
- type HTMLImg
- type HTMLInput
- type HTMLIns
- type HTMLKbd
- type HTMLLabel
- type HTMLLegends
- type HTMLLi
- type HTMLLink
- type HTMLMain
- type HTMLMap
- type HTMLMark
- type HTMLMeta
- type HTMLMeter
- type HTMLNav
- type HTMLNoScript
- type HTMLObject
- type HTMLOl
- type HTMLOptGroup
- type HTMLOption
- type HTMLOutput
- type HTMLP
- type HTMLParam
- type HTMLPicture
- type HTMLPre
- type HTMLProgress
- type HTMLQ
- type HTMLRp
- type HTMLRt
- type HTMLRuby
- type HTMLS
- type HTMLSamp
- type HTMLScript
- type HTMLSection
- type HTMLSelect
- type HTMLSmall
- type HTMLSource
- type HTMLSpan
- type HTMLStrong
- type HTMLStyle
- type HTMLSub
- type HTMLSummary
- type HTMLSup
- type HTMLTBody
- type HTMLTable
- type HTMLTd
- type HTMLTemplate
- type HTMLTextarea
- type HTMLTfoot
- type HTMLTh
- type HTMLTime
- type HTMLTitle
- type HTMLTr
- type HTMLU
- type HTMLUl
- type HTMLVar
- type HTMLVideo
- type HTMLWbr
- type Handler
- type Icon
- type MenuItemNode
- type Mounter
- type Navigator
- type Node
- type RangeLoop
- type Type
- type UI
- type Value
- type Wrapper
Constants ¶
This section is empty.
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 = ¬Found{} )
Functions ¶
func Dispatch ¶ added in v1.0.1
func Dispatch(f func())
Dispatch executes the given function on the UI goroutine.
func NewContextMenu ¶ added in v1.0.1
func NewContextMenu(menuItems ...MenuItemNode)
NewContextMenu displays a context menu filled with the given menu items.
Types ¶
type BrowserStorage ¶
type BrowserStorage interface { // Set sets the item to the given key. The item must be json convertible in // json. Set(k string, i 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 ¶ added in v1.0.1
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) // contains filtered or unexported methods }
BrowserWindow is the interface that describes the browser window.
func Window ¶ added in v1.0.1
func Window() BrowserWindow
Window returns the JavaScript "window" object.
type Compo ¶
type Compo struct {
// contains filtered or unexported fields
}
Compo represents the base struct to use in order to build a component.
type Composer ¶ added in v1.0.1
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 ¶ added in v1.0.1
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.
type Dismounter ¶
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 Event ¶ added in v1.0.1
type Event struct {
Value
}
Event is the interface that describes a javascript event.
func (Event) PreventDefault ¶ added in v1.0.1
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 ¶ added in v1.0.1
EventHandler represents a function that can handle HTML events.
type Func ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
type HTMLA interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLAbbr ¶ added in v1.0.1
type HTMLAbbr interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLAddress ¶ added in v1.0.1
type HTMLAddress interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Address() HTMLAddress
Address returns an HTML element that defines contact information for the author/owner of a document.
type HTMLArea ¶ added in v1.0.1
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.
type HTMLArticle ¶ added in v1.0.1
type HTMLArticle interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Article() HTMLArticle
Article returns an HTML element that defines an article.
type HTMLAside ¶ added in v1.0.1
type HTMLAside interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLAudio ¶ added in v1.0.1
type HTMLAudio interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLB ¶ added in v1.0.1
type HTMLB interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLBase ¶ added in v1.0.1
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.
type HTMLBdi ¶ added in v1.0.1
type HTMLBdi interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLBdo ¶ added in v1.0.1
type HTMLBdo interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLBlockquote ¶ added in v1.0.1
type HTMLBlockquote interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Blockquote() HTMLBlockquote
Blockquote returns an HTML element that defines a section that is quoted from another source.
type HTMLBody ¶ added in v1.0.1
type HTMLBody interface { // Body set the content of the element. Body(nodes ...Node) 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 page 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.
type HTMLBr ¶ added in v1.0.1
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.
type HTMLButton ¶ added in v1.0.1
type HTMLButton interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Button() HTMLButton
Button returns an HTML element that defines a clickable button.
type HTMLCanvas ¶ added in v1.0.1
type HTMLCanvas interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Canvas() HTMLCanvas
Canvas returns an HTML element that is used to draw graphics on the fly.
type HTMLCaption ¶ added in v1.0.1
type HTMLCaption interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Caption() HTMLCaption
Caption returns an HTML element that defines a table caption.
type HTMLCite ¶ added in v1.0.1
type HTMLCite interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLCode ¶ added in v1.0.1
type HTMLCode interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLCol ¶ added in v1.0.1
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.
type HTMLColGroup ¶ added in v1.0.1
type HTMLColGroup interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func ColGroup() HTMLColGroup
ColGroup returns an HTML element that specifies a group of one or more columns in a table for formatting.
type HTMLData ¶ added in v1.0.1
type HTMLData interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLDataList ¶ added in v1.0.1
type HTMLDataList interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func DataList() HTMLDataList
DataList returns an HTML element that specifies a list of pre-defined options for input controls.
type HTMLDd ¶ added in v1.0.1
type HTMLDd interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLDel ¶ added in v1.0.1
type HTMLDel interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLDetails ¶ added in v1.0.1
type HTMLDetails interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Details() HTMLDetails
Details returns an HTML element that defines additional details that the user can view or hide.
type HTMLDfn ¶ added in v1.0.1
type HTMLDfn interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLDialog ¶ added in v1.0.1
type HTMLDialog interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Dialog() HTMLDialog
Dialog returns an HTML element that defines a dialog box or window.
type HTMLDiv ¶ added in v1.0.1
type HTMLDiv interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLDl ¶ added in v1.0.1
type HTMLDl interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLDt ¶ added in v1.0.1
type HTMLDt interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLEm ¶ added in v1.0.1
type HTMLEm interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLEmbed ¶ added in v1.0.1
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.
type HTMLFieldSet ¶ added in v1.0.1
type HTMLFieldSet interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func FieldSet() HTMLFieldSet
FieldSet returns an HTML element that groups related elements in a form.
type HTMLFigCaption ¶ added in v1.0.1
type HTMLFigCaption interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func FigCaption() HTMLFigCaption
FigCaption returns an HTML element that defines a caption for a figure element.
type HTMLFigure ¶ added in v1.0.1
type HTMLFigure interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Figure() HTMLFigure
Figure returns an HTML element that specifies self-contained content.
type HTMLFooter ¶ added in v1.0.1
type HTMLFooter interface { Node) HTMLFooter AccessKey(v string) HTMLFooter Class(v string) HTMLFooter ContentEditable(v bool) HTMLFooter DataSet(k string, v interface{}) HTMLFooter Dir(v string) HTMLFooter Draggable(v bool) HTMLFooter Hidden(v bool) HTMLFooter ID(v string) HTMLFooter Lang(v string) HTMLFooter Spellcheck(v bool) HTMLFooter Style(k, v string) HTMLFooter TabIndex(v int) HTMLFooter Title(v string) HTMLFooter OnBlur(h EventHandler) HTMLFooter OnChange(h EventHandler) HTMLFooter OnClick(h EventHandler) HTMLFooter OnContextMenu(h EventHandler) HTMLFooter OnCopy(h EventHandler) HTMLFooter OnCut(h EventHandler) HTMLFooter OnDblClick(h EventHandler) HTMLFooter OnDrag(h EventHandler) HTMLFooter OnDragEnd(h EventHandler) HTMLFooter OnDragEnter(h EventHandler) HTMLFooter OnDragLeave(h EventHandler) HTMLFooter OnDragOver(h EventHandler) HTMLFooter OnDragStart(h EventHandler) HTMLFooter OnDrop(h EventHandler) HTMLFooter OnFocus(h EventHandler) HTMLFooter OnInput(h EventHandler) HTMLFooter OnInvalid(h EventHandler) HTMLFooter OnKeyDown(h EventHandler) HTMLFooter OnKeyPress(h EventHandler) HTMLFooter OnKeyup(h EventHandler) HTMLFooter OnMouseDown(h EventHandler) HTMLFooter OnMouseMove(h EventHandler) HTMLFooter OnMouseOut(h EventHandler) HTMLFooter OnMouseOver(h EventHandler) HTMLFooter OnMouseUp(h EventHandler) HTMLFooter OnPaste(h EventHandler) HTMLFooter OnReset(h EventHandler) HTMLFooter OnScroll(h EventHandler) HTMLFooter OnSearch(h EventHandler) HTMLFooter OnSelect(h EventHandler) HTMLFooter OnSubmit(h EventHandler) HTMLFooter OnWheel(h EventHandler) HTMLFooter // contains filtered or unexported methods }Body(nodes ...
HTMLFooter is the interface that describes a <footer> HTML element.
func Footer ¶ added in v1.0.1
func Footer() HTMLFooter
Footer returns an HTML element that defines a footer for a document or section.
type HTMLForm ¶ added in v1.0.1
type HTMLForm interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLH1 ¶ added in v1.0.1
type HTMLH1 interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLH2 ¶ added in v1.0.1
type HTMLH2 interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLH3 ¶ added in v1.0.1
type HTMLH3 interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLH4 ¶ added in v1.0.1
type HTMLH4 interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLH5 ¶ added in v1.0.1
type HTMLH5 interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLH6 ¶ added in v1.0.1
type HTMLH6 interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLHead ¶ added in v1.0.1
type HTMLHead interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLHeader ¶ added in v1.0.1
type HTMLHeader interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Header() HTMLHeader
Header returns an HTML element that defines a header for a document or section.
type HTMLHr ¶ added in v1.0.1
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.
type HTMLHtml ¶ added in v1.0.1
type HTMLHtml interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLI ¶ added in v1.0.1
type HTMLI interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLIFrame ¶ added in v1.0.1
type HTMLIFrame interface { // Body set the content of the element. Body(nodes ...Node) 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 // 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 ¶ added in v1.0.1
func IFrame() HTMLIFrame
IFrame returns an HTML element that defines an inline frame.
type HTMLImg ¶ added in v1.0.1
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 // 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.
type HTMLInput ¶ added in v1.0.1
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 // 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.
type HTMLIns ¶ added in v1.0.1
type HTMLIns interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLKbd ¶ added in v1.0.1
type HTMLKbd interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLLabel ¶ added in v1.0.1
type HTMLLabel interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLLegends ¶ added in v1.0.1
type HTMLLegends interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Legends() HTMLLegends
Legends returns an HTML element that defines a caption for a fieldset element.
type HTMLLi ¶ added in v1.0.1
type HTMLLi interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLLink ¶ added in v1.0.1
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 // 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.
type HTMLMain ¶ added in v1.0.1
type HTMLMain interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLMap ¶ added in v1.0.1
type HTMLMap interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLMark ¶ added in v1.0.1
type HTMLMark interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLMeta ¶ added in v1.0.1
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.
type HTMLMeter ¶ added in v1.0.1
type HTMLMeter interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLNav ¶ added in v1.0.1
type HTMLNav interface { Node) HTMLNav AccessKey(v string) HTMLNav Class(v string) HTMLNav ContentEditable(v bool) HTMLNav DataSet(k string, v interface{}) HTMLNav Dir(v string) HTMLNav Draggable(v bool) HTMLNav Hidden(v bool) HTMLNav ID(v string) HTMLNav Lang(v string) HTMLNav Spellcheck(v bool) HTMLNav Style(k, v string) HTMLNav TabIndex(v int) HTMLNav Title(v string) HTMLNav OnBlur(h EventHandler) HTMLNav OnChange(h EventHandler) HTMLNav OnClick(h EventHandler) HTMLNav OnContextMenu(h EventHandler) HTMLNav OnCopy(h EventHandler) HTMLNav OnCut(h EventHandler) HTMLNav OnDblClick(h EventHandler) HTMLNav OnDrag(h EventHandler) HTMLNav OnDragEnd(h EventHandler) HTMLNav OnDragEnter(h EventHandler) HTMLNav OnDragLeave(h EventHandler) HTMLNav OnDragOver(h EventHandler) HTMLNav OnDragStart(h EventHandler) HTMLNav OnDrop(h EventHandler) HTMLNav OnFocus(h EventHandler) HTMLNav OnInput(h EventHandler) HTMLNav OnInvalid(h EventHandler) HTMLNav OnKeyDown(h EventHandler) HTMLNav OnKeyPress(h EventHandler) HTMLNav OnKeyup(h EventHandler) HTMLNav OnMouseDown(h EventHandler) HTMLNav OnMouseMove(h EventHandler) HTMLNav OnMouseOut(h EventHandler) HTMLNav OnMouseOver(h EventHandler) HTMLNav OnMouseUp(h EventHandler) HTMLNav OnPaste(h EventHandler) HTMLNav OnReset(h EventHandler) HTMLNav OnScroll(h EventHandler) HTMLNav OnSearch(h EventHandler) HTMLNav OnSelect(h EventHandler) HTMLNav OnSubmit(h EventHandler) HTMLNav OnWheel(h EventHandler) HTMLNav // contains filtered or unexported methods }Body(nodes ...
HTMLNav is the interface that describes a <nav> HTML element.
type HTMLNoScript ¶ added in v1.0.1
type HTMLNoScript interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func NoScript() HTMLNoScript
NoScript returns an HTML element that defines an alternate content for users that do not support client-side scripts.
type HTMLObject ¶ added in v1.0.1
type HTMLObject interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Object() HTMLObject
Object returns an HTML element that defines an embedded object.
type HTMLOl ¶ added in v1.0.1
type HTMLOl interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLOptGroup ¶ added in v1.0.1
type HTMLOptGroup interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func OptGroup() HTMLOptGroup
OptGroup returns an HTML element that defines a group of related options in a drop-down list.
type HTMLOption ¶ added in v1.0.1
type HTMLOption interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Option() HTMLOption
Option returns an HTML element that defines an option in a drop-down list.
type HTMLOutput ¶ added in v1.0.1
type HTMLOutput interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLP ¶ added in v1.0.1
type HTMLP interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLParam ¶ added in v1.0.1
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.
type HTMLPicture ¶ added in v1.0.1
type HTMLPicture interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Picture() HTMLPicture
Picture returns an HTML element that defines a container for multiple image resources.
type HTMLPre ¶ added in v1.0.1
type HTMLPre interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLProgress ¶ added in v1.0.1
type HTMLProgress interface { // Body set the content of the element. Body(nodes ...Node) 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 ¶ added in v1.0.1
func Progress() HTMLProgress
Progress returns an HTML element that represents the progress of a task.
type HTMLQ ¶ added in v1.0.1
type HTMLQ interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLRp ¶ added in v1.0.1
type HTMLRp interface { // Body set the content of the element. Body(nodes ...Node) 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.
type HTMLRt ¶ added in v1.0.1
type HTMLRt interface { // Body set the content of the element. Body(nodes ...Node) 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. OnMouseDown(h EventHandler) HTMLRt // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLRt // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLRt // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLRt // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLRt // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLRt // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLRt // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLRt // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLRt // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLRt // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLRt // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLRt // contains filtered or unexported methods }
HTMLRt is the interface that describes a <rt> HTML element.
type HTMLRuby ¶ added in v1.0.1
type HTMLRuby interface { // Body set the content of the element. Body(nodes ...Node) HTMLRuby // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLRuby // 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) HTMLRuby // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLRuby // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLRuby // Dir specifies the text direction for the content in an element. Dir(v string) HTMLRuby // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLRuby // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLRuby // ID specifies a unique id for an element. ID(v string) HTMLRuby // Lang specifies the language of the element's content. Lang(v string) HTMLRuby // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLRuby // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLRuby // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLRuby // Title specifies extra information about an element. Title(v string) HTMLRuby // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLRuby // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLRuby // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLRuby // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLRuby // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLRuby // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLRuby // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLRuby // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLRuby // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLRuby // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLRuby // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLRuby // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLRuby // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLRuby // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLRuby // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLRuby // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLRuby // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLRuby // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLRuby // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLRuby // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLRuby // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLRuby // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLRuby // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLRuby // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLRuby // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLRuby // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLRuby // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLRuby // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLRuby // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLRuby // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLRuby // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLRuby // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLRuby // contains filtered or unexported methods }
HTMLRuby is the interface that describes a <ruby> HTML element.
type HTMLS ¶ added in v1.0.1
type HTMLS interface { // Body set the content of the element. Body(nodes ...Node) HTMLS // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLS // 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) HTMLS // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLS // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLS // Dir specifies the text direction for the content in an element. Dir(v string) HTMLS // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLS // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLS // ID specifies a unique id for an element. ID(v string) HTMLS // Lang specifies the language of the element's content. Lang(v string) HTMLS // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLS // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLS // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLS // Title specifies extra information about an element. Title(v string) HTMLS // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLS // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLS // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLS // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLS // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLS // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLS // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLS // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLS // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLS // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLS // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLS // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLS // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLS // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLS // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLS // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLS // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLS // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLS // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLS // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLS // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLS // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLS // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLS // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLS // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLS // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLS // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLS // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLS // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLS // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLS // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLS // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLS // contains filtered or unexported methods }
HTMLS is the interface that describes a <s> HTML element.
type HTMLSamp ¶ added in v1.0.1
type HTMLSamp interface { // Body set the content of the element. Body(nodes ...Node) HTMLSamp // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSamp // 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) HTMLSamp // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSamp // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSamp // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSamp // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSamp // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSamp // ID specifies a unique id for an element. ID(v string) HTMLSamp // Lang specifies the language of the element's content. Lang(v string) HTMLSamp // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSamp // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSamp // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSamp // Title specifies extra information about an element. Title(v string) HTMLSamp // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSamp // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSamp // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSamp // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSamp // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSamp // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSamp // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSamp // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSamp // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSamp // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSamp // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSamp // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSamp // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSamp // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSamp // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSamp // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSamp // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSamp // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSamp // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSamp // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSamp // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSamp // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSamp // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSamp // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSamp // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSamp // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSamp // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSamp // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSamp // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSamp // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSamp // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSamp // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSamp // contains filtered or unexported methods }
HTMLSamp is the interface that describes a <samp> HTML element.
type HTMLScript ¶ added in v1.0.1
type HTMLScript interface { // Body set the content of the element. Body(nodes ...Node) HTMLScript // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLScript // Async specifies that the script is executed asynchronously (only for external scripts). Async(v bool) HTMLScript // Charset specifies the character encoding. Charset(v string) HTMLScript // 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) HTMLScript // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLScript // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLScript // Defer specifies that the script is executed when the page has finished parsing (only for external scripts). Defer(v bool) HTMLScript // Dir specifies the text direction for the content in an element. Dir(v string) HTMLScript // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLScript // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLScript // ID specifies a unique id for an element. ID(v string) HTMLScript // Lang specifies the language of the element's content. Lang(v string) HTMLScript // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLScript // Src specifies the URL of the media file. Src(v string) HTMLScript // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLScript // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLScript // Title specifies extra information about an element. Title(v string) HTMLScript // Type specifies the type of element. Type(v string) HTMLScript // contains filtered or unexported methods }
HTMLScript is the interface that describes a <script> HTML element.
func Script ¶ added in v1.0.1
func Script() HTMLScript
Script returns an HTML element that defines a client-side script.
type HTMLSection ¶ added in v1.0.1
type HTMLSection interface { // Body set the content of the element. Body(nodes ...Node) HTMLSection // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSection // 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) HTMLSection // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSection // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSection // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSection // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSection // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSection // ID specifies a unique id for an element. ID(v string) HTMLSection // Lang specifies the language of the element's content. Lang(v string) HTMLSection // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSection // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSection // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSection // Title specifies extra information about an element. Title(v string) HTMLSection // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSection // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSection // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSection // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSection // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSection // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSection // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSection // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSection // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSection // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSection // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSection // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSection // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSection // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSection // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSection // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSection // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSection // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSection // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSection // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSection // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSection // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSection // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSection // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSection // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSection // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSection // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSection // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSection // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSection // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSection // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSection // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSection // contains filtered or unexported methods }
HTMLSection is the interface that describes a <section> HTML element.
func Section ¶ added in v1.0.1
func Section() HTMLSection
Section returns an HTML element that defines a section in a document.
type HTMLSelect ¶ added in v1.0.1
type HTMLSelect interface { // Body set the content of the element. Body(nodes ...Node) HTMLSelect // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSelect // AutoFocus specifies that the element should automatically get focus when the page loads. AutoFocus(v bool) HTMLSelect // 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) HTMLSelect // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSelect // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSelect // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSelect // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLSelect // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSelect // Form specifies the name of the form the element belongs to. Form(v string) HTMLSelect // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSelect // ID specifies a unique id for an element. ID(v string) HTMLSelect // Lang specifies the language of the element's content. Lang(v string) HTMLSelect // Multiple specifies that a user can enter more than one value. Multiple(v bool) HTMLSelect // Name specifies the name of the element. Name(v string) HTMLSelect // Required specifies that the element must be filled out before submitting the form. Required(v bool) HTMLSelect // Size specifies the width. Size(v int) HTMLSelect // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSelect // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSelect // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSelect // Title specifies extra information about an element. Title(v string) HTMLSelect // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSelect // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSelect // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSelect // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSelect // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSelect // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSelect // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSelect // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSelect // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSelect // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSelect // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSelect // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSelect // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSelect // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSelect // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSelect // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSelect // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSelect // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSelect // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSelect // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSelect // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSelect // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSelect // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSelect // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSelect // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSelect // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSelect // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSelect // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSelect // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSelect // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSelect // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSelect // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSelect // contains filtered or unexported methods }
HTMLSelect is the interface that describes a <select> HTML element.
func Select ¶ added in v1.0.1
func Select() HTMLSelect
Select returns an HTML element that defines a drop-down list.
type HTMLSmall ¶ added in v1.0.1
type HTMLSmall interface { // Body set the content of the element. Body(nodes ...Node) HTMLSmall // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSmall // 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) HTMLSmall // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSmall // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSmall // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSmall // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSmall // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSmall // ID specifies a unique id for an element. ID(v string) HTMLSmall // Lang specifies the language of the element's content. Lang(v string) HTMLSmall // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSmall // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSmall // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSmall // Title specifies extra information about an element. Title(v string) HTMLSmall // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSmall // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSmall // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSmall // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSmall // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSmall // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSmall // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSmall // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSmall // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSmall // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSmall // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSmall // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSmall // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSmall // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSmall // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSmall // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSmall // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSmall // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSmall // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSmall // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSmall // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSmall // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSmall // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSmall // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSmall // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSmall // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSmall // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSmall // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSmall // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSmall // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSmall // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSmall // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSmall // contains filtered or unexported methods }
HTMLSmall is the interface that describes a <small> HTML element.
type HTMLSource ¶ added in v1.0.1
type HTMLSource interface { // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSource // 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) HTMLSource // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSource // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSource // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSource // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSource // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSource // ID specifies a unique id for an element. ID(v string) HTMLSource // Lang specifies the language of the element's content. Lang(v string) HTMLSource // Media specifies what media/device the linked document is optimized for. Media(v string) HTMLSource // Sizes specifies the size of the linked resource. Sizes(v string) HTMLSource // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSource // Src specifies the URL of the media file. Src(v string) HTMLSource // SrcSet specifies the URL of the image to use in different situations. SrcSet(v string) HTMLSource // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSource // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSource // Title specifies extra information about an element. Title(v string) HTMLSource // Type specifies the type of element. Type(v string) HTMLSource // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSource // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSource // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSource // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSource // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSource // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSource // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSource // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSource // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSource // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSource // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSource // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSource // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSource // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSource // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSource // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSource // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSource // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSource // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSource // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSource // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSource // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSource // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSource // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSource // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSource // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSource // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSource // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSource // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSource // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSource // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSource // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSource // contains filtered or unexported methods }
HTMLSource is the interface that describes a <source> HTML element.
type HTMLSpan ¶ added in v1.0.1
type HTMLSpan interface { // Body set the content of the element. Body(nodes ...Node) HTMLSpan // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSpan // 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) HTMLSpan // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSpan // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSpan // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSpan // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSpan // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSpan // ID specifies a unique id for an element. ID(v string) HTMLSpan // Lang specifies the language of the element's content. Lang(v string) HTMLSpan // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSpan // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSpan // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSpan // Title specifies extra information about an element. Title(v string) HTMLSpan // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSpan // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSpan // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSpan // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSpan // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSpan // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSpan // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSpan // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSpan // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSpan // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSpan // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSpan // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSpan // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSpan // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSpan // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSpan // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSpan // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSpan // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSpan // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSpan // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSpan // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSpan // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSpan // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSpan // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSpan // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSpan // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSpan // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSpan // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSpan // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSpan // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSpan // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSpan // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSpan // contains filtered or unexported methods }
HTMLSpan is the interface that describes a <span> HTML element.
type HTMLStrong ¶ added in v1.0.1
type HTMLStrong interface { // Body set the content of the element. Body(nodes ...Node) HTMLStrong // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLStrong // 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) HTMLStrong // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLStrong // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLStrong // Dir specifies the text direction for the content in an element. Dir(v string) HTMLStrong // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLStrong // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLStrong // ID specifies a unique id for an element. ID(v string) HTMLStrong // Lang specifies the language of the element's content. Lang(v string) HTMLStrong // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLStrong // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLStrong // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLStrong // Title specifies extra information about an element. Title(v string) HTMLStrong // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLStrong // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLStrong // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLStrong // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLStrong // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLStrong // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLStrong // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLStrong // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLStrong // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLStrong // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLStrong // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLStrong // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLStrong // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLStrong // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLStrong // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLStrong // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLStrong // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLStrong // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLStrong // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLStrong // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLStrong // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLStrong // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLStrong // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLStrong // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLStrong // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLStrong // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLStrong // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLStrong // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLStrong // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLStrong // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLStrong // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLStrong // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLStrong // contains filtered or unexported methods }
HTMLStrong is the interface that describes a <strong> HTML element.
func Strong ¶ added in v1.0.1
func Strong() HTMLStrong
Strong returns an HTML element that defines important text.
type HTMLStyle ¶ added in v1.0.1
type HTMLStyle interface { // Body set the content of the element. Body(nodes ...Node) HTMLStyle // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLStyle // 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) HTMLStyle // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLStyle // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLStyle // Dir specifies the text direction for the content in an element. Dir(v string) HTMLStyle // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLStyle // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLStyle // ID specifies a unique id for an element. ID(v string) HTMLStyle // Lang specifies the language of the element's content. Lang(v string) HTMLStyle // Media specifies what media/device the linked document is optimized for. Media(v string) HTMLStyle // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLStyle // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLStyle // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLStyle // Title specifies extra information about an element. Title(v string) HTMLStyle // Type specifies the type of element. Type(v string) HTMLStyle // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLStyle // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLStyle // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLStyle // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLStyle // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLStyle // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLStyle // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLStyle // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLStyle // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLStyle // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLStyle // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLStyle // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLStyle // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLStyle // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLStyle // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLStyle // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLStyle // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLStyle // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLStyle // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLStyle // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLStyle // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLStyle // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLStyle // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLStyle // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLStyle // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLStyle // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLStyle // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLStyle // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLStyle // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLStyle // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLStyle // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLStyle // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLStyle // contains filtered or unexported methods }
HTMLStyle is the interface that describes a <style> HTML element.
type HTMLSub ¶ added in v1.0.1
type HTMLSub interface { // Body set the content of the element. Body(nodes ...Node) HTMLSub // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSub // 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) HTMLSub // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSub // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSub // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSub // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSub // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSub // ID specifies a unique id for an element. ID(v string) HTMLSub // Lang specifies the language of the element's content. Lang(v string) HTMLSub // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSub // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSub // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSub // Title specifies extra information about an element. Title(v string) HTMLSub // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSub // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSub // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSub // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSub // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSub // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSub // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSub // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSub // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSub // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSub // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSub // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSub // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSub // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSub // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSub // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSub // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSub // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSub // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSub // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSub // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSub // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSub // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSub // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSub // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSub // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSub // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSub // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSub // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSub // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSub // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSub // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSub // contains filtered or unexported methods }
HTMLSub is the interface that describes a <sub> HTML element.
type HTMLSummary ¶ added in v1.0.1
type HTMLSummary interface { // Body set the content of the element. Body(nodes ...Node) HTMLSummary // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSummary // 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) HTMLSummary // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSummary // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSummary // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSummary // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSummary // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSummary // ID specifies a unique id for an element. ID(v string) HTMLSummary // Lang specifies the language of the element's content. Lang(v string) HTMLSummary // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSummary // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSummary // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSummary // Title specifies extra information about an element. Title(v string) HTMLSummary // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSummary // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSummary // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSummary // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSummary // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSummary // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSummary // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSummary // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSummary // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSummary // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSummary // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSummary // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSummary // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSummary // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSummary // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSummary // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSummary // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSummary // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSummary // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSummary // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSummary // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSummary // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSummary // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSummary // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSummary // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSummary // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSummary // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSummary // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSummary // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSummary // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSummary // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSummary // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSummary // contains filtered or unexported methods }
HTMLSummary is the interface that describes a <summary> HTML element.
func Summary ¶ added in v1.0.1
func Summary() HTMLSummary
Summary returns an HTML element that defines a visible heading for a details element.
type HTMLSup ¶ added in v1.0.1
type HTMLSup interface { // Body set the content of the element. Body(nodes ...Node) HTMLSup // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSup // 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) HTMLSup // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSup // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSup // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSup // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSup // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSup // ID specifies a unique id for an element. ID(v string) HTMLSup // Lang specifies the language of the element's content. Lang(v string) HTMLSup // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSup // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSup // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSup // Title specifies extra information about an element. Title(v string) HTMLSup // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLSup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLSup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLSup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLSup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLSup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLSup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLSup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLSup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLSup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLSup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLSup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLSup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLSup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLSup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLSup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLSup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLSup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLSup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLSup // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLSup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLSup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLSup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLSup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLSup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLSup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLSup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLSup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLSup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLSup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLSup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLSup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLSup // contains filtered or unexported methods }
HTMLSup is the interface that describes a <sup> HTML element.
type HTMLTBody ¶ added in v1.0.1
type HTMLTBody interface { // Body set the content of the element. Body(nodes ...Node) HTMLTBody // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTBody // 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) HTMLTBody // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTBody // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTBody // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTBody // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTBody // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTBody // ID specifies a unique id for an element. ID(v string) HTMLTBody // Lang specifies the language of the element's content. Lang(v string) HTMLTBody // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTBody // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTBody // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTBody // Title specifies extra information about an element. Title(v string) HTMLTBody // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTBody // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTBody // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTBody // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTBody // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTBody // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTBody // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTBody // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTBody // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTBody // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTBody // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTBody // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTBody // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTBody // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTBody // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTBody // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTBody // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTBody // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTBody // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTBody // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTBody // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTBody // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTBody // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTBody // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTBody // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTBody // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTBody // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTBody // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTBody // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTBody // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTBody // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTBody // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTBody // contains filtered or unexported methods }
HTMLTBody is the interface that describes a <tbody> HTML element.
type HTMLTable ¶ added in v1.0.1
type HTMLTable interface { // Body set the content of the element. Body(nodes ...Node) HTMLTable // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTable // 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) HTMLTable // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTable // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTable // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTable // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTable // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTable // ID specifies a unique id for an element. ID(v string) HTMLTable // Lang specifies the language of the element's content. Lang(v string) HTMLTable // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTable // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTable // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTable // Title specifies extra information about an element. Title(v string) HTMLTable // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTable // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTable // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTable // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTable // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTable // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTable // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTable // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTable // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTable // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTable // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTable // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTable // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTable // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTable // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTable // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTable // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTable // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTable // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTable // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTable // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTable // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTable // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTable // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTable // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTable // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTable // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTable // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTable // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTable // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTable // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTable // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTable // contains filtered or unexported methods }
HTMLTable is the interface that describes a <table> HTML element.
type HTMLTd ¶ added in v1.0.1
type HTMLTd interface { // Body set the content of the element. Body(nodes ...Node) HTMLTd // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTd // 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) HTMLTd // ColSpan specifies the number of columns a table cell should span. ColSpan(v int) HTMLTd // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTd // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTd // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTd // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTd // Headers specifies one or more headers cells a cell is related to. Headers(v string) HTMLTd // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTd // ID specifies a unique id for an element. ID(v string) HTMLTd // Lang specifies the language of the element's content. Lang(v string) HTMLTd // Rowspan specifies the number of rows a table cell should span. Rowspan(v int) HTMLTd // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTd // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTd // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTd // Title specifies extra information about an element. Title(v string) HTMLTd // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTd // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTd // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTd // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTd // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTd // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTd // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTd // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTd // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTd // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTd // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTd // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTd // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTd // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTd // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTd // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTd // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTd // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTd // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTd // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTd // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTd // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTd // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTd // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTd // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTd // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTd // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTd // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTd // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTd // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTd // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTd // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTd // contains filtered or unexported methods }
HTMLTd is the interface that describes a <td> HTML element.
type HTMLTemplate ¶ added in v1.0.1
type HTMLTemplate interface { // Body set the content of the element. Body(nodes ...Node) HTMLTemplate // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTemplate // 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) HTMLTemplate // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTemplate // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTemplate // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTemplate // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTemplate // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTemplate // ID specifies a unique id for an element. ID(v string) HTMLTemplate // Lang specifies the language of the element's content. Lang(v string) HTMLTemplate // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTemplate // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTemplate // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTemplate // Title specifies extra information about an element. Title(v string) HTMLTemplate // contains filtered or unexported methods }
HTMLTemplate is the interface that describes a <template> HTML element.
func Template ¶ added in v1.0.1
func Template() HTMLTemplate
Template returns an HTML element that defines a template.
type HTMLTextarea ¶ added in v1.0.1
type HTMLTextarea interface { // Body set the content of the element. Body(nodes ...Node) HTMLTextarea // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTextarea // AutoFocus specifies that the element should automatically get focus when the page loads. AutoFocus(v bool) HTMLTextarea // 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) HTMLTextarea // Cols specifies the visible width of a text area. Cols(v int) HTMLTextarea // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTextarea // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTextarea // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTextarea // DirName specifies that the text direction will be submitted. DirName(v string) HTMLTextarea // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLTextarea // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTextarea // Form specifies the name of the form the element belongs to. Form(v string) HTMLTextarea // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTextarea // ID specifies a unique id for an element. ID(v string) HTMLTextarea // Lang specifies the language of the element's content. Lang(v string) HTMLTextarea // MaxLength specifies the maximum number of characters allowed in an element. MaxLength(v int) HTMLTextarea // Name specifies the name of the element. Name(v string) HTMLTextarea // Placeholder specifies a short hint that describes the expected value of the element. Placeholder(v string) HTMLTextarea // ReadOnly specifies that the element is read-only. ReadOnly(v bool) HTMLTextarea // Required specifies that the element must be filled out before submitting the form. Required(v bool) HTMLTextarea // Rows specifies the visible number of lines in a text area. Rows(v int) HTMLTextarea // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTextarea // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTextarea // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTextarea // Title specifies extra information about an element. Title(v string) HTMLTextarea // Wrap specifies how the text in a text area is to be wrapped when submitted in a form. Wrap(v string) HTMLTextarea // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTextarea // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTextarea // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTextarea // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTextarea // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTextarea // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTextarea // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTextarea // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTextarea // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTextarea // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTextarea // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTextarea // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTextarea // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTextarea // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTextarea // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTextarea // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTextarea // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTextarea // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTextarea // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTextarea // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTextarea // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTextarea // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTextarea // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTextarea // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTextarea // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTextarea // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTextarea // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTextarea // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTextarea // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTextarea // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTextarea // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTextarea // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTextarea // contains filtered or unexported methods }
HTMLTextarea is the interface that describes a <textarea> HTML element.
func Textarea ¶ added in v1.0.1
func Textarea() HTMLTextarea
Textarea returns an HTML element that defines a multiline input control (text area).
type HTMLTfoot ¶ added in v1.0.1
type HTMLTfoot interface { // Body set the content of the element. Body(nodes ...Node) HTMLTfoot // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTfoot // 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) HTMLTfoot // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTfoot // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTfoot // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTfoot // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTfoot // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTfoot // ID specifies a unique id for an element. ID(v string) HTMLTfoot // Lang specifies the language of the element's content. Lang(v string) HTMLTfoot // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTfoot // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTfoot // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTfoot // Title specifies extra information about an element. Title(v string) HTMLTfoot // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTfoot // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTfoot // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTfoot // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTfoot // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTfoot // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTfoot // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTfoot // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTfoot // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTfoot // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTfoot // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTfoot // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTfoot // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTfoot // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTfoot // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTfoot // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTfoot // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTfoot // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTfoot // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTfoot // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTfoot // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTfoot // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTfoot // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTfoot // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTfoot // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTfoot // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTfoot // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTfoot // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTfoot // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTfoot // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTfoot // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTfoot // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTfoot // contains filtered or unexported methods }
HTMLTfoot is the interface that describes a <tfoot> HTML element.
type HTMLTh ¶ added in v1.0.1
type HTMLTh interface { // Body set the content of the element. Body(nodes ...Node) HTMLTh // Accept specifies an abbreviated version of the content in a header cell. Accept(v string) HTMLTh // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTh // 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) HTMLTh // ColSpan specifies the number of columns a table cell should span. ColSpan(v int) HTMLTh // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTh // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTh // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTh // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTh // Headers specifies one or more headers cells a cell is related to. Headers(v string) HTMLTh // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTh // ID specifies a unique id for an element. ID(v string) HTMLTh // Lang specifies the language of the element's content. Lang(v string) HTMLTh // Rowspan specifies the number of rows a table cell should span. Rowspan(v int) HTMLTh // Scope specifies whether a header cell is a header for a column, row, or group of columns or rows. Scope(v string) HTMLTh // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTh // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTh // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTh // Title specifies extra information about an element. Title(v string) HTMLTh // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTh // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTh // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTh // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTh // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTh // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTh // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTh // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTh // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTh // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTh // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTh // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTh // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTh // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTh // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTh // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTh // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTh // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTh // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTh // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTh // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTh // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTh // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTh // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTh // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTh // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTh // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTh // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTh // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTh // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTh // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTh // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTh // contains filtered or unexported methods }
HTMLTh is the interface that describes a <th> HTML element.
type HTMLTime ¶ added in v1.0.1
type HTMLTime interface { // Body set the content of the element. Body(nodes ...Node) HTMLTime // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTime // 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) HTMLTime // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTime // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTime // DateTime specifies the date and time. DateTime(v string) HTMLTime // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTime // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTime // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTime // ID specifies a unique id for an element. ID(v string) HTMLTime // Lang specifies the language of the element's content. Lang(v string) HTMLTime // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTime // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTime // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTime // Title specifies extra information about an element. Title(v string) HTMLTime // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTime // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTime // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTime // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTime // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTime // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTime // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTime // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTime // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTime // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTime // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTime // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTime // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTime // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTime // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTime // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTime // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTime // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTime // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTime // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTime // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTime // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTime // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTime // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTime // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTime // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTime // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTime // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTime // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTime // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTime // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTime // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTime // contains filtered or unexported methods }
HTMLTime is the interface that describes a <time> HTML element.
type HTMLTitle ¶ added in v1.0.1
type HTMLTitle interface { // Body set the content of the element. Body(nodes ...Node) HTMLTitle // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTitle // 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) HTMLTitle // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTitle // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTitle // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTitle // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTitle // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTitle // ID specifies a unique id for an element. ID(v string) HTMLTitle // Lang specifies the language of the element's content. Lang(v string) HTMLTitle // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTitle // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTitle // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTitle // Title specifies extra information about an element. Title(v string) HTMLTitle // contains filtered or unexported methods }
HTMLTitle is the interface that describes a <title> HTML element.
type HTMLTr ¶ added in v1.0.1
type HTMLTr interface { // Body set the content of the element. Body(nodes ...Node) HTMLTr // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTr // 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) HTMLTr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTr // ID specifies a unique id for an element. ID(v string) HTMLTr // Lang specifies the language of the element's content. Lang(v string) HTMLTr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTr // Title specifies extra information about an element. Title(v string) HTMLTr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLTr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLTr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLTr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLTr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLTr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLTr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLTr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLTr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLTr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLTr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLTr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLTr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLTr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLTr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLTr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLTr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLTr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLTr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLTr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLTr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLTr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLTr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLTr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLTr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLTr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLTr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLTr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLTr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLTr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLTr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLTr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLTr // contains filtered or unexported methods }
HTMLTr is the interface that describes a <tr> HTML element.
type HTMLU ¶ added in v1.0.1
type HTMLU interface { // Body set the content of the element. Body(nodes ...Node) HTMLU // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLU // 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) HTMLU // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLU // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLU // Dir specifies the text direction for the content in an element. Dir(v string) HTMLU // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLU // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLU // ID specifies a unique id for an element. ID(v string) HTMLU // Lang specifies the language of the element's content. Lang(v string) HTMLU // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLU // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLU // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLU // Title specifies extra information about an element. Title(v string) HTMLU // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLU // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLU // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLU // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLU // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLU // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLU // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLU // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLU // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLU // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLU // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLU // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLU // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLU // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLU // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLU // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLU // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLU // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLU // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLU // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLU // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLU // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLU // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLU // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLU // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLU // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLU // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLU // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLU // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLU // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLU // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLU // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLU // contains filtered or unexported methods }
HTMLU is the interface that describes a <u> HTML element.
type HTMLUl ¶ added in v1.0.1
type HTMLUl interface { // Body set the content of the element. Body(nodes ...Node) HTMLUl // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLUl // 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) HTMLUl // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLUl // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLUl // Dir specifies the text direction for the content in an element. Dir(v string) HTMLUl // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLUl // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLUl // ID specifies a unique id for an element. ID(v string) HTMLUl // Lang specifies the language of the element's content. Lang(v string) HTMLUl // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLUl // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLUl // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLUl // Title specifies extra information about an element. Title(v string) HTMLUl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLUl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLUl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLUl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLUl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLUl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLUl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLUl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLUl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLUl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLUl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLUl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLUl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLUl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLUl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLUl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLUl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLUl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLUl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLUl // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLUl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLUl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLUl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLUl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLUl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLUl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLUl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLUl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLUl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLUl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLUl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLUl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLUl // contains filtered or unexported methods }
HTMLUl is the interface that describes a <ul> HTML element.
type HTMLVar ¶ added in v1.0.1
type HTMLVar interface { // Body set the content of the element. Body(nodes ...Node) HTMLVar // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLVar // 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) HTMLVar // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLVar // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLVar // Dir specifies the text direction for the content in an element. Dir(v string) HTMLVar // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLVar // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLVar // ID specifies a unique id for an element. ID(v string) HTMLVar // Lang specifies the language of the element's content. Lang(v string) HTMLVar // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLVar // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLVar // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLVar // Title specifies extra information about an element. Title(v string) HTMLVar // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLVar // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLVar // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLVar // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLVar // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLVar // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLVar // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLVar // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLVar // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLVar // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLVar // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLVar // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLVar // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLVar // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLVar // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLVar // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLVar // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLVar // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLVar // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLVar // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLVar // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLVar // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLVar // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLVar // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLVar // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLVar // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLVar // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLVar // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLVar // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLVar // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLVar // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLVar // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLVar // contains filtered or unexported methods }
HTMLVar is the interface that describes a <var> HTML element.
type HTMLVideo ¶ added in v1.0.1
type HTMLVideo interface { // Body set the content of the element. Body(nodes ...Node) HTMLVideo // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLVideo // AutoPlay specifies that the audio/video will start playing as soon as it is ready. AutoPlay(v bool) HTMLVideo // 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) HTMLVideo // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLVideo // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc). Controls(v bool) HTMLVideo // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLVideo // Dir specifies the text direction for the content in an element. Dir(v string) HTMLVideo // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLVideo // Height specifies the height of the element (in pixels). Height(v int) HTMLVideo // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLVideo // ID specifies a unique id for an element. ID(v string) HTMLVideo // Lang specifies the language of the element's content. Lang(v string) HTMLVideo // Loop specifies that the audio/video will start over again, every time it is finished. Loop(v bool) HTMLVideo // Muted specifies that the audio output of the video should be muted. Muted(v bool) HTMLVideo // Poster specifies an image to be shown while the video is downloading, or until the user hits the play button. Poster(v string) HTMLVideo // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads. Preload(v string) HTMLVideo // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLVideo // Src specifies the URL of the media file. Src(v string) HTMLVideo // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLVideo // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLVideo // Title specifies extra information about an element. Title(v string) HTMLVideo // Width specifies the width of the element. Width(v int) HTMLVideo // OnAbort calls the given handler on abort. OnAbort(h EventHandler) HTMLVideo // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLVideo // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). OnCanPlay(h EventHandler) HTMLVideo // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. OnCanPlayThrough(h EventHandler) HTMLVideo // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLVideo // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLVideo // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLVideo // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLVideo // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler) HTMLVideo // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLVideo // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLVideo // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLVideo // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLVideo // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLVideo // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLVideo // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLVideo // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLVideo // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLVideo // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler) HTMLVideo // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler) HTMLVideo // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler) HTMLVideo // OnError calls the given handler when an error occurs. OnError(h EventHandler) HTMLVideo // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLVideo // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLVideo // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLVideo // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLVideo // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLVideo // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLVideo // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler) HTMLVideo // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler) HTMLVideo // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLVideo // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLVideo // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLVideo // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLVideo // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLVideo // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLVideo // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler) HTMLVideo // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler) HTMLVideo // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler) HTMLVideo // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler) HTMLVideo // 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) HTMLVideo // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLVideo // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLVideo // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLVideo // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler) HTMLVideo // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler) HTMLVideo // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLVideo // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler) HTMLVideo // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLVideo // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler) HTMLVideo // 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) HTMLVideo // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler) HTMLVideo // 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) HTMLVideo // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLVideo // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler) HTMLVideo // contains filtered or unexported methods }
HTMLVideo is the interface that describes a <video> HTML element.
type HTMLWbr ¶ added in v1.0.1
type HTMLWbr interface { // Body set the content of the element. Body(nodes ...Node) HTMLWbr // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLWbr // 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) HTMLWbr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLWbr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLWbr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLWbr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLWbr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLWbr // ID specifies a unique id for an element. ID(v string) HTMLWbr // Lang specifies the language of the element's content. Lang(v string) HTMLWbr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLWbr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLWbr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLWbr // Title specifies extra information about an element. Title(v string) HTMLWbr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler) HTMLWbr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler) HTMLWbr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler) HTMLWbr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler) HTMLWbr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler) HTMLWbr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler) HTMLWbr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler) HTMLWbr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler) HTMLWbr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler) HTMLWbr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler) HTMLWbr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler) HTMLWbr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler) HTMLWbr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler) HTMLWbr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler) HTMLWbr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler) HTMLWbr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler) HTMLWbr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler) HTMLWbr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler) HTMLWbr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler) HTMLWbr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler) HTMLWbr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler) HTMLWbr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler) HTMLWbr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler) HTMLWbr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler) HTMLWbr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler) HTMLWbr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler) HTMLWbr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler) HTMLWbr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler) HTMLWbr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler) HTMLWbr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler) HTMLWbr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler) HTMLWbr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler) HTMLWbr // contains filtered or unexported methods }
HTMLWbr is the interface that describes a <wbr> HTML element.
type Handler ¶
type Handler struct { // The page authors. Author string // A placeholder background color for the application page to display before // its stylesheets are loaded. // // DEFAULT: #2d2c2c. BackgroundColor string // The page description. Description string // The icon that is used for the PWA, favicon, loading and default not // found component. Icon Icon // The page keywords. Keywords []string // The text displayed while loading a page. LoadingLabel string // The name of the web application as it is usually displayed to the user. Name string // Additional headers to be added in head element. RawHeaders []string // The paths or urls of the JavaScript files to use with the page. // // Paths are relative to the program location. Scripts []string // The name of the web application displayed to the user when there is not // enough space to display Name. ShortName string // The paths or urls of the CSS files to use with the page. // // Paths are relative to the program location. Styles []string // The theme color for the application. This affects how the OS displays the // app (e.g., PWA title var or Android's task switcher). // // DEFAULT: #2d2c2c. ThemeColor string // The page title. Title string // The version number. This is used in order to update the PWA application // in the browser. It must be set when deployed on a live system in order to // prevent recurring updates. // // Default: Auto-generated in order to trigger pwa update on a local // development system. Version string // contains filtered or unexported fields }
Handler is an HTTP handler that serves an HTML page that loads a Go wasm app and its resources.
type Icon ¶ added in v1.0.1
type Icon struct { // The path or url to a square image/png file. It must have a side of 192px. // // Path is relative to the program location. Default string // The path or url to larger square image/png file. It must have a side of // 512px. // // Path is relative to the program location. Large string // The path or url to a square image/png file that is used for IOS/IPadOS // home screen icon. It must have a side of 192px. // // Path is relative to the program location. // // DEFAULT: Icon.Default AppleTouch string }
Icon describes a square image that is used in various places such as application icon, favicon or loading icon.
type MenuItemNode ¶ added in v1.0.1
type MenuItemNode interface { Node // Disabled specifies whether the menu item is disabled. Disabled(bool) MenuItemNode // Keys set the menu item keys. Keys(string) MenuItemNode // Icon set the menu item icon. // "cmdorctrl" is replaced by the platform corresponding key. Icon(string) MenuItemNode // Label set the menu item label. Label(string) MenuItemNode // OnClick calls the given handler when there is a mouse click on the element. OnClick(EventHandler) MenuItemNode // Separator specifies that the menu item is a separator. Separator() MenuItemNode // Title specifies extra information about the item. Title(string) MenuItemNode }
MenuItemNode is the interface that describes a menu node.
type Mounter ¶
type Mounter interface { Composer // The function that is called when the component is mounted. OnMount() }
Mounter is the interface that describes a component that can perform additional actions when mounted.
type Navigator ¶ added in v1.0.1
Navigator is the interface that describes a component that can perform additional actions when navigated on.
type Node ¶ added in v1.0.1
type Node interface {
// contains filtered or unexported methods
}
Node is the interface that describes an UI node.
type RangeLoop ¶ added in v1.0.1
type RangeLoop interface { Node // Slice sets the loop content by repeating the given function for the // number of elements in the source. // // It panics if the range source is not a slice or an array. Slice(f func(int) UI) RangeLoop // Map sets the loop content by repeating the given function for the number // of elements in the source. Elements are ordered by keys. // // It panics if the range source is not a map or if map keys are not strings. Map(f func(string) UI) RangeLoop // contains filtered or unexported methods }
RangeLoop represents a control structure that iterates within a slice, an array or a map.
type UI ¶
UI is the interface that describes a node that is a user interface element. eg. HTML elements and components.
type Value ¶ added in v1.0.1
type Value interface { // Bool returns the value v as a bool. It panics if v is not a JavaScript // boolean. Bool() bool // Call does a JavaScript call to the method m of value v with the given // arguments. It panics if v has no method m. The arguments get mapped to // JavaScript values according to the ValueOf function. Call(m string, args ...interface{}) Value // Float returns the value v as a float64. It panics if v is not a // JavaScript number. Float() float64 // Get returns the JavaScript property p of value v. It panics if v is not a // JavaScript object. Get(p string) Value // Index returns JavaScript index i of value v. It panics if v is not a // JavaScript object. Index(i int) Value // InstanceOf reports whether v is an instance of type t according to // JavaScript's instanceof operator. InstanceOf(t Value) bool // Int returns the value v truncated to an int. It panics if v is not a // JavaScript number. Int() int // Invoke does a JavaScript call of the value v with the given arguments. It // panics if v is not a JavaScript function. The arguments get mapped to // JavaScript values according to the ValueOf function. Invoke(args ...interface{}) Value // IsNaN reports whether v is the JavaScript value "NaN". IsNaN() bool // IsNull reports whether v is the JavaScript value "null". IsNull() bool // IsUndefined reports whether v is the JavaScript value "undefined". IsUndefined() bool // JSValue implements Wrapper interface. JSValue() Value // Length returns the JavaScript property "length" of v. It panics if v is // not a JavaScript object. Length() int // New uses JavaScript's "new" operator with value v as constructor and the // given arguments. It panics if v is not a JavaScript function. The // arguments get mapped to JavaScript values according to the ValueOf // function. New(args ...interface{}) Value // Set sets the JavaScript property p of value v to ValueOf(x). It panics if // v is not a JavaScript object. Set(p string, x interface{}) // SetIndex sets the JavaScript index i of value v to ValueOf(x). It panics // if v is not a JavaScript object. SetIndex(i int, x interface{}) // String returns the value v as a string. String is a special case because // of Go's String method convention. Unlike the other getters, it does not // panic if v's Type is not TypeString. Instead, it returns a string of the // form "<T>" or "<T: V>" where T is v's type and V is a string // representation of v's value. String() string // Truthy returns the JavaScript "truthiness" of the value v. In JavaScript, // false, 0, "", null, undefined, and NaN are "falsy", and everything else // is "truthy". See // https://developer.mozilla.org/en-US/docs/Glossary/Truthy. Truthy() bool // Type returns the JavaScript type of the value v. It is similar to // JavaScript's typeof operator, except that it returns TypeNull instead of // TypeObject for null. Type() Type }
Value is the interface that represents a JavaScript value. On wasm architecture, it wraps the Value from https://golang.org/pkg/syscall/js/ package.
func Undefined ¶ added in v1.0.1
func Undefined() Value
Undefined returns the JavaScript value "undefined".
func ValueOf ¶ added in v1.0.1
func ValueOf(x interface{}) Value
ValueOf returns x as a JavaScript value:
| Go | JavaScript | | ---------------------- | ---------------------- | | js.Value | [its value] | | js.Func | function | | nil | null | | bool | boolean | | integers and floats | number | | string | string | | []interface{} | new array | | map[string]interface{} | new object |
Panics if x is not one of the expected types.