type HTMLLink interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLLink // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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 // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) 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, scope ...interface{}) HTMLLink // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLLink // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLLink // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLLink // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLLink // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLLink // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLLink // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLLink // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLLink // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLLink // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLLink // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLLink // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLLink // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLLink // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLLink // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLLink // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLLink // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLLink // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLLink // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLLink // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLLink // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLLink // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLLink // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLLink // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLLink // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLLink // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLLink // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLLink // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLLink // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLLink // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLLink // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLLink // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLLink }
HTMLLink is the interface that describes a <link> HTML element.
type HTMLMain ¶
type HTMLMain interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMain // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMain // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMain // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLMain // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMain // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMain // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMain // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMain // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMain // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMain // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMain // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMain // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMain // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMain // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMain // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMain // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMain // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMain // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMain // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMain // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMain // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMain // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMain // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMain // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMain // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMain // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMain // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMain // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMain // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMain // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMain // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMain // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMain // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMain // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLMain }
HTMLMain is the interface that describes a <main> HTML element.
type HTMLMap ¶
type HTMLMap interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMap // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMap // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMap // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLMap // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMap // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMap // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMap // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMap // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMap // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMap // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMap // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMap // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMap // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMap // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMap // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMap // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMap // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMap // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMap // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMap // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMap // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMap // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMap // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMap // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMap // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMap // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMap // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMap // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMap // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMap // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMap // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMap // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMap // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMap // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLMap }
HTMLMap is the interface that describes a <map> HTML element.
type HTMLMark ¶
type HTMLMark interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMark // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMark // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMark // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLMark // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMark // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMark // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMark // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMark // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMark // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMark // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMark // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMark // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMark // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMark // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMark // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMark // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMark // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMark // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMark // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMark // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMark // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMark // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMark // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMark // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMark // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMark // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMark // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMark // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMark // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMark // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMark // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMark // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMark // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMark // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLMark }
HTMLMark is the interface that describes a <mark> HTML element.
type HTMLMeta ¶
type HTMLMeta interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMeta // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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 // Property specifies the property name. Property(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 }
HTMLMeta is the interface that describes a <meta> HTML element.
type HTMLMeter ¶
type HTMLMeter interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMeter // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMeter // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMeter // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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 interface{}) HTMLMeter // Min specifies a minimum value. Min(v interface{}) 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, scope ...interface{}) HTMLMeter // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMeter // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMeter // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMeter // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMeter // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMeter // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMeter // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMeter // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMeter // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMeter // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMeter // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMeter // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMeter // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMeter // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMeter // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMeter // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMeter // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMeter // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMeter // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMeter // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMeter // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMeter // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMeter // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMeter // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMeter // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMeter // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.  Body(elems ...UI) HTMLNoScript // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLNoScript // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLNoScript // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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 }
HTMLNoScript is the interface that describes a <noscript> HTML element.
func NoScript ¶
func NoScript() HTMLNoScript
NoScript returns an HTML element that defines an alternate content for users that do not support client-side scripts.
type HTMLObject ¶
type HTMLObject interface { UI // Body set the content of the element. Body(elems ...UI) HTMLObject // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLObject // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLObject // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLObject // OnBlur calls the given handler when the element loses focus.  OnCanPlay(h EventHandler, scope ...interface{}) 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, scope ...interface{}) HTMLObject // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLObject // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLObject // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLObject // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLObject // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...interface{}) HTMLObject // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLObject // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLObject // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLObject // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLObject // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLObject // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLObject // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLObject // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLObject // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLObject // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...interface{}) HTMLObject // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...interface{}) HTMLObject // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...interface{}) HTMLObject // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLObject // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLObject // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLObject // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLObject // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLObject // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLObject // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLObject // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...interface{}) HTMLObject // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...interface{}) HTMLObject // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLObject // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLObject // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLObject // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLObject // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLObject // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLObject // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...interface{}) HTMLObject // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...interface{}) HTMLObject // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...interface{}) HTMLObject // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...interface{}) 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, scope ...interface{}) HTMLObject // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLObject // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLObject // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLObject // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...interface{}) HTMLObject // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...interface{}) HTMLObject // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLObject // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...interface{}) HTMLObject // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLObject // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler, scope ...interface{}) 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, scope ...interface{}) HTMLObject // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...interface{}) 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, scope ...interface{}) HTMLObject // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLObject // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler, scope ...interface{}) HTMLObject }
HTMLObject is the interface that describes a <object> HTML element.
func Object ¶
func Object() HTMLObject
Object returns an HTML element that defines an embedded object.
type HTMLOl ¶
type HTMLOl interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOl // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOl // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOl // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLOl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOl // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOl }
HTMLOl is the interface that describes a <ol> HTML element.
type HTMLOptGroup ¶
type HTMLOptGroup interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOptGroup // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOptGroup // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOptGroup // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLOptGroup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOptGroup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOptGroup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOptGroup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOptGroup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOptGroup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOptGroup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOptGroup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOptGroup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOptGroup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOptGroup // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOptGroup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOptGroup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOptGroup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOptGroup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOptGroup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOptGroup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOptGroup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOptGroup }
HTMLOptGroup is the interface that describes a <optgroup> HTML element.
func OptGroup ¶
func OptGroup() HTMLOptGroup
OptGroup returns an HTML element that defines a group of related options in a drop-down list.
type HTMLOption ¶
type HTMLOption interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOption // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOption // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOption // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLOption // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOption // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOption // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOption // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOption // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOption // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOption // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOption // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOption // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOption // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOption // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOption // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOption // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOption // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOption // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOption // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOption // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOption // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOption // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOption // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOption // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOption // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOption // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOption // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOption // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOption // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOption // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOption // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOption // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOption // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOption // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOption }
HTMLOption is the interface that describes a <option> HTML element.
func Option ¶
func Option() HTMLOption
Option returns an HTML element that defines an option in a drop-down list.
type HTMLOutput ¶
type HTMLOutput interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOutput // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOutput // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOutput // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLOutput // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOutput // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOutput // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOutput // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOutput // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOutput // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOutput // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOutput // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOutput // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOutput // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOutput // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOutput // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOutput // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOutput // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOutput // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOutput // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOutput // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOutput // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOutput // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOutput // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOutput // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOutput // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOutput // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOutput // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOutput // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOutput // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOutput }
HTMLOutput is the interface that describes a <output> HTML element.
type HTMLP ¶
type HTMLP interface { UI // Body set the content of the element. Body(elems ...UI) HTMLP // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLP // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLP // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLP // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLP // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLP // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLP // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLP // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLP // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLP // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLP // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLP // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLP // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLP // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLP // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLP // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLP // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLP // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLP // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLP // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLP // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLP // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLP // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLP // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLP // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLP // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLP // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLP // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLP // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLP // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLP // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLP // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLP // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLP // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLP }
HTMLP is the interface that describes a <p> HTML element.
type HTMLParam ¶
type HTMLParam interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLParam // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLParam // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLParam // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLParam // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLParam // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLParam // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLParam // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLParam // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLParam // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLParam // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLParam // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLParam // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLParam // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLParam // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLParam // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLParam // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLParam // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLParam // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLParam // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLParam // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLParam // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLParam // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLParam // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLParam // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLParam // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLParam // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLParam // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLParam // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLParam // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLParam // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLParam // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLParam // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLParam }
HTMLParam is the interface that describes a <param> HTML element.
type HTMLPicture ¶
type HTMLPicture interface { UI // Body set the content of the element. Body(elems ...UI) HTMLPicture // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLPicture // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLPicture // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLPicture // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLPicture // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLPicture // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLPicture // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLPicture // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLPicture // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLPicture // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLPicture // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLPicture // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLPicture // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLPicture // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLPicture // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLPicture // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLPicture // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLPicture // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLPicture // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLPicture // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLPicture // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLPicture // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLPicture // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLPicture // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLPicture // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLPicture // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLPicture // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLPicture // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLPicture // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLPicture }
HTMLPicture is the interface that describes a <picture> HTML element.
func Picture ¶
func Picture() HTMLPicture
Picture returns an HTML element that defines a container for multiple image resources.
type HTMLPre ¶
type HTMLPre interface { UI // Body set the content of the element. Body(elems ...UI) HTMLPre // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLPre // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLPre // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLPre // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLPre // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLPre // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLPre // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLPre // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLPre // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLPre // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLPre // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLPre // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLPre // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLPre // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLPre // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLPre // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLPre // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLPre // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLPre // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLPre // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLPre // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLPre // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLPre // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLPre // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLPre // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLPre // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLPre // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLPre // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLPre // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLPre // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLPre // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLPre // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLPre // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLPre // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLPre }
HTMLPre is the interface that describes a <pre> HTML element.
type HTMLProgress ¶
type HTMLProgress interface { UI // Body set the content of the element. Body(elems ...UI) HTMLProgress // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLProgress // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLProgress // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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 interface{}) 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, scope ...interface{}) HTMLProgress // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLProgress // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLProgress // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLProgress // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLProgress // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLProgress // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLProgress // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLProgress // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLProgress // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLProgress // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLProgress // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLProgress // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLProgress // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLProgress // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLProgress // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLProgress // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLProgress // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLProgress // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLProgress // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLProgress // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLProgress // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLProgress // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLProgress // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLProgress // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLProgress // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLProgress // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLProgress }
HTMLProgress is the interface that describes a <progress> HTML element.
func Progress ¶
func Progress() HTMLProgress
Progress returns an HTML element that represents the progress of a task.
type HTMLQ ¶
type HTMLQ interface { UI // Body set the content of the element. Body(elems ...UI) HTMLQ // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLQ // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLQ // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLQ // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLQ // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLQ // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLQ // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLQ // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLQ // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLQ // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLQ // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLQ // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLQ // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLQ // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLQ // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLQ // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLQ // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLQ // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLQ // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLQ // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLQ // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLQ // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLQ // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLQ // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLQ // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLQ // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLQ // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLQ // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLQ // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLQ // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLQ // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLQ // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLQ // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLQ // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLQ }
HTMLQ is the interface that describes a <q> HTML element.
type HTMLRp ¶
type HTMLRp interface { UI // Body set the content of the element. Body(elems ...UI) HTMLRp // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLRp // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLRp // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLRp // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLRp // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLRp // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLRp // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLRp // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLRp // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLRp // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLRp // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLRp // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLRp // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLRp // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLRp // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLRp // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLRp // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLRp // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLRp // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLRp // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLRp // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLRp // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLRp // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLRp // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLRp // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLRp // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLRp // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLRp // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLRp // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLRp // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLRp // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLRp // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLRp // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLRp // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLRp }
HTMLRp is the interface that describes a <rp> HTML element.
type HTMLRt ¶
type HTMLRt interface { UI // Body set the content of the element. Body(elems ...UI) HTMLRt // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLRt // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLRt // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLRt // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLRt // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLRt // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLRt // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLRt // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLRt // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLRt // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLRt // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLRt // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLRt // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLRt // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLRt // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLRt // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLRt // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLRt // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLRt // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLRt // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLRt // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLRt // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLRt // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLRt // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLRt // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLRt // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLRt // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLRt // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLRt // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLRt // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLRt // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLRt // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLRt // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLRt // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLRt }
HTMLRt is the interface that describes a <rt> HTML element.
type HTMLRuby ¶
type HTMLRuby interface { UI // Body set the content of the element. Body(elems ...UI) HTMLRuby // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLRuby // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLRuby // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) 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, scope ...interface{}) HTMLRuby // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLRuby // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLRuby // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLRuby // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLRuby // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLRuby // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLRuby // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLRuby // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLRuby // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLRuby // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLRuby // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLRuby // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLRuby // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLRuby // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLRuby // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLRuby // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLRuby // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLRuby // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLRuby // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLRuby // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLRuby // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLRuby // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLRuby // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLRuby // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLRuby // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLRuby // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLRuby }
HTMLRuby is the interface that describes a <ruby> HTML element.
type HTMLS ¶