type HTMLS interface { UI // Body set the content of the element. Body(elems ...UI) HTMLS // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLS // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLS // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLS // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLS // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLS // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLS // Dir specifies the text direction for the content in an element. Dir(v string) HTMLS // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLS // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLS // ID specifies a unique id for an element. ID(v string) HTMLS // Lang specifies the language of the element's content. Lang(v string) HTMLS // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLS // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLS // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLS // Title specifies extra information about an element. Title(v string) HTMLS // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLS // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLS // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLS // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLS // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLS // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLS // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLS // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLS // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLS // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLS // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLS // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLS // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLS // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLS // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLS // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLS // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLS // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLS // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLS // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLS // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLS // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLS // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLS // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLS // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLS // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLS // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLS // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLS // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLS // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLS // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLS // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLS }
HTMLS is the interface that describes a <s> HTML element.
type HTMLSamp ¶
type HTMLSamp interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSamp // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSamp // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSamp // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSamp // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSamp // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSamp // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSamp // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSamp // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSamp // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSamp // ID specifies a unique id for an element. ID(v string) HTMLSamp // Lang specifies the language of the element's content. Lang(v string) HTMLSamp // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSamp // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSamp // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSamp // Title specifies extra information about an element. Title(v string) HTMLSamp // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSamp // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSamp // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSamp // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSamp // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSamp // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSamp // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSamp // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSamp // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSamp // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSamp // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSamp // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSamp // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSamp // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSamp // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSamp // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSamp // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSamp // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSamp // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSamp // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSamp // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSamp // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSamp // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSamp // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSamp // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSamp // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSamp // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSamp // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSamp // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSamp // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSamp // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSamp // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSamp }
HTMLSamp is the interface that describes a <samp> HTML element.
type HTMLScript ¶
type HTMLScript interface { UI // Body set the content of the element. Body(elems ...UI) HTMLScript // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLScript // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLScript // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLScript // Async specifies that the script is executed asynchronously (only for external scripts). Async(v bool) HTMLScript // Charset specifies the character encoding. Charset(v string) HTMLScript // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLScript // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLScript // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) HTMLScript // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLScript // Defer specifies that the script is executed when the page has finished parsing (only for external scripts). Defer(v bool) HTMLScript // Dir specifies the text direction for the content in an element. Dir(v string) HTMLScript // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLScript // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLScript // ID specifies a unique id for an element. ID(v string) HTMLScript // Lang specifies the language of the element's content. Lang(v string) HTMLScript // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLScript // Src specifies the URL of the media file. Src(v string) HTMLScript // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLScript // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLScript // Title specifies extra information about an element. Title(v string) HTMLScript // Type specifies the type of element. Type(v string) HTMLScript // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLScript }
HTMLScript is the interface that describes a <script> HTML element.
func Script ¶
func Script() HTMLScript
Script returns an HTML element that defines a client-side script.
type HTMLSection ¶
type HTMLSection interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSection // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSection // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSection // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSection // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSection // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSection // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSection // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSection // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSection // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSection // ID specifies a unique id for an element. ID(v string) HTMLSection // Lang specifies the language of the element's content. Lang(v string) HTMLSection // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSection // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSection // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSection // Title specifies extra information about an element. Title(v string) HTMLSection // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSection // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSection // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSection // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSection // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSection // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSection // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSection // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSection // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSection // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSection // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSection // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSection // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSection // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSection // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSection // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSection // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSection // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSection // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSection // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSection // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSection // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSection // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSection // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSection // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSection // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSection // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSection // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSection // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSection // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSection // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSection // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSection }
HTMLSection is the interface that describes a <section> HTML element.
func Section ¶
func Section() HTMLSection
Section returns an HTML element that defines a section in a document.
type HTMLSelect ¶
type HTMLSelect interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSelect // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSelect // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSelect // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSelect // AutoFocus specifies that the element should automatically get focus when the page loads. AutoFocus(v bool) HTMLSelect // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSelect // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSelect // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSelect // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSelect // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLSelect // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSelect // Form specifies the name of the form the element belongs to. Form(v string) HTMLSelect // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSelect // ID specifies a unique id for an element. ID(v string) HTMLSelect // Lang specifies the language of the element's content. Lang(v string) HTMLSelect // Multiple specifies that a user can enter more than one value. Multiple(v bool) HTMLSelect // Name specifies the name of the element. Name(v string) HTMLSelect // Required specifies that the element must be filled out before submitting the form. Required(v bool) HTMLSelect // Size specifies the width. Size(v int) HTMLSelect // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSelect // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSelect // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSelect // Title specifies extra information about an element. Title(v string) HTMLSelect // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSelect // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSelect // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSelect // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSelect // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSelect // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSelect // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSelect // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSelect // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSelect // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSelect // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSelect // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSelect // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSelect // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSelect // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSelect // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSelect // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSelect // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSelect // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSelect // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSelect // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSelect // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSelect // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSelect // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSelect // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSelect // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSelect // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSelect // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSelect // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSelect // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSelect // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSelect // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSelect }
HTMLSelect is the interface that describes a <select> HTML element.
func Select ¶
func Select() HTMLSelect
Select returns an HTML element that defines a drop-down list.
type HTMLSmall ¶
type HTMLSmall interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSmall // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSmall // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSmall // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSmall // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSmall // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSmall // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSmall // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSmall // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSmall // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSmall // ID specifies a unique id for an element. ID(v string) HTMLSmall // Lang specifies the language of the element's content. Lang(v string) HTMLSmall // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSmall // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSmall // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSmall // Title specifies extra information about an element. Title(v string) HTMLSmall // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSmall // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSmall // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSmall // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSmall // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSmall // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSmall // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSmall // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSmall // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSmall // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSmall // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSmall // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSmall // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSmall // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSmall // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSmall // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSmall // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSmall // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSmall // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSmall // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSmall // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSmall // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSmall // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSmall // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSmall // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSmall // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSmall // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSmall // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSmall // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSmall // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSmall // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSmall // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSmall }
HTMLSmall is the interface that describes a <small> HTML element.
type HTMLSource ¶
type HTMLSource interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSource // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSource // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSource // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSource // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSource // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSource // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSource // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSource // ID specifies a unique id for an element. ID(v string) HTMLSource // Lang specifies the language of the element's content. Lang(v string) HTMLSource // Media specifies what media/device the linked document is optimized for. Media(v string) HTMLSource // Sizes specifies the size of the linked resource. Sizes(v string) HTMLSource // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSource // Src specifies the URL of the media file. Src(v string) HTMLSource // SrcSet specifies the URL of the image to use in different situations. SrcSet(v string) HTMLSource // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSource // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSource // Title specifies extra information about an element. Title(v string) HTMLSource // Type specifies the type of element. Type(v string) HTMLSource // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSource // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSource // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSource // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSource // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSource // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSource // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSource // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSource // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSource // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSource // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSource // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSource // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSource // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSource // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSource // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSource // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSource // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSource // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSource // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSource // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSource // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSource // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSource // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSource // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSource // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSource // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSource // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSource // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSource // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSource // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSource // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSource }
HTMLSource is the interface that describes a <source> HTML element.
type HTMLSpan ¶
type HTMLSpan interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSpan // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSpan // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSpan // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSpan // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSpan // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSpan // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSpan // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSpan // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSpan // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSpan // ID specifies a unique id for an element. ID(v string) HTMLSpan // Lang specifies the language of the element's content. Lang(v string) HTMLSpan // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSpan // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSpan // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSpan // Title specifies extra information about an element. Title(v string) HTMLSpan // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSpan // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSpan // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSpan // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSpan // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSpan // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSpan // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSpan // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSpan // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSpan // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSpan // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSpan // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSpan // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSpan // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSpan // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSpan // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSpan // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSpan // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSpan // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSpan // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSpan // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSpan // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSpan // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSpan // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSpan // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSpan // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSpan // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSpan // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSpan // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSpan // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSpan // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSpan // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSpan }
HTMLSpan is the interface that describes a <span> HTML element.
type HTMLStrong ¶
type HTMLStrong interface { UI // Body set the content of the element. Body(elems ...UI) HTMLStrong // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLStrong // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLStrong // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLStrong // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLStrong // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLStrong // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLStrong // Dir specifies the text direction for the content in an element. Dir(v string) HTMLStrong // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLStrong // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLStrong // ID specifies a unique id for an element. ID(v string) HTMLStrong // Lang specifies the language of the element's content. Lang(v string) HTMLStrong // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLStrong // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLStrong // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLStrong // Title specifies extra information about an element. Title(v string) HTMLStrong // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLStrong // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLStrong // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLStrong // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLStrong // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLStrong // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLStrong // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLStrong // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLStrong // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLStrong // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLStrong // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLStrong // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLStrong // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLStrong // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLStrong // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLStrong // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLStrong // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLStrong // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLStrong // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLStrong // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLStrong // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLStrong // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLStrong // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLStrong // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLStrong // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLStrong // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLStrong // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLStrong // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLStrong // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLStrong // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLStrong // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLStrong // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLStrong }
HTMLStrong is the interface that describes a <strong> HTML element.
type HTMLStyle ¶
type HTMLStyle interface { UI // Body set the content of the element. Body(elems ...UI) HTMLStyle // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLStyle // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLStyle // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLStyle // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLStyle // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLStyle // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLStyle // Dir specifies the text direction for the content in an element. Dir(v string) HTMLStyle // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLStyle // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLStyle // ID specifies a unique id for an element. ID(v string) HTMLStyle // Lang specifies the language of the element's content. Lang(v string) HTMLStyle // Media specifies what media/device the linked document is optimized for. Media(v string) HTMLStyle // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLStyle // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLStyle // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLStyle // Title specifies extra information about an element. Title(v string) HTMLStyle // Type specifies the type of element. Type(v string) HTMLStyle // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLStyle // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLStyle // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLStyle // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLStyle // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLStyle // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLStyle // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLStyle // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLStyle // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLStyle // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLStyle // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLStyle // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLStyle // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLStyle // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLStyle // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLStyle // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLStyle // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLStyle // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLStyle // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLStyle // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLStyle // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLStyle // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLStyle // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLStyle // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLStyle // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLStyle // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLStyle // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLStyle // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLStyle // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLStyle // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLStyle // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLStyle // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLStyle // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLStyle }
HTMLStyle is the interface that describes a <style> HTML element.
type HTMLSub ¶
type HTMLSub interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSub // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSub // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSub // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSub // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSub // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSub // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSub // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSub // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSub // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSub // ID specifies a unique id for an element. ID(v string) HTMLSub // Lang specifies the language of the element's content. Lang(v string) HTMLSub // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSub // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSub // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSub // Title specifies extra information about an element. Title(v string) HTMLSub // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSub // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSub // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSub // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSub // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSub // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSub // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSub // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSub // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSub // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSub // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSub // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSub // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSub // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSub // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSub // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSub // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSub // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSub // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSub // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSub // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSub // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSub // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSub // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSub // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSub // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSub // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSub // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSub // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSub // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSub // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSub // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSub }
HTMLSub is the interface that describes a <sub> HTML element.
type HTMLSummary ¶
type HTMLSummary interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSummary // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSummary // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSummary // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSummary // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSummary // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSummary // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSummary // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSummary // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSummary // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSummary // ID specifies a unique id for an element. ID(v string) HTMLSummary // Lang specifies the language of the element's content. Lang(v string) HTMLSummary // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSummary // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSummary // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSummary // Title specifies extra information about an element. Title(v string) HTMLSummary // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSummary // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSummary // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSummary // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSummary // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSummary // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSummary // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSummary // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSummary // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSummary // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSummary // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSummary // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSummary // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSummary // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSummary // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSummary // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSummary // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSummary // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSummary // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSummary // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSummary // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSummary // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSummary // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSummary // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSummary // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSummary // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSummary // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSummary // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSummary // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSummary // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSummary // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSummary // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSummary }
HTMLSummary is the interface that describes a <summary> HTML element.
func Summary ¶
func Summary() HTMLSummary
Summary returns an HTML element that defines a visible heading for a details element.
type HTMLSup ¶
type HTMLSup interface { UI // Body set the content of the element. Body(elems ...UI) HTMLSup // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLSup // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLSup // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLSup // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLSup // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLSup // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLSup // Dir specifies the text direction for the content in an element. Dir(v string) HTMLSup // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLSup // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLSup // ID specifies a unique id for an element. ID(v string) HTMLSup // Lang specifies the language of the element's content. Lang(v string) HTMLSup // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLSup // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLSup // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLSup // Title specifies extra information about an element. Title(v string) HTMLSup // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLSup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLSup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLSup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLSup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLSup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLSup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLSup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLSup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLSup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLSup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLSup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLSup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLSup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLSup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLSup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLSup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLSup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLSup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLSup // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLSup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLSup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLSup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLSup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLSup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLSup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLSup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLSup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLSup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLSup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLSup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLSup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLSup }
HTMLSup is the interface that describes a <sup> HTML element.
type HTMLTBody ¶
type HTMLTBody interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTBody // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTBody // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTBody // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTBody // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTBody // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTBody // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTBody // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTBody // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTBody // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTBody // ID specifies a unique id for an element. ID(v string) HTMLTBody // Lang specifies the language of the element's content. Lang(v string) HTMLTBody // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTBody // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTBody // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTBody // Title specifies extra information about an element. Title(v string) HTMLTBody // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTBody // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTBody // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTBody // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTBody // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTBody // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTBody // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTBody // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTBody // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTBody // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTBody // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTBody // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTBody // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTBody // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTBody // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTBody // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTBody // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTBody // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTBody // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTBody // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTBody // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTBody // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTBody // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTBody // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTBody // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTBody // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTBody // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTBody // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTBody // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTBody // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTBody // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTBody // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTBody }
HTMLTBody is the interface that describes a <tbody> HTML element.
type HTMLTHead ¶
type HTMLTHead interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTHead // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTHead // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTHead // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTHead // 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) HTMLTHead // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTHead // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTHead // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTHead // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTHead // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTHead // ID specifies a unique id for an element. ID(v string) HTMLTHead // Lang specifies the language of the element's content. Lang(v string) HTMLTHead // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTHead // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTHead // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTHead // Title specifies extra information about an element. Title(v string) HTMLTHead // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTHead // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTHead // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTHead // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTHead // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTHead // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTHead // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTHead // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTHead // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTHead // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTHead // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTHead // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTHead // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTHead // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTHead // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTHead // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTHead // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTHead // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTHead // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTHead // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTHead // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTHead // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTHead // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTHead // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTHead // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTHead // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTHead // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTHead // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTHead // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTHead // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTHead // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTHead // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTHead }
HTMLTHead is the interface that describes a <thead> HTML element.
type HTMLTable ¶
type HTMLTable interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTable // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTable // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTable // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTable // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTable // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTable // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTable // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTable // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTable // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTable // ID specifies a unique id for an element. ID(v string) HTMLTable // Lang specifies the language of the element's content. Lang(v string) HTMLTable // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTable // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTable // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTable // Title specifies extra information about an element. Title(v string) HTMLTable // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTable // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTable // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTable // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTable // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTable // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTable // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTable // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTable // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTable // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTable // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTable // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTable // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTable // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTable // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTable // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTable // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTable // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTable // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTable // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTable // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTable // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTable // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTable // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTable // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTable // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTable // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTable // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTable // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTable // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTable // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTable // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTable }
HTMLTable is the interface that describes a <table> HTML element.
type HTMLTd ¶
type HTMLTd interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTd // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTd // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTd // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTd // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTd // ColSpan specifies the number of columns a table cell should span. ColSpan(v int) HTMLTd // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTd // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTd // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTd // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTd // Headers specifies one or more headers cells a cell is related to. Headers(v string) HTMLTd // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTd // ID specifies a unique id for an element. ID(v string) HTMLTd // Lang specifies the language of the element's content. Lang(v string) HTMLTd // Rowspan specifies the number of rows a table cell should span. Rowspan(v int) HTMLTd // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTd // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTd // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTd // Title specifies extra information about an element. Title(v string) HTMLTd // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTd // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTd // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTd // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTd // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTd // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTd // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTd // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTd // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTd // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTd // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTd // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTd // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTd // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTd // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTd // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTd // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTd // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTd // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTd // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTd // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTd // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTd // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTd // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTd // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTd // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTd // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTd // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTd // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTd // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTd // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTd // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTd }
HTMLTd is the interface that describes a <td> HTML element.
type HTMLTemplate ¶
type HTMLTemplate interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTemplate // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTemplate // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTemplate // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTemplate // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTemplate // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTemplate // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTemplate // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTemplate // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTemplate // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTemplate // ID specifies a unique id for an element. ID(v string) HTMLTemplate // Lang specifies the language of the element's content. Lang(v string) HTMLTemplate // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTemplate // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTemplate // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTemplate // Title specifies extra information about an element. Title(v string) HTMLTemplate }
HTMLTemplate is the interface that describes a <template> HTML element.
func Template ¶
func Template() HTMLTemplate
Template returns an HTML element that defines a template.
type HTMLTextarea ¶
type HTMLTextarea interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTextarea // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTextarea // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTextarea // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTextarea // AutoFocus specifies that the element should automatically get focus when the page loads. AutoFocus(v bool) HTMLTextarea // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTextarea // Cols specifies the visible width of a text area. Cols(v int) HTMLTextarea // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTextarea // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTextarea // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTextarea // DirName specifies that the text direction will be submitted. DirName(v string) HTMLTextarea // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLTextarea // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTextarea // Form specifies the name of the form the element belongs to. Form(v string) HTMLTextarea // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTextarea // ID specifies a unique id for an element. ID(v string) HTMLTextarea // Lang specifies the language of the element's content. Lang(v string) HTMLTextarea // MaxLength specifies the maximum number of characters allowed in an element. MaxLength(v int) HTMLTextarea // Name specifies the name of the element. Name(v string) HTMLTextarea // Placeholder specifies a short hint that describes the expected value of the element. Placeholder(v string) HTMLTextarea // ReadOnly specifies that the element is read-only. ReadOnly(v bool) HTMLTextarea // Required specifies that the element must be filled out before submitting the form. Required(v bool) HTMLTextarea // Rows specifies the visible number of lines in a text area. Rows(v int) HTMLTextarea // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTextarea // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTextarea // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTextarea // Title specifies extra information about an element. Title(v string) HTMLTextarea // Wrap specifies how the text in a text area is to be wrapped when submitted in a form. Wrap(v string) HTMLTextarea // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTextarea // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTextarea // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTextarea // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTextarea // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTextarea // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTextarea // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTextarea // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTextarea // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTextarea // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTextarea // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTextarea // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTextarea // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTextarea // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTextarea // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTextarea // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTextarea // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTextarea // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTextarea // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTextarea // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTextarea // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTextarea // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTextarea // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTextarea // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTextarea // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTextarea // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTextarea // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTextarea // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTextarea // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTextarea // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTextarea // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTextarea // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTextarea }
HTMLTextarea is the interface that describes a <textarea> HTML element.
func Textarea ¶
func Textarea() HTMLTextarea
Textarea returns an HTML element that defines a multiline input control (text area).
type HTMLTfoot ¶
type HTMLTfoot interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTfoot // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTfoot // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTfoot // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTfoot // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTfoot // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTfoot // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTfoot // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTfoot // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTfoot // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTfoot // ID specifies a unique id for an element. ID(v string) HTMLTfoot // Lang specifies the language of the element's content. Lang(v string) HTMLTfoot // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTfoot // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTfoot // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTfoot // Title specifies extra information about an element. Title(v string) HTMLTfoot // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTfoot // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTfoot // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTfoot // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTfoot // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTfoot // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTfoot // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTfoot // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTfoot // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTfoot // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTfoot // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTfoot // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTfoot // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTfoot // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTfoot // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTfoot // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTfoot // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTfoot // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTfoot // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTfoot // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTfoot // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTfoot // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTfoot // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTfoot // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTfoot // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTfoot // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTfoot // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTfoot // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTfoot // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTfoot // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTfoot // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTfoot // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTfoot }
HTMLTfoot is the interface that describes a <tfoot> HTML element.
type HTMLTh ¶
type HTMLTh interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTh // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTh // Accept specifies an abbreviated version of the content in a header cell. Accept(v string) HTMLTh // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTh // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTh // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTh // ColSpan specifies the number of columns a table cell should span. ColSpan(v int) HTMLTh // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTh // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTh // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTh // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTh // Headers specifies one or more headers cells a cell is related to. Headers(v string) HTMLTh // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTh // ID specifies a unique id for an element. ID(v string) HTMLTh // Lang specifies the language of the element's content. Lang(v string) HTMLTh // Rowspan specifies the number of rows a table cell should span. Rowspan(v int) HTMLTh // Scope specifies whether a header cell is a header for a column, row, or group of columns or rows. Scope(v string) HTMLTh // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTh // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTh // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTh // Title specifies extra information about an element. Title(v string) HTMLTh // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTh // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTh // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTh // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTh // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTh // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTh // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTh // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTh // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTh // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTh // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTh // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTh // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTh // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTh // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTh // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTh // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTh // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTh // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTh // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTh // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTh // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTh // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTh // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTh // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTh // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTh // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTh // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTh // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTh // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTh // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTh // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTh }
HTMLTh is the interface that describes a <th> HTML element.
type HTMLTime ¶