Documentation ¶
Overview ¶
Package app is a package to build progressive web apps (PWA) with Go programming language and WebAssembly. It uses a declarative syntax that allows creating and dealing with HTML elements only by using Go, and without writing any HTML markup. The package also provides an http.Handler ready to serve all the required resources to run Go-based progressive web apps.
Index ¶
- Constants
- Variables
- func CopyBytesToGo(dst []byte, src Value) int
- func CopyBytesToJS(dst Value, src []byte) int
- func GenerateStaticWebsite(dir string, h *Handler, pages ...string) error
- func Getenv(k string) string
- func HTMLString(ui UI) string
- func HTMLStringWithIndent(ui UI) string
- func KeepBodyClean() (close func())
- func Log(v ...interface{})
- func Logf(format string, v ...interface{})
- func PrintHTML(w io.Writer, ui UI)
- func PrintHTMLWithIndent(w io.Writer, ui UI)
- func Route(path string, c Composer)
- func RouteWithRegexp(pattern string, c Composer)
- func RunWhenOnBrowser()
- func TestMatch(tree UI, d TestUIDescriptor) error
- func TestPath(p ...int) []int
- type BrowserStorage
- type BrowserWindow
- type ClientDispatcher
- type Compo
- type Composer
- type Condition
- type Context
- func (ctx Context) Async(fn func())
- func (ctx Context) Dispatch(fn func())
- func (ctx Context) LocalStorage() BrowserStorage
- func (ctx Context) Navigate(rawURL string)
- func (ctx Context) NavigateTo(u *url.URL)
- func (ctx Context) Reload()
- func (ctx Context) ResolveStaticResource(path string) string
- func (ctx Context) ScrollTo(id string)
- func (ctx Context) SessionStorage() BrowserStorage
- type Dismounter
- type Dispatcher
- type Environment
- type Event
- type EventHandler
- type Func
- type HTMLA
- type HTMLAbbr
- type HTMLAddress
- type HTMLArea
- type HTMLArticle
- type HTMLAside
- type HTMLAudio
- type HTMLB
- type HTMLBase
- type HTMLBdi
- type HTMLBdo
- type HTMLBlockquote
- type HTMLBody
- type HTMLBr
- type HTMLButton
- type HTMLCanvas
- type HTMLCaption
- type HTMLCite
- type HTMLCode
- type HTMLCol
- type HTMLColGroup
- type HTMLData
- type HTMLDataList
- type HTMLDd
- type HTMLDel
- type HTMLDetails
- type HTMLDfn
- type HTMLDialog
- type HTMLDiv
- type HTMLDl
- type HTMLDt
- type HTMLEm
- type HTMLEmbed
- type HTMLFieldSet
- type HTMLFigCaption
- type HTMLFigure
- type HTMLFooter
- type HTMLForm
- type HTMLH1
- type HTMLH2
- type HTMLH3
- type HTMLH4
- type HTMLH5
- type HTMLH6
- type HTMLHead
- type HTMLHeader
- type HTMLHr
- type HTMLHtml
- type HTMLI
- type HTMLIFrame
- type HTMLImg
- type HTMLInput
- type HTMLIns
- type HTMLKbd
- type HTMLLabel
- type HTMLLegend
- type HTMLLi
- type HTMLLink
- type HTMLMain
- type HTMLMap
- type HTMLMark
- type HTMLMeta
- type HTMLMeter
- type HTMLNav
- type HTMLNoScript
- type HTMLObject
- type HTMLOl
- type HTMLOptGroup
- type HTMLOption
- type HTMLOutput
- type HTMLP
- type HTMLParam
- type HTMLPicture
- type HTMLPre
- type HTMLProgress
- type HTMLQ
- type HTMLRp
- type HTMLRt
- type HTMLRuby
- type HTMLS
- type HTMLSamp
- type HTMLScript
- type HTMLSection
- type HTMLSelect
- type HTMLSmall
- type HTMLSource
- type HTMLSpan
- type HTMLStrong
- type HTMLStyle
- type HTMLSub
- type HTMLSummary
- type HTMLSup
- type HTMLTBody
- type HTMLTHead
- type HTMLTable
- type HTMLTd
- type HTMLTemplate
- type HTMLTextarea
- type HTMLTfoot
- type HTMLTh
- type HTMLTime
- type HTMLTitle
- type HTMLTr
- type HTMLU
- type HTMLUl
- type HTMLVar
- type HTMLVideo
- type HTMLWbr
- type Handler
- type Icon
- type Kind
- type Mounter
- type Navigator
- type Page
- type PreRenderCache
- type PreRenderedItem
- type PreRenderer
- type ProxyResource
- type RangeLoop
- type Resizer
- type ResourceProvider
- type ServerDispatcher
- type TestUIDescriptor
- type Type
- type UI
- type UIFlow
- type UIShell
- type UIStack
- type Updater
- type Value
- type Wrapper
Constants ¶
const ( // IsClient reports whether the code is running as a client in the // WebAssembly binary (app.wasm). IsClient = runtime.GOARCH == "wasm" && runtime.GOOS == "js" // IsServer reports whether the code is running on a server for // pre-rendering purposes. IsServer = runtime.GOARCH != "wasm" || runtime.GOOS != "js" )
Variables ¶
var ( // DefaultLogger is the logger used to log info and errors. DefaultLogger func(format string, v ...interface{}) )
Functions ¶
func CopyBytesToGo ¶
CopyBytesToGo copies bytes from the Uint8Array src to dst. It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.
CopyBytesToGo panics if src is not an Uint8Array.
func CopyBytesToJS ¶
CopyBytesToJS copies bytes from src to the Uint8Array dst. It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.
CopyBytesToJS panics if dst is not an Uint8Array.
func GenerateStaticWebsite ¶
GenerateStaticWebsite generates the files to run a PWA built with go-app as a static website in the specified directory. Static websites can be used with hosts such as Github Pages.
Note that app.wasm must still be built separately and put into the web directory.
func Getenv ¶
Getenv retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present.
func HTMLString ¶
HTMLString return an HTML string representation of the given UI element.
func HTMLStringWithIndent ¶
HTMLStringWithIndent return an indented HTML string representation of the given UI element.
func KeepBodyClean ¶
func KeepBodyClean() (close func())
KeepBodyClean prevents third-party Javascript libraries to add nodes to the body element.
func Log ¶
func Log(v ...interface{})
Log logs using the default formats for its operands. Spaces are always added between operands.
func PrintHTMLWithIndent ¶
PrintHTMLWithIndent writes an idented HTML representation of the UI element into the given writer.
func RouteWithRegexp ¶
RouteWithRegexp binds the regular expression pattern to the given UI node. Patterns use the Go standard regexp format.
func RunWhenOnBrowser ¶
func RunWhenOnBrowser()
RunWhenOnBrowser starts the app, displaying the component associated with the current URL path.
This call is skipped when the program is not run on a web browser. This allows writing client and server-side code without separation or pre-compilation flags.
Eg:
func main() { // Define app routes. app.Route("/", myComponent{}) app.Route("/other-page", myOtherComponent{}) // Run the application when on a web browser (only executed on client side). app.RunWhenOnBrowser() // Launch the server that serves the app (only executed on server side): http.Handle("/", &app.Handler{Name: "My app"}) http.ListenAndServe(":8080", nil) }
func TestMatch ¶
func TestMatch(tree UI, d TestUIDescriptor) error
TestMatch looks for the element targeted by the descriptor in the given tree and reports whether it matches with the expected element.
Eg:
tree := app.Div().Body( app.H2().Body( app.Text("foo"), ), app.P().Body( app.Text("bar"), ), ) // Testing root: err := app.TestMatch(tree, app.TestUIDescriptor{ Path: TestPath(), Expected: app.Div(), }) // OK => err == nil // Testing h2: err := app.TestMatch(tree, app.TestUIDescriptor{ Path: TestPath(0), Expected: app.H3(), }) // KO => err != nil because we ask h2 to match with h3 // Testing text from p: err = app.TestMatch(tree, app.TestUIDescriptor{ Path: TestPath(1, 0), Expected: app.Text("bar"), }) // OK => err == nil
Types ¶
type BrowserStorage ¶
type BrowserStorage interface { // Set sets the value to the given key. The value must be json convertible. Set(k string, v interface{}) error // Get gets the item associated to the given key and store it in the given // value. // It returns an error if v is not a pointer. Get(k string, v interface{}) error // Del deletes the item associated with the given key. Del(k string) // Len returns the number of items stored. Len() int // Key returns the key of the item associated to the given index. Key(i int) (string, error) // Clear deletes all items. Clear() }
BrowserStorage is the interface that describes a web browser storage.
type BrowserWindow ¶
type BrowserWindow interface { Value // The window current url (window.location.href). URL() *url.URL // The window size. Size() (w, h int) // The position of the cursor (mouse or touch). CursorPosition() (x, y int) // Returns the HTML element with the id property that matches the given id. GetElementByID(id string) Value // Scrolls to the HTML element with the given id. ScrollToID(id string) // AddEventListener subscribes a given handler to the specified event. It // returns a function that must be called to unsubscribe the handler and // release allocated resources. AddEventListener(event string, h EventHandler) func() // contains filtered or unexported methods }
BrowserWindow is the interface that describes the browser window.
type ClientDispatcher ¶
type ClientDispatcher interface { Dispatcher // Context returns the context associated with the root element. Context() Context // Mounts the given component as root element. Mount(UI) Nav(*url.URL) // Triggers OnAppUpdate from the root component. AppUpdate() // Triggers OnAppResize from the root component. AppResize() // Consume executes all the remaining UI instructions. Consume() // Close consumes all the remaining UI instruction and releases allocated // resources. Close() }
ClientDispatcher is the interface that describes a dispatcher that emulates a client environment.
func NewClientTester ¶
func NewClientTester(v UI) ClientDispatcher
NewClientTester creates a testing dispatcher that simulates a client environment. The given UI element is mounted upon creation.
type Compo ¶
type Compo struct {
// contains filtered or unexported fields
}
Compo represents the base struct to use in order to build a component.
func (*Compo) Defer ¶
Defer executes the given function on the goroutine dedicated to updating the UI and ensures that the component is mounted when the function is called.
func (*Compo) Render ¶
Render describes the component content. This is a default implementation to satisfy the app.Composer interface. It should be redefined when app.Compo is embedded.
func (*Compo) ResizeContent ¶
func (c *Compo) ResizeContent()
ResizeContent triggers OnResize() on all the component children that implement the Resizer interface.
func (*Compo) Update ¶
func (c *Compo) Update()
Update triggers a component appearance update. It should be called when a field used to render the component has been modified. Updates are always performed on the UI goroutine.
func (*Compo) ValueTo ¶
func (c *Compo) ValueTo(v interface{}) EventHandler
ValueTo stores the value of the DOM element (if exists) that emitted an event into the given value.
The given value must be a pointer to a signed integer, unsigned integer, or a float.
It panics if the given value is not a pointer.
type Composer ¶
type Composer interface { UI // Render returns the node tree that define how the component is desplayed. Render() UI // Update update the component appearance. It should be called when a field // used to render the component has been modified. Update() // Dispatch executes the given function on the goroutine dedicated to // updating the UI and ensures that the component is mounted when the // function is called. Defer(func(Context)) // ResizeContent triggers OnResize() on all the component children that // implement the Resizer interface. ResizeContent() // ValueTo stores the value of the DOM element (if exists) that emitted an // event into the given value. // // The given value must be a pointer to a signed integer, unsigned integer, // or a float. // // It panics if the given value is not a pointer. ValueTo(interface{}) EventHandler }
Composer is the interface that describes a customized, independent and reusable UI element.
Satisfying this interface is done by embedding app.Compo into a struct and implementing the Render function.
Example:
type Hello struct { app.Compo } func (c *Hello) Render() app.UI { return app.Text("hello") }
type Condition ¶
type Condition interface { UI // ElseIf sets the condition with the given nodes if previous expressions // were not met and given expression is true. ElseIf(expr bool, elems ...UI) Condition // Else sets the condition with the given UI elements if previous // expressions were not met. Else(elems ...UI) Condition }
Condition represents a control structure that displays nodes depending on a given expression.
type Context ¶
type Context struct { context.Context // The UI element tied to the context. Src UI // The JavaScript value of the element tied to the context. This is a // shorthand for: // ctx.Src.JSValue() JSSrc Value // Reports whether the app has been updated in background. Use app.Reload() // to load the updated version. AppUpdateAvailable bool // The info about the current page. Page Page // contains filtered or unexported fields }
Context represents a context that is tied to a UI element. It is canceled when the element is dismounted.
It implements the context.Context interface.
https://golang.org/pkg/context/#Context
func (Context) Async ¶
func (ctx Context) Async(fn func())
Async launches the given function on a new goroutine.
The difference versus just launching a goroutine is that it ensures that the asynchronous function is called before a page is fully pre-rendered and served over HTTP.
func (Context) Dispatch ¶
func (ctx Context) Dispatch(fn func())
Dispatch executes the given function on the goroutine dedicated to updating the UI.
func (Context) LocalStorage ¶
func (ctx Context) LocalStorage() BrowserStorage
LocalStorage returns a storage that uses the browser local storage associated to the document origin. Data stored has no expiration time.
func (Context) Navigate ¶
Navigate navigates to the given URL. This is a helper method that converts rawURL to an *url.URL and then calls ctx.NavigateTo under the hood.
func (Context) NavigateTo ¶
NavigateTo navigates to the given URL.
func (Context) Reload ¶
func (ctx Context) Reload()
Reload reloads the WebAssembly app at the current page.
func (Context) ResolveStaticResource ¶
ResolveStaticResource resolves the given path to make it point to the right location whether static resources are located on a local directory or a remote bucket.
func (Context) SessionStorage ¶
func (ctx Context) SessionStorage() BrowserStorage
SessionStorage returns a storage that uses the browser session storage associated to the document origin. Data stored expire when the page session ends.
type Dismounter ¶
type Dismounter interface { Composer // The function called when the component is dismounted. It is always called // on the UI goroutine. OnDismount() }
Dismounter is the interface that describes a component that can perform additional actions when dismounted.
type Dispatcher ¶
type Dispatcher interface { // Dispatch enqueues the given function to be executed on a goroutine // dedicated to managing UI modifications. Dispatch(func()) // Async launches the given function on a new goroutine. // // The difference versus just launching a goroutine is that it ensures that // the asynchronous instructions are called before the dispatcher is closed. // // This is important during component prerendering since asynchronous // operations need to complete before sending a pre-rendered page over HTTP. Async(func()) // Wait waits for the asynchronous operations launched with Async() to // complete. Wait() // contains filtered or unexported methods }
Dispatcher is the interface that describes an environment that synchronizes UI instructions and UI elements lifecycle.
type Environment ¶
Environment describes the environment variables to pass to the progressive web app.
type Event ¶
type Event struct {
Value
}
Event is the interface that describes a javascript event.
func (Event) PreventDefault ¶
func (e Event) PreventDefault()
PreventDefault cancels the event if it is cancelable. The default action that belongs to the event will not occur.
type EventHandler ¶
EventHandler represents a function that can handle HTML events. They are always called on the UI goroutine.
type Func ¶
type Func interface { Value // Release frees up resources allocated for the function. The function must // not be invoked after calling Release. Release() }
Func is the interface that describes a wrapped Go function to be called by JavaScript.
func FuncOf ¶
FuncOf returns a wrapped function.
Invoking the JavaScript function will synchronously call the Go function fn with the value of JavaScript's "this" keyword and the arguments of the invocation. The return value of the invocation is the result of the Go function mapped back to JavaScript according to ValueOf.
A wrapped function triggered during a call from Go to JavaScript gets executed on the same goroutine. A wrapped function triggered by JavaScript's event loop gets executed on an extra goroutine. Blocking operations in the wrapped function will block the event loop. As a consequence, if one wrapped function blocks, other wrapped funcs will not be processed. A blocking function should therefore explicitly start a new goroutine.
Func.Release must be called to free up resources when the function will not be used any more.
type HTMLA ¶
type HTMLA interface { UI // Body set the content of the element. Body(elems ...UI) HTMLA // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLA // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLA // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLA // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLA // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLA // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLA // Dir specifies the text direction for the content in an element. Dir(v string) HTMLA // Download specifies that the target will be downloaded when a user clicks on the hyperlink. Download(v bool) HTMLA // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLA // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLA // Href specifies the URL of the page the link goes to. Href(v string) HTMLA // HrefLang specifies the language of the linked document. HrefLang(v string) HTMLA // ID specifies a unique id for an element. ID(v string) HTMLA // Lang specifies the language of the element's content. Lang(v string) HTMLA // Media specifies what media/device the linked document is optimized for. Media(v string) HTMLA // Ping specifies a list of URLs to be notified if the user follows the hyperlink. Ping(v string) HTMLA // Rel specifies the relationship between the current document and the linked document. Rel(v string) HTMLA // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLA // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLA // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLA // Target specifies the target for where to open the linked document or where to submit the form. Target(v string) HTMLA // Title specifies extra information about an element. Title(v string) HTMLA // Type specifies the type of element. Type(v string) HTMLA // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLA // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLA // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLA // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLA // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLA // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLA // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLA // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLA // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLA // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLA // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLA // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLA // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLA // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLA // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLA // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLA // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLA // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLA // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLA // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLA // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLA // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLA // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLA // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLA // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLA // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLA // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLA // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLA // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLA // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLA // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLA // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLA }
HTMLA is the interface that describes a <a> HTML element.
type HTMLAbbr ¶
type HTMLAbbr interface { UI // Body set the content of the element. Body(elems ...UI) HTMLAbbr // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLAbbr // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLAbbr // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLAbbr // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLAbbr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLAbbr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLAbbr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLAbbr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLAbbr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLAbbr // ID specifies a unique id for an element. ID(v string) HTMLAbbr // Lang specifies the language of the element's content. Lang(v string) HTMLAbbr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLAbbr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLAbbr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLAbbr // Title specifies extra information about an element. Title(v string) HTMLAbbr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLAbbr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLAbbr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLAbbr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLAbbr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLAbbr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLAbbr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLAbbr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLAbbr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLAbbr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLAbbr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLAbbr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLAbbr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLAbbr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLAbbr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLAbbr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLAbbr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLAbbr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLAbbr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLAbbr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLAbbr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLAbbr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLAbbr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLAbbr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLAbbr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLAbbr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLAbbr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLAbbr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLAbbr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLAbbr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLAbbr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLAbbr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLAbbr }
HTMLAbbr is the interface that describes a <abbr> HTML element.
type HTMLAddress ¶
type HTMLAddress interface { UI // Body set the content of the element. Body(elems ...UI) HTMLAddress // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLAddress // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLAddress // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLAddress // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLAddress // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLAddress // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLAddress // Dir specifies the text direction for the content in an element. Dir(v string) HTMLAddress // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLAddress // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLAddress // ID specifies a unique id for an element. ID(v string) HTMLAddress // Lang specifies the language of the element's content. Lang(v string) HTMLAddress // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLAddress // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLAddress // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLAddress // Title specifies extra information about an element. Title(v string) HTMLAddress // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLAddress // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLAddress // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLAddress // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLAddress // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLAddress // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLAddress // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLAddress // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLAddress // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLAddress // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLAddress // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLAddress // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLAddress // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLAddress // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLAddress // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLAddress // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLAddress // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLAddress // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLAddress // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLAddress // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLAddress // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLAddress // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLAddress // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLAddress // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLAddress // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLAddress // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLAddress // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLAddress // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLAddress // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLAddress // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLAddress // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLAddress // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLAddress }
HTMLAddress is the interface that describes a <address> HTML element.
func Address ¶
func Address() HTMLAddress
Address returns an HTML element that defines contact information for the author/owner of a document.
type HTMLArea ¶
type HTMLArea interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLArea // Alt specifies an alternate text when the original element fails to display. Alt(v string) HTMLArea // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLArea // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLArea // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLArea // Coords specifies the coordinates of the area. Coords(v string) HTMLArea // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLArea // Dir specifies the text direction for the content in an element. Dir(v string) HTMLArea // Download specifies that the target will be downloaded when a user clicks on the hyperlink. Download(v bool) HTMLArea // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLArea // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLArea // Href specifies the URL of the page the link goes to. Href(v string) HTMLArea // HrefLang specifies the language of the linked document. HrefLang(v string) HTMLArea // ID specifies a unique id for an element. ID(v string) HTMLArea // Lang specifies the language of the element's content. Lang(v string) HTMLArea // Media specifies what media/device the linked document is optimized for. Media(v string) HTMLArea // Rel specifies the relationship between the current document and the linked document. Rel(v string) HTMLArea // Shape specifies the shape of the area. Shape(v string) HTMLArea // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLArea // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLArea // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLArea // Target specifies the target for where to open the linked document or where to submit the form. Target(v string) HTMLArea // Title specifies extra information about an element. Title(v string) HTMLArea // Type specifies the type of element. Type(v string) HTMLArea // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLArea // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLArea // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLArea // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLArea // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLArea // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLArea // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLArea // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLArea // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLArea // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLArea // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLArea // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLArea // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLArea // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLArea // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLArea // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLArea // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLArea // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLArea // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLArea // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLArea // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLArea // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLArea // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLArea // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLArea // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLArea // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLArea // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLArea // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLArea // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLArea // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLArea // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLArea // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLArea }
HTMLArea is the interface that describes a <area> HTML element.
type HTMLArticle ¶
type HTMLArticle interface { UI // Body set the content of the element. Body(elems ...UI) HTMLArticle // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLArticle // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLArticle // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLArticle // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLArticle // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLArticle // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLArticle // Dir specifies the text direction for the content in an element. Dir(v string) HTMLArticle // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLArticle // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLArticle // ID specifies a unique id for an element. ID(v string) HTMLArticle // Lang specifies the language of the element's content. Lang(v string) HTMLArticle // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLArticle // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLArticle // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLArticle // Title specifies extra information about an element. Title(v string) HTMLArticle // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLArticle // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLArticle // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLArticle // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLArticle // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLArticle // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLArticle // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLArticle // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLArticle // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLArticle // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLArticle // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLArticle // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLArticle // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLArticle // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLArticle // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLArticle // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLArticle // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLArticle // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLArticle // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLArticle // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLArticle // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLArticle // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLArticle // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLArticle // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLArticle // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLArticle // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLArticle // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLArticle // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLArticle // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLArticle // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLArticle // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLArticle // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLArticle }
HTMLArticle is the interface that describes a <article> HTML element.
type HTMLAside ¶
type HTMLAside interface { UI // Body set the content of the element. Body(elems ...UI) HTMLAside // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLAside // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLAside // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLAside // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLAside // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLAside // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLAside // Dir specifies the text direction for the content in an element. Dir(v string) HTMLAside // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLAside // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLAside // ID specifies a unique id for an element. ID(v string) HTMLAside // Lang specifies the language of the element's content. Lang(v string) HTMLAside // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLAside // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLAside // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLAside // Title specifies extra information about an element. Title(v string) HTMLAside // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLAside // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLAside // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLAside // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLAside // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLAside // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLAside // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLAside // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLAside // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLAside // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLAside // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLAside // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLAside // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLAside // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLAside // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLAside // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLAside // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLAside // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLAside // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLAside // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLAside // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLAside // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLAside // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLAside // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLAside // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLAside // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLAside // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLAside // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLAside // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLAside // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLAside // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLAside // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLAside }
HTMLAside is the interface that describes a <aside> HTML element.
type HTMLAudio ¶
type HTMLAudio interface { UI // Body set the content of the element. Body(elems ...UI) HTMLAudio // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLAudio // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLAudio // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLAudio // AutoPlay specifies that the audio/video will start playing as soon as it is ready. AutoPlay(v bool) HTMLAudio // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLAudio // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLAudio // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc). Controls(v bool) HTMLAudio // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLAudio // Dir specifies the text direction for the content in an element. Dir(v string) HTMLAudio // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLAudio // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLAudio // ID specifies a unique id for an element. ID(v string) HTMLAudio // Lang specifies the language of the element's content. Lang(v string) HTMLAudio // Loop specifies that the audio/video will start over again, every time it is finished. Loop(v bool) HTMLAudio // Muted specifies that the audio output of the video should be muted. Muted(v bool) HTMLAudio // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads. Preload(v string) HTMLAudio // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLAudio // Src specifies the URL of the media file. Src(v string) HTMLAudio // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLAudio // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLAudio // Title specifies extra information about an element. Title(v string) HTMLAudio // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...interface{}) HTMLAudio // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLAudio // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). OnCanPlay(h EventHandler, scope ...interface{}) HTMLAudio // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. OnCanPlayThrough(h EventHandler, scope ...interface{}) HTMLAudio // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLAudio // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLAudio // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLAudio // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLAudio // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...interface{}) HTMLAudio // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLAudio // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLAudio // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLAudio // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLAudio // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLAudio // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLAudio // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLAudio // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLAudio // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLAudio // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...interface{}) HTMLAudio // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...interface{}) HTMLAudio // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...interface{}) HTMLAudio // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLAudio // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLAudio // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLAudio // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLAudio // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLAudio // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLAudio // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLAudio // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...interface{}) HTMLAudio // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...interface{}) HTMLAudio // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLAudio // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLAudio // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLAudio // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLAudio // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLAudio // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLAudio // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...interface{}) HTMLAudio // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...interface{}) HTMLAudio // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...interface{}) HTMLAudio // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...interface{}) HTMLAudio // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). OnRateChange(h EventHandler, scope ...interface{}) HTMLAudio // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLAudio // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLAudio // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLAudio // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...interface{}) HTMLAudio // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...interface{}) HTMLAudio // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLAudio // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...interface{}) HTMLAudio // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLAudio // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler, scope ...interface{}) HTMLAudio // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). OnTimeUpdate(h EventHandler, scope ...interface{}) HTMLAudio // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...interface{}) HTMLAudio // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). OnWaiting(h EventHandler, scope ...interface{}) HTMLAudio // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLAudio // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler, scope ...interface{}) HTMLAudio }
HTMLAudio is the interface that describes a <audio> HTML element.
type HTMLB ¶
type HTMLB interface { UI // Body set the content of the element. Body(elems ...UI) HTMLB // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLB // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLB // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLB // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLB // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLB // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLB // Dir specifies the text direction for the content in an element. Dir(v string) HTMLB // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLB // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLB // ID specifies a unique id for an element. ID(v string) HTMLB // Lang specifies the language of the element's content. Lang(v string) HTMLB // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLB // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLB // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLB // Title specifies extra information about an element. Title(v string) HTMLB // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLB // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLB // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLB // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLB // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLB // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLB // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLB // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLB // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLB // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLB // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLB // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLB // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLB // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLB // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLB // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLB // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLB // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLB // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLB // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLB // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLB // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLB // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLB // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLB // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLB // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLB // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLB // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLB // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLB // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLB // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLB // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLB }
HTMLB is the interface that describes a <b> HTML element.
type HTMLBase ¶
type HTMLBase interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLBase // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLBase // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLBase // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLBase // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLBase // Dir specifies the text direction for the content in an element. Dir(v string) HTMLBase // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLBase // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLBase // Href specifies the URL of the page the link goes to. Href(v string) HTMLBase // ID specifies a unique id for an element. ID(v string) HTMLBase // Lang specifies the language of the element's content. Lang(v string) HTMLBase // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLBase // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLBase // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLBase // Target specifies the target for where to open the linked document or where to submit the form. Target(v string) HTMLBase // Title specifies extra information about an element. Title(v string) HTMLBase // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLBase // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLBase // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLBase // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLBase // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLBase // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLBase // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLBase // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLBase // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLBase // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLBase // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLBase // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLBase // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLBase // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLBase // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLBase // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLBase // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLBase // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLBase // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLBase // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLBase // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLBase // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLBase // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLBase // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLBase // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLBase // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLBase // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLBase // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLBase // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLBase // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLBase // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLBase // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLBase }
HTMLBase is the interface that describes a <base> HTML element.
type HTMLBdi ¶
type HTMLBdi interface { UI // Body set the content of the element. Body(elems ...UI) HTMLBdi // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLBdi // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLBdi // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLBdi // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLBdi // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLBdi // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLBdi // Dir specifies the text direction for the content in an element. Dir(v string) HTMLBdi // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLBdi // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLBdi // ID specifies a unique id for an element. ID(v string) HTMLBdi // Lang specifies the language of the element's content. Lang(v string) HTMLBdi // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLBdi // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLBdi // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLBdi // Title specifies extra information about an element. Title(v string) HTMLBdi // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLBdi // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLBdi // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLBdi // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLBdi // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLBdi // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLBdi // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLBdi // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLBdi // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLBdi // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLBdi // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLBdi // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLBdi // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLBdi // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLBdi // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLBdi // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLBdi // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLBdi // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLBdi // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLBdi // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLBdi // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLBdi // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLBdi // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLBdi // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLBdi // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLBdi // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLBdi // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLBdi // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLBdi // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLBdi // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLBdi // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLBdi // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLBdi }
HTMLBdi is the interface that describes a <bdi> HTML element.
type HTMLBdo ¶
type HTMLBdo interface { UI // Body set the content of the element. Body(elems ...UI) HTMLBdo // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLBdo // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLBdo // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLBdo // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLBdo // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLBdo // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLBdo // Dir specifies the text direction for the content in an element. Dir(v string) HTMLBdo // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLBdo // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLBdo // ID specifies a unique id for an element. ID(v string) HTMLBdo // Lang specifies the language of the element's content. Lang(v string) HTMLBdo // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLBdo // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLBdo // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLBdo // Title specifies extra information about an element. Title(v string) HTMLBdo // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLBdo // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLBdo // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLBdo // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLBdo // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLBdo // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLBdo // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLBdo // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLBdo // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLBdo // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLBdo // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLBdo // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLBdo // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLBdo // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLBdo // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLBdo // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLBdo // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLBdo // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLBdo // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLBdo // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLBdo // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLBdo // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLBdo // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLBdo // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLBdo // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLBdo // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLBdo // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLBdo // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLBdo // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLBdo // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLBdo // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLBdo // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLBdo }
HTMLBdo is the interface that describes a <bdo> HTML element.
type HTMLBlockquote ¶
type HTMLBlockquote interface { UI // Body set the content of the element. Body(elems ...UI) HTMLBlockquote // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLBlockquote // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLBlockquote // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLBlockquote // Cite specifies a URL which explains the quote/deleted/inserted text. Cite(v string) HTMLBlockquote // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLBlockquote // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLBlockquote // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLBlockquote // Dir specifies the text direction for the content in an element. Dir(v string) HTMLBlockquote // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLBlockquote // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLBlockquote // ID specifies a unique id for an element. ID(v string) HTMLBlockquote // Lang specifies the language of the element's content. Lang(v string) HTMLBlockquote // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLBlockquote // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLBlockquote // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLBlockquote // Title specifies extra information about an element. Title(v string) HTMLBlockquote // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLBlockquote // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLBlockquote // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLBlockquote // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLBlockquote // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLBlockquote // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLBlockquote // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLBlockquote // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLBlockquote // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLBlockquote // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLBlockquote // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLBlockquote // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLBlockquote // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLBlockquote // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLBlockquote // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLBlockquote // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLBlockquote // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLBlockquote // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLBlockquote // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLBlockquote // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLBlockquote // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLBlockquote // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLBlockquote // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLBlockquote // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLBlockquote // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLBlockquote }
HTMLBlockquote is the interface that describes a <blockquote> HTML element.
func Blockquote ¶
func Blockquote() HTMLBlockquote
Blockquote returns an HTML element that defines a section that is quoted from another source.
type HTMLBody ¶
type HTMLBody interface { UI // Body set the content of the element. Body(elems ...UI) HTMLBody // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLBody // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLBody // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLBody // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLBody // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLBody // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLBody // Dir specifies the text direction for the content in an element. Dir(v string) HTMLBody // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLBody // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLBody // ID specifies a unique id for an element. ID(v string) HTMLBody // Lang specifies the language of the element's content. Lang(v string) HTMLBody // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLBody // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLBody // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLBody // Title specifies extra information about an element. Title(v string) HTMLBody // OnAfterPrint runs the given handler after the document is printed. OnAfterPrint(h EventHandler, scope ...interface{}) HTMLBody // OnBeforePrint calls the given handler before the document is printed. OnBeforePrint(h EventHandler, scope ...interface{}) HTMLBody // OnBeforeUnload calls the given handler when the document is about to be unloaded. OnBeforeUnload(h EventHandler, scope ...interface{}) HTMLBody // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLBody // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLBody // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLBody // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLBody // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLBody // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLBody // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLBody // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLBody // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLBody // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLBody // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLBody // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLBody // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLBody // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLBody // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLBody // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLBody // OnHashChange calls the given handler when there has been changes to the anchor part of the a URL. OnHashChange(h EventHandler, scope ...interface{}) HTMLBody // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLBody // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLBody // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLBody // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLBody // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLBody // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLBody // OnMessage calls then given handler when a message is triggered. OnMessage(h EventHandler, scope ...interface{}) HTMLBody // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLBody // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLBody // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLBody // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLBody // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLBody // OnOffline calls the given handler when the browser starts to work offline. OnOffline(h EventHandler, scope ...interface{}) HTMLBody // OnOnline calls the given handler when the browser starts to work online. OnOnline(h EventHandler, scope ...interface{}) HTMLBody // OnPageHide calls the given handler when a user navigates away from a page. OnPageHide(h EventHandler, scope ...interface{}) HTMLBody // OnPageShow calls the given handler when a user navigates to a page. OnPageShow(h EventHandler, scope ...interface{}) HTMLBody // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLBody // OnPopState calls the given handler when the window's history changes. OnPopState(h EventHandler, scope ...interface{}) HTMLBody // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLBody // OnResize calls the given handler when the browser window is resized. OnResize(h EventHandler, scope ...interface{}) HTMLBody // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLBody // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLBody // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLBody // OnStorage calls the given handler when a Web Storage area is updated. OnStorage(h EventHandler, scope ...interface{}) HTMLBody // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLBody // OnUnload calls the given handler once a page has unloaded (or the browser window has been closed). OnUnload(h EventHandler, scope ...interface{}) HTMLBody // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLBody }
HTMLBody is the interface that describes a <body> HTML element.
type HTMLBr ¶
type HTMLBr interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLBr // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLBr // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLBr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLBr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLBr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLBr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLBr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLBr // ID specifies a unique id for an element. ID(v string) HTMLBr // Lang specifies the language of the element's content. Lang(v string) HTMLBr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLBr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLBr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLBr // Title specifies extra information about an element. Title(v string) HTMLBr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLBr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLBr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLBr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLBr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLBr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLBr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLBr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLBr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLBr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLBr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLBr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLBr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLBr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLBr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLBr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLBr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLBr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLBr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLBr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLBr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLBr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLBr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLBr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLBr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLBr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLBr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLBr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLBr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLBr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLBr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLBr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLBr }
HTMLBr is the interface that describes a <br> HTML element.
type HTMLButton ¶
type HTMLButton interface { UI // Body set the content of the element. Body(elems ...UI) HTMLButton // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLButton // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLButton // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLButton // AutoFocus specifies that the element should automatically get focus when the page loads. AutoFocus(v bool) HTMLButton // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLButton // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLButton // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLButton // Dir specifies the text direction for the content in an element. Dir(v string) HTMLButton // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLButton // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLButton // Form specifies the name of the form the element belongs to. Form(v string) HTMLButton // FormAction specifies where to send the form-data when a form is submitted. Only for submit type. FormAction(v string) HTMLButton // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type. FormEncType(v string) HTMLButton // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type. FormMethod(v string) HTMLButton // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type. FormNoValidate(v bool) HTMLButton // FormTarget specifies where to display the response after submitting the form. Only for submit type. FormTarget(v string) HTMLButton // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLButton // ID specifies a unique id for an element. ID(v string) HTMLButton // Lang specifies the language of the element's content. Lang(v string) HTMLButton // Name specifies the name of the element. Name(v string) HTMLButton // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLButton // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLButton // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLButton // Title specifies extra information about an element. Title(v string) HTMLButton // Type specifies the type of element. Type(v string) HTMLButton // Value specifies the value of the element. Value(v interface{}) HTMLButton // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLButton // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLButton // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLButton // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLButton // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLButton // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLButton // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLButton // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLButton // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLButton // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLButton // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLButton // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLButton // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLButton // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLButton // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLButton // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLButton // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLButton // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLButton // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLButton // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLButton // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLButton // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLButton // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLButton // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLButton // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLButton // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLButton // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLButton // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLButton // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLButton // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLButton // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLButton // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLButton }
HTMLButton is the interface that describes a <button> HTML element.
func Button ¶
func Button() HTMLButton
Button returns an HTML element that defines a clickable button.
type HTMLCanvas ¶
type HTMLCanvas interface { UI // Body set the content of the element. Body(elems ...UI) HTMLCanvas // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLCanvas // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLCanvas // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLCanvas // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLCanvas // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLCanvas // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLCanvas // Dir specifies the text direction for the content in an element. Dir(v string) HTMLCanvas // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLCanvas // Height specifies the height of the element (in pixels). Height(v int) HTMLCanvas // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLCanvas // ID specifies a unique id for an element. ID(v string) HTMLCanvas // Lang specifies the language of the element's content. Lang(v string) HTMLCanvas // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLCanvas // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLCanvas // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLCanvas // Title specifies extra information about an element. Title(v string) HTMLCanvas // Width specifies the width of the element. Width(v int) HTMLCanvas // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLCanvas // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLCanvas // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLCanvas // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLCanvas // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLCanvas // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLCanvas // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLCanvas // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLCanvas // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLCanvas // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLCanvas // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLCanvas // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLCanvas // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLCanvas // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLCanvas // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLCanvas // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLCanvas // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLCanvas // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLCanvas // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLCanvas // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLCanvas // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLCanvas // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLCanvas // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLCanvas // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLCanvas // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLCanvas // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLCanvas // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLCanvas // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLCanvas // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLCanvas // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLCanvas // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLCanvas // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLCanvas }
HTMLCanvas is the interface that describes a <canvas> HTML element.
func Canvas ¶
func Canvas() HTMLCanvas
Canvas returns an HTML element that is used to draw graphics on the fly.
type HTMLCaption ¶
type HTMLCaption interface { UI // Body set the content of the element. Body(elems ...UI) HTMLCaption // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLCaption // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLCaption // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLCaption // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLCaption // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLCaption // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLCaption // Dir specifies the text direction for the content in an element. Dir(v string) HTMLCaption // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLCaption // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLCaption // ID specifies a unique id for an element. ID(v string) HTMLCaption // Lang specifies the language of the element's content. Lang(v string) HTMLCaption // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLCaption // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLCaption // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLCaption // Title specifies extra information about an element. Title(v string) HTMLCaption // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLCaption // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLCaption // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLCaption // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLCaption // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLCaption // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLCaption // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLCaption // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLCaption // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLCaption // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLCaption // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLCaption // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLCaption // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLCaption // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLCaption // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLCaption // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLCaption // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLCaption // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLCaption // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLCaption // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLCaption // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLCaption // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLCaption // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLCaption // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLCaption // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLCaption // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLCaption // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLCaption // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLCaption // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLCaption // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLCaption // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLCaption // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLCaption }
HTMLCaption is the interface that describes a <caption> HTML element.
func Caption ¶
func Caption() HTMLCaption
Caption returns an HTML element that defines a table caption.
type HTMLCite ¶
type HTMLCite interface { UI // Body set the content of the element. Body(elems ...UI) HTMLCite // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLCite // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLCite // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLCite // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLCite // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLCite // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLCite // Dir specifies the text direction for the content in an element. Dir(v string) HTMLCite // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLCite // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLCite // ID specifies a unique id for an element. ID(v string) HTMLCite // Lang specifies the language of the element's content. Lang(v string) HTMLCite // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLCite // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLCite // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLCite // Title specifies extra information about an element. Title(v string) HTMLCite // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLCite // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLCite // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLCite // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLCite // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLCite // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLCite // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLCite // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLCite // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLCite // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLCite // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLCite // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLCite // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLCite // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLCite // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLCite // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLCite // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLCite // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLCite // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLCite // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLCite // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLCite // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLCite // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLCite // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLCite // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLCite // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLCite // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLCite // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLCite // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLCite // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLCite // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLCite // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLCite }
HTMLCite is the interface that describes a <cite> HTML element.
type HTMLCode ¶
type HTMLCode interface { UI // Body set the content of the element. Body(elems ...UI) HTMLCode // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLCode // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLCode // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLCode // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLCode // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLCode // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLCode // Dir specifies the text direction for the content in an element. Dir(v string) HTMLCode // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLCode // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLCode // ID specifies a unique id for an element. ID(v string) HTMLCode // Lang specifies the language of the element's content. Lang(v string) HTMLCode // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLCode // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLCode // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLCode // Title specifies extra information about an element. Title(v string) HTMLCode // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLCode // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLCode // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLCode // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLCode // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLCode // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLCode // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLCode // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLCode // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLCode // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLCode // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLCode // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLCode // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLCode // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLCode // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLCode // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLCode // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLCode // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLCode // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLCode // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLCode // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLCode // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLCode // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLCode // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLCode // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLCode // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLCode // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLCode // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLCode // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLCode // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLCode // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLCode // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLCode }
HTMLCode is the interface that describes a <code> HTML element.
type HTMLCol ¶
type HTMLCol interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLCol // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLCol // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLCol // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLCol // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLCol // Dir specifies the text direction for the content in an element. Dir(v string) HTMLCol // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLCol // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLCol // ID specifies a unique id for an element. ID(v string) HTMLCol // Lang specifies the language of the element's content. Lang(v string) HTMLCol // Span specifies the number of columns to span. Span(v int) HTMLCol // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLCol // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLCol // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLCol // Title specifies extra information about an element. Title(v string) HTMLCol // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLCol // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLCol // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLCol // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLCol // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLCol // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLCol // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLCol // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLCol // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLCol // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLCol // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLCol // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLCol // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLCol // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLCol // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLCol // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLCol // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLCol // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLCol // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLCol // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLCol // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLCol // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLCol // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLCol // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLCol // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLCol // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLCol // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLCol // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLCol // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLCol // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLCol // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLCol // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLCol }
HTMLCol is the interface that describes a <col> HTML element.
type HTMLColGroup ¶
type HTMLColGroup interface { UI // Body set the content of the element. Body(elems ...UI) HTMLColGroup // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLColGroup // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLColGroup // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLColGroup // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLColGroup // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLColGroup // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLColGroup // Dir specifies the text direction for the content in an element. Dir(v string) HTMLColGroup // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLColGroup // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLColGroup // ID specifies a unique id for an element. ID(v string) HTMLColGroup // Lang specifies the language of the element's content. Lang(v string) HTMLColGroup // Span specifies the number of columns to span. Span(v int) HTMLColGroup // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLColGroup // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLColGroup // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLColGroup // Title specifies extra information about an element. Title(v string) HTMLColGroup // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLColGroup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLColGroup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLColGroup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLColGroup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLColGroup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLColGroup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLColGroup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLColGroup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLColGroup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLColGroup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLColGroup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLColGroup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLColGroup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLColGroup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLColGroup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLColGroup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLColGroup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLColGroup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLColGroup // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLColGroup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLColGroup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLColGroup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLColGroup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLColGroup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLColGroup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLColGroup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLColGroup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLColGroup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLColGroup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLColGroup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLColGroup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLColGroup }
HTMLColGroup is the interface that describes a <colgroup> HTML element.
func ColGroup ¶
func ColGroup() HTMLColGroup
ColGroup returns an HTML element that specifies a group of one or more columns in a table for formatting.
type HTMLData ¶
type HTMLData interface { UI // Body set the content of the element. Body(elems ...UI) HTMLData // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLData // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLData // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLData // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLData // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLData // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLData // Dir specifies the text direction for the content in an element. Dir(v string) HTMLData // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLData // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLData // ID specifies a unique id for an element. ID(v string) HTMLData // Lang specifies the language of the element's content. Lang(v string) HTMLData // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLData // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLData // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLData // Title specifies extra information about an element. Title(v string) HTMLData // Value specifies the value of the element. Value(v interface{}) HTMLData }
HTMLData is the interface that describes a <data> HTML element.
type HTMLDataList ¶
type HTMLDataList interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDataList // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDataList // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDataList // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDataList // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDataList // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDataList // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDataList // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDataList // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDataList // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDataList // ID specifies a unique id for an element. ID(v string) HTMLDataList // Lang specifies the language of the element's content. Lang(v string) HTMLDataList // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDataList // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDataList // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDataList // Title specifies extra information about an element. Title(v string) HTMLDataList // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDataList // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDataList // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDataList // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDataList // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDataList // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDataList // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDataList // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDataList // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDataList // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDataList // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDataList // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDataList // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDataList // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDataList // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDataList // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDataList // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDataList // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDataList // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDataList // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDataList // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDataList // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDataList // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDataList // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDataList // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDataList // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDataList // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDataList // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDataList // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDataList // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDataList // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDataList // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDataList }
HTMLDataList is the interface that describes a <datalist> HTML element.
func DataList ¶
func DataList() HTMLDataList
DataList returns an HTML element that specifies a list of pre-defined options for input controls.
type HTMLDd ¶
type HTMLDd interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDd // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDd // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDd // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDd // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDd // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDd // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDd // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDd // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDd // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDd // ID specifies a unique id for an element. ID(v string) HTMLDd // Lang specifies the language of the element's content. Lang(v string) HTMLDd // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDd // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDd // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDd // Title specifies extra information about an element. Title(v string) HTMLDd // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDd // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDd // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDd // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDd // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDd // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDd // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDd // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDd // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDd // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDd // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDd // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDd // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDd // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDd // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDd // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDd // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDd // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDd // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDd // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDd // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDd // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDd // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDd // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDd // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDd // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDd // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDd // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDd // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDd // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDd // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDd // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDd }
HTMLDd is the interface that describes a <dd> HTML element.
type HTMLDel ¶
type HTMLDel interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDel // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDel // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDel // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDel // Cite specifies a URL which explains the quote/deleted/inserted text. Cite(v string) HTMLDel // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDel // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDel // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDel // DateTime specifies the date and time. DateTime(v string) HTMLDel // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDel // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDel // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDel // ID specifies a unique id for an element. ID(v string) HTMLDel // Lang specifies the language of the element's content. Lang(v string) HTMLDel // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDel // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDel // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDel // Title specifies extra information about an element. Title(v string) HTMLDel // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDel // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDel // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDel // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDel // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDel // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDel // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDel // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDel // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDel // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDel // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDel // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDel // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDel // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDel // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDel // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDel // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDel // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDel // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDel // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDel // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDel // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDel // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDel // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDel // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDel // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDel // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDel // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDel // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDel // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDel // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDel // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDel }
HTMLDel is the interface that describes a <del> HTML element.
type HTMLDetails ¶
type HTMLDetails interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDetails // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDetails // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDetails // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDetails // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDetails // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDetails // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDetails // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDetails // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDetails // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDetails // ID specifies a unique id for an element. ID(v string) HTMLDetails // Lang specifies the language of the element's content. Lang(v string) HTMLDetails // Open specifies that the details should be visible (open) to the user. Open(v bool) HTMLDetails // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDetails // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDetails // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDetails // Title specifies extra information about an element. Title(v string) HTMLDetails // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDetails // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDetails // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDetails // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDetails // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDetails // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDetails // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDetails // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDetails // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDetails // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDetails // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDetails // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDetails // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDetails // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDetails // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDetails // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDetails // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDetails // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDetails // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDetails // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDetails // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDetails // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDetails // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDetails // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDetails // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDetails // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDetails // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDetails // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDetails // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDetails // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDetails // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDetails // OnToggle calls the given handler when the user opens or closes the details element. OnToggle(h EventHandler, scope ...interface{}) HTMLDetails // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDetails }
HTMLDetails is the interface that describes a <details> HTML element.
func Details ¶
func Details() HTMLDetails
Details returns an HTML element that defines additional details that the user can view or hide.
type HTMLDfn ¶
type HTMLDfn interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDfn // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDfn // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDfn // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDfn // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDfn // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDfn // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDfn // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDfn // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDfn // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDfn // ID specifies a unique id for an element. ID(v string) HTMLDfn // Lang specifies the language of the element's content. Lang(v string) HTMLDfn // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDfn // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDfn // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDfn // Title specifies extra information about an element. Title(v string) HTMLDfn // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDfn // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDfn // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDfn // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDfn // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDfn // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDfn // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDfn // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDfn // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDfn // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDfn // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDfn // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDfn // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDfn // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDfn // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDfn // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDfn // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDfn // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDfn // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDfn // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDfn // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDfn // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDfn // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDfn // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDfn // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDfn // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDfn // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDfn // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDfn // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDfn // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDfn // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDfn // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDfn }
HTMLDfn is the interface that describes a <dfn> HTML element.
type HTMLDialog ¶
type HTMLDialog interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDialog // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDialog // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDialog // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDialog // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDialog // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDialog // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDialog // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDialog // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDialog // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDialog // ID specifies a unique id for an element. ID(v string) HTMLDialog // Lang specifies the language of the element's content. Lang(v string) HTMLDialog // Open specifies that the details should be visible (open) to the user. Open(v bool) HTMLDialog // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDialog // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDialog // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDialog // Title specifies extra information about an element. Title(v string) HTMLDialog // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDialog // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDialog // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDialog // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDialog // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDialog // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDialog // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDialog // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDialog // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDialog // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDialog // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDialog // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDialog // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDialog // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDialog // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDialog // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDialog // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDialog // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDialog // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDialog // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDialog // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDialog // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDialog // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDialog // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDialog // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDialog // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDialog // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDialog // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDialog // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDialog // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDialog // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDialog // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDialog }
HTMLDialog is the interface that describes a <dialog> HTML element.
func Dialog ¶
func Dialog() HTMLDialog
Dialog returns an HTML element that defines a dialog box or window.
type HTMLDiv ¶
type HTMLDiv interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDiv // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDiv // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDiv // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDiv // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDiv // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDiv // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDiv // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDiv // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDiv // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDiv // ID specifies a unique id for an element. ID(v string) HTMLDiv // Lang specifies the language of the element's content. Lang(v string) HTMLDiv // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDiv // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDiv // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDiv // Title specifies extra information about an element. Title(v string) HTMLDiv // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDiv // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDiv // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDiv // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDiv // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDiv // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDiv // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDiv // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDiv // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDiv // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDiv // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDiv // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDiv // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDiv // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDiv // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDiv // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDiv // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDiv // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDiv // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDiv // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDiv // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDiv // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDiv // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDiv // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDiv // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDiv // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDiv // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDiv // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDiv // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDiv // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDiv // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDiv // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDiv }
HTMLDiv is the interface that describes a <div> HTML element.
type HTMLDl ¶
type HTMLDl interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDl // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDl // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDl // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDl // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDl // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDl // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDl // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDl // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDl // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDl // ID specifies a unique id for an element. ID(v string) HTMLDl // Lang specifies the language of the element's content. Lang(v string) HTMLDl // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDl // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDl // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDl // Title specifies extra information about an element. Title(v string) HTMLDl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDl // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDl }
HTMLDl is the interface that describes a <dl> HTML element.
type HTMLDt ¶
type HTMLDt interface { UI // Body set the content of the element. Body(elems ...UI) HTMLDt // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLDt // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLDt // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLDt // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLDt // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLDt // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLDt // Dir specifies the text direction for the content in an element. Dir(v string) HTMLDt // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLDt // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLDt // ID specifies a unique id for an element. ID(v string) HTMLDt // Lang specifies the language of the element's content. Lang(v string) HTMLDt // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLDt // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLDt // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLDt // Title specifies extra information about an element. Title(v string) HTMLDt // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLDt // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLDt // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLDt // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLDt // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLDt // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLDt // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLDt // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLDt // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLDt // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLDt // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLDt // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLDt // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLDt // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLDt // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLDt // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLDt // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLDt // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLDt // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLDt // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLDt // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLDt // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLDt // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLDt // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLDt // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLDt // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLDt // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLDt // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLDt // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLDt // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLDt // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLDt // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLDt }
HTMLDt is the interface that describes a <dt> HTML element.
type HTMLEm ¶
type HTMLEm interface { UI // Body set the content of the element. Body(elems ...UI) HTMLEm // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLEm // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLEm // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLEm // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLEm // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLEm // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLEm // Dir specifies the text direction for the content in an element. Dir(v string) HTMLEm // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLEm // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLEm // ID specifies a unique id for an element. ID(v string) HTMLEm // Lang specifies the language of the element's content. Lang(v string) HTMLEm // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLEm // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLEm // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLEm // Title specifies extra information about an element. Title(v string) HTMLEm // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLEm // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLEm // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLEm // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLEm // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLEm // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLEm // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLEm // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLEm // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLEm // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLEm // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLEm // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLEm // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLEm // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLEm // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLEm // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLEm // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLEm // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLEm // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLEm // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLEm // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLEm // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLEm // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLEm // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLEm // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLEm // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLEm // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLEm // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLEm // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLEm // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLEm // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLEm // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLEm }
HTMLEm is the interface that describes a <em> HTML element.
type HTMLEmbed ¶
type HTMLEmbed interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLEmbed // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLEmbed // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLEmbed // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLEmbed // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLEmbed // Dir specifies the text direction for the content in an element. Dir(v string) HTMLEmbed // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLEmbed // Height specifies the height of the element (in pixels). Height(v int) HTMLEmbed // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLEmbed // ID specifies a unique id for an element. ID(v string) HTMLEmbed // Lang specifies the language of the element's content. Lang(v string) HTMLEmbed // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLEmbed // Src specifies the URL of the media file. Src(v string) HTMLEmbed // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLEmbed // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLEmbed // Title specifies extra information about an element. Title(v string) HTMLEmbed // Type specifies the type of element. Type(v string) HTMLEmbed // Width specifies the width of the element. Width(v int) HTMLEmbed // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...interface{}) HTMLEmbed // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLEmbed // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). OnCanPlay(h EventHandler, scope ...interface{}) HTMLEmbed // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. OnCanPlayThrough(h EventHandler, scope ...interface{}) HTMLEmbed // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLEmbed // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLEmbed // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLEmbed // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLEmbed // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...interface{}) HTMLEmbed // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLEmbed // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLEmbed // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLEmbed // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLEmbed // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLEmbed // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLEmbed // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLEmbed // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLEmbed // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLEmbed // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...interface{}) HTMLEmbed // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...interface{}) HTMLEmbed // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...interface{}) HTMLEmbed // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLEmbed // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLEmbed // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLEmbed // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLEmbed // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLEmbed // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLEmbed // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLEmbed // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...interface{}) HTMLEmbed // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...interface{}) HTMLEmbed // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLEmbed // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLEmbed // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLEmbed // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLEmbed // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLEmbed // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLEmbed // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...interface{}) HTMLEmbed // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...interface{}) HTMLEmbed // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...interface{}) HTMLEmbed // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...interface{}) HTMLEmbed // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). OnRateChange(h EventHandler, scope ...interface{}) HTMLEmbed // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLEmbed // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLEmbed // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLEmbed // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...interface{}) HTMLEmbed // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...interface{}) HTMLEmbed // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLEmbed // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...interface{}) HTMLEmbed // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLEmbed // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler, scope ...interface{}) HTMLEmbed // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). OnTimeUpdate(h EventHandler, scope ...interface{}) HTMLEmbed // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...interface{}) HTMLEmbed // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). OnWaiting(h EventHandler, scope ...interface{}) HTMLEmbed // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLEmbed // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler, scope ...interface{}) HTMLEmbed }
HTMLEmbed is the interface that describes a <embed> HTML element.
type HTMLFieldSet ¶
type HTMLFieldSet interface { UI // Body set the content of the element. Body(elems ...UI) HTMLFieldSet // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLFieldSet // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLFieldSet // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLFieldSet // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLFieldSet // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLFieldSet // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLFieldSet // Dir specifies the text direction for the content in an element. Dir(v string) HTMLFieldSet // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLFieldSet // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLFieldSet // Form specifies the name of the form the element belongs to. Form(v string) HTMLFieldSet // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLFieldSet // ID specifies a unique id for an element. ID(v string) HTMLFieldSet // Lang specifies the language of the element's content. Lang(v string) HTMLFieldSet // Name specifies the name of the element. Name(v string) HTMLFieldSet // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLFieldSet // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLFieldSet // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLFieldSet // Title specifies extra information about an element. Title(v string) HTMLFieldSet // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLFieldSet // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLFieldSet // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLFieldSet // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLFieldSet // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLFieldSet // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLFieldSet // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLFieldSet // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLFieldSet // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLFieldSet // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLFieldSet // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLFieldSet // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLFieldSet // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLFieldSet // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLFieldSet // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLFieldSet // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLFieldSet // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLFieldSet // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLFieldSet // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLFieldSet // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLFieldSet // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLFieldSet // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLFieldSet // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLFieldSet // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLFieldSet // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLFieldSet }
HTMLFieldSet is the interface that describes a <fieldset> HTML element.
func FieldSet ¶
func FieldSet() HTMLFieldSet
FieldSet returns an HTML element that groups related elements in a form.
type HTMLFigCaption ¶
type HTMLFigCaption interface { UI // Body set the content of the element. Body(elems ...UI) HTMLFigCaption // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLFigCaption // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLFigCaption // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLFigCaption // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLFigCaption // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLFigCaption // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLFigCaption // Dir specifies the text direction for the content in an element. Dir(v string) HTMLFigCaption // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLFigCaption // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLFigCaption // ID specifies a unique id for an element. ID(v string) HTMLFigCaption // Lang specifies the language of the element's content. Lang(v string) HTMLFigCaption // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLFigCaption // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLFigCaption // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLFigCaption // Title specifies extra information about an element. Title(v string) HTMLFigCaption // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLFigCaption // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLFigCaption // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLFigCaption // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLFigCaption // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLFigCaption // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLFigCaption // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLFigCaption // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLFigCaption // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLFigCaption // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLFigCaption // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLFigCaption // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLFigCaption // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLFigCaption // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLFigCaption // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLFigCaption // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLFigCaption // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLFigCaption // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLFigCaption // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLFigCaption // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLFigCaption // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLFigCaption // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLFigCaption // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLFigCaption // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLFigCaption // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLFigCaption }
HTMLFigCaption is the interface that describes a <figcaption> HTML element.
func FigCaption ¶
func FigCaption() HTMLFigCaption
FigCaption returns an HTML element that defines a caption for a figure element.
type HTMLFigure ¶
type HTMLFigure interface { UI // Body set the content of the element. Body(elems ...UI) HTMLFigure // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLFigure // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLFigure // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLFigure // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLFigure // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLFigure // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLFigure // Dir specifies the text direction for the content in an element. Dir(v string) HTMLFigure // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLFigure // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLFigure // ID specifies a unique id for an element. ID(v string) HTMLFigure // Lang specifies the language of the element's content. Lang(v string) HTMLFigure // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLFigure // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLFigure // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLFigure // Title specifies extra information about an element. Title(v string) HTMLFigure // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLFigure // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLFigure // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLFigure // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLFigure // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLFigure // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLFigure // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLFigure // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLFigure // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLFigure // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLFigure // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLFigure // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLFigure // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLFigure // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLFigure // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLFigure // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLFigure // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLFigure // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLFigure // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLFigure // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLFigure // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLFigure // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLFigure // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLFigure // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLFigure // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLFigure // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLFigure // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLFigure // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLFigure // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLFigure // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLFigure // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLFigure // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLFigure }
HTMLFigure is the interface that describes a <figure> HTML element.
func Figure ¶
func Figure() HTMLFigure
Figure returns an HTML element that specifies self-contained content.
type HTMLFooter ¶
type HTMLFooter interface { UI Body(elems ...UI) HTMLFooter Text(v interface{}) HTMLFooter AccessKey(v string) HTMLFooter Aria(k string, v interface{}) HTMLFooter Class(v string) HTMLFooter ContentEditable(v bool) HTMLFooter DataSet(k string, v interface{}) HTMLFooter Dir(v string) HTMLFooter Draggable(v bool) HTMLFooter Hidden(v bool) HTMLFooter ID(v string) HTMLFooter Lang(v string) HTMLFooter Spellcheck(v bool) HTMLFooter Style(k, v string) HTMLFooter TabIndex(v int) HTMLFooter Title(v string) HTMLFooter OnBlur(h EventHandler, scope ...interface{}) HTMLFooter OnChange(h EventHandler, scope ...interface{}) HTMLFooter OnClick(h EventHandler, scope ...interface{}) HTMLFooter OnContextMenu(h EventHandler, scope ...interface{}) HTMLFooter OnCopy(h EventHandler, scope ...interface{}) HTMLFooter OnCut(h EventHandler, scope ...interface{}) HTMLFooter OnDblClick(h EventHandler, scope ...interface{}) HTMLFooter OnDrag(h EventHandler, scope ...interface{}) HTMLFooter OnDragEnd(h EventHandler, scope ...interface{}) HTMLFooter OnDragEnter(h EventHandler, scope ...interface{}) HTMLFooter OnDragLeave(h EventHandler, scope ...interface{}) HTMLFooter OnDragOver(h EventHandler, scope ...interface{}) HTMLFooter OnDragStart(h EventHandler, scope ...interface{}) HTMLFooter OnDrop(h EventHandler, scope ...interface{}) HTMLFooter OnFocus(h EventHandler, scope ...interface{}) HTMLFooter OnInput(h EventHandler, scope ...interface{}) HTMLFooter OnInvalid(h EventHandler, scope ...interface{}) HTMLFooter OnKeyDown(h EventHandler, scope ...interface{}) HTMLFooter OnKeyPress(h EventHandler, scope ...interface{}) HTMLFooter OnKeyup(h EventHandler, scope ...interface{}) HTMLFooter OnMouseDown(h EventHandler, scope ...interface{}) HTMLFooter OnMouseMove(h EventHandler, scope ...interface{}) HTMLFooter OnMouseOut(h EventHandler, scope ...interface{}) HTMLFooter OnMouseOver(h EventHandler, scope ...interface{}) HTMLFooter OnMouseUp(h EventHandler, scope ...interface{}) HTMLFooter OnPaste(h EventHandler, scope ...interface{}) HTMLFooter OnReset(h EventHandler, scope ...interface{}) HTMLFooter OnScroll(h EventHandler, scope ...interface{}) HTMLFooter OnSearch(h EventHandler, scope ...interface{}) HTMLFooter OnSelect(h EventHandler, scope ...interface{}) HTMLFooter OnSubmit(h EventHandler, scope ...interface{}) HTMLFooter OnWheel(h EventHandler, scope ...interface{}) HTMLFooter }
HTMLFooter is the interface that describes a <footer> HTML element.
func Footer ¶
func Footer() HTMLFooter
Footer returns an HTML element that defines a footer for a document or section.
type HTMLForm ¶
type HTMLForm interface { UI // Body set the content of the element. Body(elems ...UI) HTMLForm // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLForm // AcceptCharset specifies the character encodings that are to be used for the form submission. AcceptCharset(v string) HTMLForm // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLForm // Action specifies where to send the form-data when a form is submitted. Action(v string) HTMLForm // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLForm // AutoComplete specifies whether the element should have autocomplete enabled. AutoComplete(v bool) HTMLForm // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLForm // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLForm // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLForm // Dir specifies the text direction for the content in an element. Dir(v string) HTMLForm // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLForm // EncType specifies how the form-data should be encoded when submitting it to the server (only for post method). EncType(v string) HTMLForm // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLForm // ID specifies a unique id for an element. ID(v string) HTMLForm // Lang specifies the language of the element's content. Lang(v string) HTMLForm // Method specifies the HTTP method to use when sending form-data. Method(v string) HTMLForm // Name specifies the name of the element. Name(v string) HTMLForm // NoValidate specifies that the form should not be validated when submitted. NoValidate(v bool) HTMLForm // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLForm // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLForm // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLForm // Target specifies the target for where to open the linked document or where to submit the form. Target(v string) HTMLForm // Title specifies extra information about an element. Title(v string) HTMLForm // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLForm // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLForm // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLForm // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLForm // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLForm // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLForm // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLForm // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLForm // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLForm // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLForm // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLForm // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLForm // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLForm // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLForm // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLForm // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLForm // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLForm // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLForm // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLForm // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLForm // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLForm // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLForm // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLForm // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLForm // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLForm // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLForm // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLForm // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLForm // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLForm // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLForm // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLForm // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLForm }
HTMLForm is the interface that describes a <form> HTML element.
type HTMLH1 ¶
type HTMLH1 interface { UI // Body set the content of the element. Body(elems ...UI) HTMLH1 // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLH1 // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLH1 // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLH1 // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLH1 // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLH1 // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLH1 // Dir specifies the text direction for the content in an element. Dir(v string) HTMLH1 // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLH1 // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLH1 // ID specifies a unique id for an element. ID(v string) HTMLH1 // Lang specifies the language of the element's content. Lang(v string) HTMLH1 // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLH1 // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLH1 // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLH1 // Title specifies extra information about an element. Title(v string) HTMLH1 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLH1 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLH1 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLH1 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLH1 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLH1 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLH1 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLH1 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLH1 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLH1 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLH1 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLH1 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLH1 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLH1 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLH1 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLH1 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLH1 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLH1 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLH1 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLH1 // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLH1 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLH1 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLH1 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLH1 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLH1 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLH1 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLH1 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLH1 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLH1 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLH1 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLH1 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLH1 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLH1 }
HTMLH1 is the interface that describes a <h1> HTML element.
type HTMLH2 ¶
type HTMLH2 interface { UI // Body set the content of the element. Body(elems ...UI) HTMLH2 // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLH2 // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLH2 // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLH2 // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLH2 // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLH2 // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLH2 // Dir specifies the text direction for the content in an element. Dir(v string) HTMLH2 // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLH2 // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLH2 // ID specifies a unique id for an element. ID(v string) HTMLH2 // Lang specifies the language of the element's content. Lang(v string) HTMLH2 // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLH2 // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLH2 // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLH2 // Title specifies extra information about an element. Title(v string) HTMLH2 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLH2 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLH2 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLH2 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLH2 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLH2 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLH2 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLH2 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLH2 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLH2 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLH2 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLH2 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLH2 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLH2 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLH2 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLH2 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLH2 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLH2 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLH2 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLH2 // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLH2 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLH2 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLH2 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLH2 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLH2 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLH2 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLH2 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLH2 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLH2 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLH2 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLH2 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLH2 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLH2 }
HTMLH2 is the interface that describes a <h2> HTML element.
type HTMLH3 ¶
type HTMLH3 interface { UI // Body set the content of the element. Body(elems ...UI) HTMLH3 // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLH3 // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLH3 // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLH3 // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLH3 // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLH3 // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLH3 // Dir specifies the text direction for the content in an element. Dir(v string) HTMLH3 // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLH3 // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLH3 // ID specifies a unique id for an element. ID(v string) HTMLH3 // Lang specifies the language of the element's content. Lang(v string) HTMLH3 // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLH3 // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLH3 // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLH3 // Title specifies extra information about an element. Title(v string) HTMLH3 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLH3 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLH3 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLH3 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLH3 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLH3 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLH3 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLH3 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLH3 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLH3 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLH3 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLH3 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLH3 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLH3 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLH3 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLH3 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLH3 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLH3 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLH3 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLH3 // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLH3 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLH3 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLH3 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLH3 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLH3 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLH3 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLH3 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLH3 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLH3 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLH3 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLH3 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLH3 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLH3 }
HTMLH3 is the interface that describes a <h3> HTML element.
type HTMLH4 ¶
type HTMLH4 interface { UI // Body set the content of the element. Body(elems ...UI) HTMLH4 // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLH4 // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLH4 // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLH4 // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLH4 // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLH4 // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLH4 // Dir specifies the text direction for the content in an element. Dir(v string) HTMLH4 // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLH4 // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLH4 // ID specifies a unique id for an element. ID(v string) HTMLH4 // Lang specifies the language of the element's content. Lang(v string) HTMLH4 // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLH4 // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLH4 // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLH4 // Title specifies extra information about an element. Title(v string) HTMLH4 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLH4 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLH4 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLH4 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLH4 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLH4 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLH4 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLH4 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLH4 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLH4 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLH4 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLH4 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLH4 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLH4 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLH4 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLH4 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLH4 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLH4 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLH4 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLH4 // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLH4 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLH4 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLH4 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLH4 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLH4 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLH4 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLH4 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLH4 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLH4 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLH4 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLH4 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLH4 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLH4 }
HTMLH4 is the interface that describes a <h4> HTML element.
type HTMLH5 ¶
type HTMLH5 interface { UI // Body set the content of the element. Body(elems ...UI) HTMLH5 // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLH5 // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLH5 // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLH5 // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLH5 // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLH5 // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLH5 // Dir specifies the text direction for the content in an element. Dir(v string) HTMLH5 // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLH5 // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLH5 // ID specifies a unique id for an element. ID(v string) HTMLH5 // Lang specifies the language of the element's content. Lang(v string) HTMLH5 // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLH5 // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLH5 // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLH5 // Title specifies extra information about an element. Title(v string) HTMLH5 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLH5 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLH5 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLH5 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLH5 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLH5 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLH5 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLH5 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLH5 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLH5 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLH5 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLH5 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLH5 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLH5 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLH5 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLH5 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLH5 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLH5 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLH5 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLH5 // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLH5 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLH5 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLH5 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLH5 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLH5 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLH5 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLH5 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLH5 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLH5 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLH5 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLH5 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLH5 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLH5 }
HTMLH5 is the interface that describes a <h5> HTML element.
type HTMLH6 ¶
type HTMLH6 interface { UI // Body set the content of the element. Body(elems ...UI) HTMLH6 // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLH6 // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLH6 // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLH6 // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLH6 // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLH6 // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLH6 // Dir specifies the text direction for the content in an element. Dir(v string) HTMLH6 // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLH6 // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLH6 // ID specifies a unique id for an element. ID(v string) HTMLH6 // Lang specifies the language of the element's content. Lang(v string) HTMLH6 // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLH6 // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLH6 // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLH6 // Title specifies extra information about an element. Title(v string) HTMLH6 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLH6 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLH6 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLH6 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLH6 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLH6 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLH6 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLH6 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLH6 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLH6 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLH6 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLH6 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLH6 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLH6 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLH6 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLH6 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLH6 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLH6 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLH6 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLH6 // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLH6 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLH6 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLH6 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLH6 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLH6 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLH6 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLH6 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLH6 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLH6 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLH6 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLH6 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLH6 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLH6 }
HTMLH6 is the interface that describes a <h6> HTML element.
type HTMLHead ¶
type HTMLHead interface { UI // Body set the content of the element. Body(elems ...UI) HTMLHead // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLHead // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLHead // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLHead // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLHead // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLHead // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLHead // Dir specifies the text direction for the content in an element. Dir(v string) HTMLHead // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLHead // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLHead // ID specifies a unique id for an element. ID(v string) HTMLHead // Lang specifies the language of the element's content. Lang(v string) HTMLHead // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLHead // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLHead // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLHead // Title specifies extra information about an element. Title(v string) HTMLHead }
HTMLHead is the interface that describes a <head> HTML element.
type HTMLHeader ¶
type HTMLHeader interface { UI // Body set the content of the element. Body(elems ...UI) HTMLHeader // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLHeader // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLHeader // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLHeader // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLHeader // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLHeader // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLHeader // Dir specifies the text direction for the content in an element. Dir(v string) HTMLHeader // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLHeader // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLHeader // ID specifies a unique id for an element. ID(v string) HTMLHeader // Lang specifies the language of the element's content. Lang(v string) HTMLHeader // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLHeader // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLHeader // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLHeader // Title specifies extra information about an element. Title(v string) HTMLHeader // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLHeader // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLHeader // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLHeader // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLHeader // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLHeader // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLHeader // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLHeader // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLHeader // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLHeader // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLHeader // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLHeader // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLHeader // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLHeader // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLHeader // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLHeader // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLHeader // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLHeader // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLHeader // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLHeader // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLHeader // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLHeader // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLHeader // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLHeader // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLHeader // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLHeader // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLHeader // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLHeader // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLHeader // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLHeader // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLHeader // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLHeader // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLHeader }
HTMLHeader is the interface that describes a <header> HTML element.
func Header ¶
func Header() HTMLHeader
Header returns an HTML element that defines a header for a document or section.
type HTMLHr ¶
type HTMLHr interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLHr // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLHr // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLHr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLHr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLHr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLHr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLHr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLHr // ID specifies a unique id for an element. ID(v string) HTMLHr // Lang specifies the language of the element's content. Lang(v string) HTMLHr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLHr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLHr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLHr // Title specifies extra information about an element. Title(v string) HTMLHr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLHr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLHr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLHr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLHr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLHr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLHr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLHr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLHr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLHr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLHr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLHr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLHr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLHr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLHr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLHr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLHr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLHr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLHr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLHr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLHr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLHr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLHr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLHr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLHr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLHr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLHr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLHr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLHr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLHr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLHr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLHr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLHr }
HTMLHr is the interface that describes a <hr> HTML element.
type HTMLHtml ¶
type HTMLHtml interface { UI // Body set the content of the element. Body(elems ...UI) HTMLHtml // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLHtml // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLHtml // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLHtml // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLHtml // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLHtml // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLHtml // Dir specifies the text direction for the content in an element. Dir(v string) HTMLHtml // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLHtml // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLHtml // ID specifies a unique id for an element. ID(v string) HTMLHtml // Lang specifies the language of the element's content. Lang(v string) HTMLHtml // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLHtml // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLHtml // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLHtml // Title specifies extra information about an element. Title(v string) HTMLHtml }
HTMLHtml is the interface that describes a <html> HTML element.
type HTMLI ¶
type HTMLI interface { UI // Body set the content of the element. Body(elems ...UI) HTMLI // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLI // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLI // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLI // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLI // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLI // Dir specifies the text direction for the content in an element. Dir(v string) HTMLI // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLI // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLI // ID specifies a unique id for an element. ID(v string) HTMLI // Lang specifies the language of the element's content. Lang(v string) HTMLI // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLI // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLI // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLI // Title specifies extra information about an element. Title(v string) HTMLI // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLI // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLI // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLI // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLI // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLI // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLI // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLI // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLI // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLI // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLI // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLI // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLI // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLI // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLI // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLI // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLI // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLI // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLI // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLI // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLI // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLI // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLI // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLI // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLI // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLI // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLI // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLI // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLI // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLI // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLI // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLI // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLI }
HTMLI is the interface that describes a <i> HTML element.
type HTMLIFrame ¶
type HTMLIFrame interface { UI // Body set the content of the element. Body(elems ...UI) HTMLIFrame // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLIFrame // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLIFrame // Allow specifies a feature policy. Can be called multiple times to set multiple policies. Allow(v string) HTMLIFrame // AllowFullscreen reports whether an iframe can activate fullscreen mode. AllowFullscreen(v bool) HTMLIFrame // AllowPaymentRequest reports whether an iframe should be allowed to invoke the Payment Request API AllowPaymentRequest(v bool) HTMLIFrame // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLIFrame // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLIFrame // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLIFrame // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLIFrame // Dir specifies the text direction for the content in an element. Dir(v string) HTMLIFrame // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLIFrame // Height specifies the height of the element (in pixels). Height(v int) HTMLIFrame // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLIFrame // ID specifies a unique id for an element. ID(v string) HTMLIFrame // Lang specifies the language of the element's content. Lang(v string) HTMLIFrame // Name specifies the name of the element. Name(v string) HTMLIFrame // ReferrerPolicy specifies how much/which referrer information that will be sent when processing the iframe attributes ReferrerPolicy(v string) HTMLIFrame // Sandbox enables an extra set of restrictions for the content in an iframe. Sandbox(v interface{}) HTMLIFrame // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLIFrame // Src specifies the URL of the media file. Src(v string) HTMLIFrame // SrcDoc specifies the HTML content of the page to show in the iframe. SrcDoc(v string) HTMLIFrame // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLIFrame // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLIFrame // Title specifies extra information about an element. Title(v string) HTMLIFrame // Width specifies the width of the element. Width(v int) HTMLIFrame // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLIFrame // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLIFrame // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLIFrame // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLIFrame // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLIFrame // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLIFrame // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLIFrame // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLIFrame // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLIFrame // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLIFrame // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLIFrame // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLIFrame // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLIFrame // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLIFrame // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLIFrame // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLIFrame // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLIFrame // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLIFrame // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLIFrame // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLIFrame // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLIFrame // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLIFrame // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLIFrame // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLIFrame // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLIFrame // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLIFrame // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLIFrame // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLIFrame // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLIFrame // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLIFrame // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLIFrame // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLIFrame // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLIFrame }
HTMLIFrame is the interface that describes a <iframe> HTML element.
type HTMLImg ¶
type HTMLImg interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLImg // Alt specifies an alternate text when the original element fails to display. Alt(v string) HTMLImg // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLImg // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLImg // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLImg // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLImg // Dir specifies the text direction for the content in an element. Dir(v string) HTMLImg // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLImg // Height specifies the height of the element (in pixels). Height(v int) HTMLImg // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLImg // ID specifies a unique id for an element. ID(v string) HTMLImg // IsMap specifies an image as a server-side image-map. IsMap(v bool) HTMLImg // Lang specifies the language of the element's content. Lang(v string) HTMLImg // Sizes specifies the size of the linked resource. Sizes(v string) HTMLImg // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLImg // Src specifies the URL of the media file. Src(v string) HTMLImg // SrcSet specifies the URL of the image to use in different situations. SrcSet(v string) HTMLImg // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLImg // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLImg // Title specifies extra information about an element. Title(v string) HTMLImg // UseMap specifies an image as a client-side image-map. UseMap(v string) HTMLImg // Width specifies the width of the element. Width(v int) HTMLImg // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...interface{}) HTMLImg // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLImg // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). OnCanPlay(h EventHandler, scope ...interface{}) HTMLImg // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. OnCanPlayThrough(h EventHandler, scope ...interface{}) HTMLImg // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLImg // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLImg // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLImg // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLImg // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...interface{}) HTMLImg // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLImg // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLImg // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLImg // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLImg // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLImg // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLImg // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLImg // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLImg // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLImg // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...interface{}) HTMLImg // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...interface{}) HTMLImg // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...interface{}) HTMLImg // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLImg // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLImg // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLImg // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLImg // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLImg // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLImg // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLImg // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLImg // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...interface{}) HTMLImg // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...interface{}) HTMLImg // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLImg // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLImg // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLImg // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLImg // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLImg // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLImg // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...interface{}) HTMLImg // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...interface{}) HTMLImg // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...interface{}) HTMLImg // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...interface{}) HTMLImg // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). OnRateChange(h EventHandler, scope ...interface{}) HTMLImg // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLImg // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLImg // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLImg // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...interface{}) HTMLImg // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...interface{}) HTMLImg // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLImg // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...interface{}) HTMLImg // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLImg // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler, scope ...interface{}) HTMLImg // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). OnTimeUpdate(h EventHandler, scope ...interface{}) HTMLImg // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...interface{}) HTMLImg // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). OnWaiting(h EventHandler, scope ...interface{}) HTMLImg // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLImg // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler, scope ...interface{}) HTMLImg }
HTMLImg is the interface that describes a <img> HTML element.
type HTMLInput ¶
type HTMLInput interface { UI // Accept specifies the types of files that the server accepts (only for file type). Accept(v string) HTMLInput // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLInput // Alt specifies an alternate text when the original element fails to display. Alt(v string) HTMLInput // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLInput // AutoComplete specifies whether the element should have autocomplete enabled. AutoComplete(v bool) HTMLInput // AutoFocus specifies that the element should automatically get focus when the page loads. AutoFocus(v bool) HTMLInput // Checked specifies that an input element should be pre-selected when the page loads (for checkbox or radio types). Checked(v bool) HTMLInput // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLInput // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLInput // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLInput // Dir specifies the text direction for the content in an element. Dir(v string) HTMLInput // DirName specifies that the text direction will be submitted. DirName(v string) HTMLInput // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLInput // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLInput // Form specifies the name of the form the element belongs to. Form(v string) HTMLInput // FormAction specifies where to send the form-data when a form is submitted. Only for submit type. FormAction(v string) HTMLInput // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type. FormEncType(v string) HTMLInput // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type. FormMethod(v string) HTMLInput // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type. FormNoValidate(v bool) HTMLInput // FormTarget specifies where to display the response after submitting the form. Only for submit type. FormTarget(v string) HTMLInput // Height specifies the height of the element (in pixels). Height(v int) HTMLInput // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLInput // ID specifies a unique id for an element. ID(v string) HTMLInput // Lang specifies the language of the element's content. Lang(v string) HTMLInput // List refers to a datalist element that contains pre-defined options for an input element. List(v string) HTMLInput // Max Specifies the maximum value. Max(v interface{}) HTMLInput // MaxLength specifies the maximum number of characters allowed in an element. MaxLength(v int) HTMLInput // Min specifies a minimum value. Min(v interface{}) HTMLInput // Multiple specifies that a user can enter more than one value. Multiple(v bool) HTMLInput // Name specifies the name of the element. Name(v string) HTMLInput // Pattern specifies a regular expression that an input element's value is checked against. Pattern(v string) HTMLInput // Placeholder specifies a short hint that describes the expected value of the element. Placeholder(v string) HTMLInput // ReadOnly specifies that the element is read-only. ReadOnly(v bool) HTMLInput // Required specifies that the element must be filled out before submitting the form. Required(v bool) HTMLInput // Size specifies the width. Size(v int) HTMLInput // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLInput // Src specifies the URL of the media file. Src(v string) HTMLInput // Step specifies the legal number intervals for an input field. Step(v float64) HTMLInput // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLInput // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLInput // Title specifies extra information about an element. Title(v string) HTMLInput // Type specifies the type of element. Type(v string) HTMLInput // Value specifies the value of the element. Value(v interface{}) HTMLInput // Width specifies the width of the element. Width(v int) HTMLInput // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLInput // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLInput // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLInput // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLInput // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLInput // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLInput // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLInput // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLInput // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLInput // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLInput // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLInput // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLInput // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLInput // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLInput // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLInput // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLInput // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLInput // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLInput // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLInput // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLInput // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLInput // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLInput // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLInput // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLInput // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLInput // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLInput // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLInput // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLInput // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLInput // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLInput // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLInput // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLInput // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLInput }
HTMLInput is the interface that describes a <input> HTML element.
type HTMLIns ¶
type HTMLIns interface { UI // Body set the content of the element. Body(elems ...UI) HTMLIns // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLIns // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLIns // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLIns // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLIns // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLIns // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLIns // Dir specifies the text direction for the content in an element. Dir(v string) HTMLIns // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLIns // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLIns // ID specifies a unique id for an element. ID(v string) HTMLIns // Lang specifies the language of the element's content. Lang(v string) HTMLIns // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLIns // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLIns // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLIns // Title specifies extra information about an element. Title(v string) HTMLIns // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLIns // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLIns // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLIns // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLIns // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLIns // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLIns // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLIns // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLIns // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLIns // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLIns // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLIns // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLIns // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLIns // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLIns // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLIns // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLIns // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLIns // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLIns // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLIns // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLIns // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLIns // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLIns // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLIns // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLIns // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLIns // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLIns // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLIns // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLIns // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLIns // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLIns // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLIns // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLIns }
HTMLIns is the interface that describes a <ins> HTML element.
type HTMLKbd ¶
type HTMLKbd interface { UI // Body set the content of the element. Body(elems ...UI) HTMLKbd // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLKbd // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLKbd // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLKbd // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLKbd // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLKbd // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLKbd // Dir specifies the text direction for the content in an element. Dir(v string) HTMLKbd // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLKbd // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLKbd // ID specifies a unique id for an element. ID(v string) HTMLKbd // Lang specifies the language of the element's content. Lang(v string) HTMLKbd // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLKbd // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLKbd // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLKbd // Title specifies extra information about an element. Title(v string) HTMLKbd // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLKbd // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLKbd // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLKbd // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLKbd // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLKbd // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLKbd // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLKbd // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLKbd // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLKbd // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLKbd // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLKbd // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLKbd // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLKbd // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLKbd // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLKbd // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLKbd // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLKbd // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLKbd // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLKbd // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLKbd // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLKbd // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLKbd // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLKbd // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLKbd // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLKbd // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLKbd // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLKbd // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLKbd // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLKbd // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLKbd // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLKbd // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLKbd }
HTMLKbd is the interface that describes a <kbd> HTML element.
type HTMLLabel ¶
type HTMLLabel interface { UI // Body set the content of the element. Body(elems ...UI) HTMLLabel // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLLabel // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLLabel // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLLabel // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLLabel // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLLabel // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLLabel // Dir specifies the text direction for the content in an element. Dir(v string) HTMLLabel // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLLabel // For specifies which form element(s) a label/calculation is bound to. For(v string) HTMLLabel // Form specifies the name of the form the element belongs to. Form(v string) HTMLLabel // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLLabel // ID specifies a unique id for an element. ID(v string) HTMLLabel // Lang specifies the language of the element's content. Lang(v string) HTMLLabel // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLLabel // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLLabel // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLLabel // Title specifies extra information about an element. Title(v string) HTMLLabel // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLLabel // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLLabel // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLLabel // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLLabel // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLLabel // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLLabel // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLLabel // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLLabel // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLLabel // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLLabel // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLLabel // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLLabel // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLLabel // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLLabel // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLLabel // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLLabel // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLLabel // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLLabel // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLLabel // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLLabel // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLLabel // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLLabel // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLLabel // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLLabel // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLLabel // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLLabel // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLLabel // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLLabel // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLLabel // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLLabel // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLLabel // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLLabel }
HTMLLabel is the interface that describes a <label> HTML element.
type HTMLLegend ¶
type HTMLLegend interface { UI // Body set the content of the element. Body(elems ...UI) HTMLLegend // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLLegend // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLLegend // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLLegend // 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) HTMLLegend // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLLegend // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLLegend // Dir specifies the text direction for the content in an element. Dir(v string) HTMLLegend // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLLegend // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLLegend // ID specifies a unique id for an element. ID(v string) HTMLLegend // Lang specifies the language of the element's content. Lang(v string) HTMLLegend // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLLegend // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLLegend // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLLegend // Title specifies extra information about an element. Title(v string) HTMLLegend // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLLegend // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLLegend // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLLegend // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLLegend // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLLegend // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLLegend // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLLegend // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLLegend // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLLegend // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLLegend // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLLegend // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLLegend // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLLegend // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLLegend // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLLegend // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLLegend // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLLegend // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLLegend // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLLegend // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLLegend // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLLegend // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLLegend // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLLegend // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLLegend // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLLegend // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLLegend // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLLegend // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLLegend // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLLegend // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLLegend // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLLegend // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLLegend }
HTMLLegend is the interface that describes a <legend> HTML element.
func Legend ¶
func Legend() HTMLLegend
Legend returns an HTML element that defines a caption for a fieldset element.
type HTMLLi ¶
type HTMLLi interface { UI // Body set the content of the element. Body(elems ...UI) HTMLLi // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLLi // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLLi // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLLi // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLLi // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLLi // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLLi // Dir specifies the text direction for the content in an element. Dir(v string) HTMLLi // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLLi // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLLi // ID specifies a unique id for an element. ID(v string) HTMLLi // Lang specifies the language of the element's content. Lang(v string) HTMLLi // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLLi // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLLi // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLLi // Title specifies extra information about an element. Title(v string) HTMLLi // Value specifies the value of the element. Value(v interface{}) HTMLLi // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLLi // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLLi // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLLi // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLLi // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLLi // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLLi // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLLi // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLLi // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLLi // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLLi // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLLi // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLLi // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLLi // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLLi // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLLi // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLLi // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLLi // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLLi // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLLi // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLLi // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLLi // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLLi // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLLi // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLLi // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLLi // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLLi // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLLi // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLLi // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLLi // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLLi // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLLi // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLLi }
HTMLLi is the interface that describes a <li> HTML element.
type HTMLLink ¶
type HTMLLink interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLLink // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLLink // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLLink // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLLink // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLLink // Dir specifies the text direction for the content in an element. Dir(v string) HTMLLink // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLLink // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLLink // Href specifies the URL of the page the link goes to. Href(v string) HTMLLink // HrefLang specifies the language of the linked document. HrefLang(v string) HTMLLink // ID specifies a unique id for an element. ID(v string) HTMLLink // Lang specifies the language of the element's content. Lang(v string) HTMLLink // Media specifies what media/device the linked document is optimized for. Media(v string) HTMLLink // Rel specifies the relationship between the current document and the linked document. Rel(v string) HTMLLink // Sizes specifies the size of the linked resource. Sizes(v string) HTMLLink // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLLink // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLLink // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLLink // Title specifies extra information about an element. Title(v string) HTMLLink // Type specifies the type of element. Type(v string) HTMLLink // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLLink // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLLink // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLLink // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLLink // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLLink // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLLink // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLLink // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLLink // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLLink // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLLink // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLLink // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLLink // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLLink // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLLink // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLLink // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLLink // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLLink // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLLink // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLLink // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLLink // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...interface{}) HTMLLink // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLLink // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLLink // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLLink // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLLink // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLLink // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLLink // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLLink // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLLink // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLLink // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLLink // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLLink // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLLink }
HTMLLink is the interface that describes a <link> HTML element.
type HTMLMain ¶
type HTMLMain interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMain // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMain // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMain // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLMain // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLMain // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLMain // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLMain // Dir specifies the text direction for the content in an element. Dir(v string) HTMLMain // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLMain // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLMain // ID specifies a unique id for an element. ID(v string) HTMLMain // Lang specifies the language of the element's content. Lang(v string) HTMLMain // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLMain // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLMain // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLMain // Title specifies extra information about an element. Title(v string) HTMLMain // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLMain // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMain // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMain // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMain // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMain // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMain // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMain // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMain // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMain // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMain // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMain // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMain // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMain // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMain // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMain // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMain // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMain // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMain // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMain // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMain // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMain // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMain // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMain // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMain // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMain // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMain // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMain // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMain // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMain // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMain // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMain // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLMain }
HTMLMain is the interface that describes a <main> HTML element.
type HTMLMap ¶
type HTMLMap interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMap // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMap // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMap // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLMap // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLMap // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLMap // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLMap // Dir specifies the text direction for the content in an element. Dir(v string) HTMLMap // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLMap // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLMap // ID specifies a unique id for an element. ID(v string) HTMLMap // Lang specifies the language of the element's content. Lang(v string) HTMLMap // Name specifies the name of the element. Name(v string) HTMLMap // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLMap // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLMap // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLMap // Title specifies extra information about an element. Title(v string) HTMLMap // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLMap // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMap // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMap // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMap // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMap // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMap // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMap // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMap // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMap // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMap // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMap // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMap // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMap // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMap // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMap // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMap // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMap // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMap // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMap // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMap // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMap // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMap // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMap // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMap // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMap // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMap // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMap // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMap // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMap // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMap // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMap // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLMap }
HTMLMap is the interface that describes a <map> HTML element.
type HTMLMark ¶
type HTMLMark interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMark // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMark // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMark // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLMark // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLMark // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLMark // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLMark // Dir specifies the text direction for the content in an element. Dir(v string) HTMLMark // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLMark // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLMark // ID specifies a unique id for an element. ID(v string) HTMLMark // Lang specifies the language of the element's content. Lang(v string) HTMLMark // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLMark // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLMark // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLMark // Title specifies extra information about an element. Title(v string) HTMLMark // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLMark // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMark // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMark // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMark // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMark // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMark // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMark // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMark // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMark // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMark // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMark // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMark // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMark // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMark // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMark // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMark // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMark // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMark // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMark // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMark // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMark // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMark // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMark // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMark // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMark // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMark // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMark // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMark // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMark // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMark // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMark // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLMark }
HTMLMark is the interface that describes a <mark> HTML element.
type HTMLMeta ¶
type HTMLMeta interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMeta // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLMeta // Charset specifies the character encoding. Charset(v string) HTMLMeta // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLMeta // Content gives the value associated with the http-equiv or name attribute. Content(v string) HTMLMeta // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLMeta // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLMeta // Dir specifies the text direction for the content in an element. Dir(v string) HTMLMeta // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLMeta // HTTPEquiv provides an HTTP header for the information/value of the content attribute. HTTPEquiv(v string) HTMLMeta // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLMeta // ID specifies a unique id for an element. ID(v string) HTMLMeta // Lang specifies the language of the element's content. Lang(v string) HTMLMeta // Name specifies the name of the element. Name(v string) HTMLMeta // Property specifies the property name. Property(v string) HTMLMeta // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLMeta // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLMeta // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLMeta // Title specifies extra information about an element. Title(v string) HTMLMeta }
HTMLMeta is the interface that describes a <meta> HTML element.
type HTMLMeter ¶
type HTMLMeter interface { UI // Body set the content of the element. Body(elems ...UI) HTMLMeter // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLMeter // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLMeter // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLMeter // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLMeter // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLMeter // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLMeter // Dir specifies the text direction for the content in an element. Dir(v string) HTMLMeter // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLMeter // Form specifies the name of the form the element belongs to. Form(v string) HTMLMeter // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLMeter // High specifies the range that is considered to be a high value. High(v float64) HTMLMeter // ID specifies a unique id for an element. ID(v string) HTMLMeter // Lang specifies the language of the element's content. Lang(v string) HTMLMeter // Low specifies the range that is considered to be a low value. Low(v float64) HTMLMeter // Max Specifies the maximum value. Max(v interface{}) HTMLMeter // Min specifies a minimum value. Min(v interface{}) HTMLMeter // Optimum specifies what value is the optimal value for the gauge. Optimum(v float64) HTMLMeter // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLMeter // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLMeter // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLMeter // Title specifies extra information about an element. Title(v string) HTMLMeter // Value specifies the value of the element. Value(v interface{}) HTMLMeter // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLMeter // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLMeter // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLMeter // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLMeter // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLMeter // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLMeter // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLMeter // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLMeter // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLMeter // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLMeter // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLMeter // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLMeter // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLMeter // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLMeter // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLMeter // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLMeter // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLMeter // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLMeter // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLMeter // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLMeter // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLMeter // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLMeter // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLMeter // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLMeter // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLMeter // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLMeter // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLMeter // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLMeter }
HTMLMeter is the interface that describes a <meter> HTML element.
type HTMLNav ¶
type HTMLNav interface { UI Body(elems ...UI) HTMLNav Text(v interface{}) HTMLNav AccessKey(v string) HTMLNav Aria(k string, v interface{}) HTMLNav Class(v string) HTMLNav ContentEditable(v bool) HTMLNav DataSet(k string, v interface{}) HTMLNav Dir(v string) HTMLNav Draggable(v bool) HTMLNav Hidden(v bool) HTMLNav ID(v string) HTMLNav Lang(v string) HTMLNav Spellcheck(v bool) HTMLNav Style(k, v string) HTMLNav TabIndex(v int) HTMLNav Title(v string) HTMLNav OnBlur(h EventHandler, scope ...interface{}) HTMLNav OnChange(h EventHandler, scope ...interface{}) HTMLNav OnClick(h EventHandler, scope ...interface{}) HTMLNav OnContextMenu(h EventHandler, scope ...interface{}) HTMLNav OnCopy(h EventHandler, scope ...interface{}) HTMLNav OnCut(h EventHandler, scope ...interface{}) HTMLNav OnDblClick(h EventHandler, scope ...interface{}) HTMLNav OnDrag(h EventHandler, scope ...interface{}) HTMLNav OnDragEnd(h EventHandler, scope ...interface{}) HTMLNav OnDragEnter(h EventHandler, scope ...interface{}) HTMLNav OnDragLeave(h EventHandler, scope ...interface{}) HTMLNav OnDragOver(h EventHandler, scope ...interface{}) HTMLNav OnDragStart(h EventHandler, scope ...interface{}) HTMLNav OnDrop(h EventHandler, scope ...interface{}) HTMLNav OnFocus(h EventHandler, scope ...interface{}) HTMLNav OnInput(h EventHandler, scope ...interface{}) HTMLNav OnInvalid(h EventHandler, scope ...interface{}) HTMLNav OnKeyDown(h EventHandler, scope ...interface{}) HTMLNav OnKeyPress(h EventHandler, scope ...interface{}) HTMLNav OnKeyup(h EventHandler, scope ...interface{}) HTMLNav OnMouseDown(h EventHandler, scope ...interface{}) HTMLNav OnMouseMove(h EventHandler, scope ...interface{}) HTMLNav OnMouseOut(h EventHandler, scope ...interface{}) HTMLNav OnMouseOver(h EventHandler, scope ...interface{}) HTMLNav OnMouseUp(h EventHandler, scope ...interface{}) HTMLNav OnPaste(h EventHandler, scope ...interface{}) HTMLNav OnReset(h EventHandler, scope ...interface{}) HTMLNav OnScroll(h EventHandler, scope ...interface{}) HTMLNav OnSearch(h EventHandler, scope ...interface{}) HTMLNav OnSelect(h EventHandler, scope ...interface{}) HTMLNav OnSubmit(h EventHandler, scope ...interface{}) HTMLNav OnWheel(h EventHandler, scope ...interface{}) HTMLNav }
HTMLNav is the interface that describes a <nav> HTML element.
type HTMLNoScript ¶
type HTMLNoScript interface { UI // Body set the content of the element. Body(elems ...UI) HTMLNoScript // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLNoScript // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLNoScript // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLNoScript // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLNoScript // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLNoScript // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLNoScript // Dir specifies the text direction for the content in an element. Dir(v string) HTMLNoScript // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLNoScript // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLNoScript // ID specifies a unique id for an element. ID(v string) HTMLNoScript // Lang specifies the language of the element's content. Lang(v string) HTMLNoScript // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLNoScript // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLNoScript // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLNoScript // Title specifies extra information about an element. Title(v string) HTMLNoScript }
HTMLNoScript is the interface that describes a <noscript> HTML element.
func NoScript ¶
func NoScript() HTMLNoScript
NoScript returns an HTML element that defines an alternate content for users that do not support client-side scripts.
type HTMLObject ¶
type HTMLObject interface { UI // Body set the content of the element. Body(elems ...UI) HTMLObject // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLObject // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLObject // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLObject // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLObject // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLObject // Data specifies the URL of the resource to be used by the object. Data(v string) HTMLObject // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLObject // Dir specifies the text direction for the content in an element. Dir(v string) HTMLObject // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLObject // Form specifies the name of the form the element belongs to. Form(v string) HTMLObject // Height specifies the height of the element (in pixels). Height(v int) HTMLObject // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLObject // ID specifies a unique id for an element. ID(v string) HTMLObject // Lang specifies the language of the element's content. Lang(v string) HTMLObject // Name specifies the name of the element. Name(v string) HTMLObject // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLObject // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLObject // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLObject // Title specifies extra information about an element. Title(v string) HTMLObject // Type specifies the type of element. Type(v string) HTMLObject // UseMap specifies an image as a client-side image-map. UseMap(v string) HTMLObject // Width specifies the width of the element. Width(v int) HTMLObject // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...interface{}) HTMLObject // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLObject // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). OnCanPlay(h EventHandler, scope ...interface{}) HTMLObject // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. OnCanPlayThrough(h EventHandler, scope ...interface{}) HTMLObject // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLObject // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLObject // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLObject // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLObject // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...interface{}) HTMLObject // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLObject // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLObject // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLObject // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLObject // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLObject // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLObject // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLObject // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLObject // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLObject // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...interface{}) HTMLObject // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...interface{}) HTMLObject // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...interface{}) HTMLObject // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLObject // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLObject // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLObject // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLObject // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLObject // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLObject // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLObject // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...interface{}) HTMLObject // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...interface{}) HTMLObject // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLObject // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLObject // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLObject // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLObject // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLObject // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLObject // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...interface{}) HTMLObject // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...interface{}) HTMLObject // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...interface{}) HTMLObject // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...interface{}) HTMLObject // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). OnRateChange(h EventHandler, scope ...interface{}) HTMLObject // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLObject // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLObject // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLObject // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...interface{}) HTMLObject // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...interface{}) HTMLObject // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLObject // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...interface{}) HTMLObject // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLObject // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler, scope ...interface{}) HTMLObject // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). OnTimeUpdate(h EventHandler, scope ...interface{}) HTMLObject // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...interface{}) HTMLObject // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). OnWaiting(h EventHandler, scope ...interface{}) HTMLObject // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLObject // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler, scope ...interface{}) HTMLObject }
HTMLObject is the interface that describes a <object> HTML element.
func Object ¶
func Object() HTMLObject
Object returns an HTML element that defines an embedded object.
type HTMLOl ¶
type HTMLOl interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOl // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOl // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOl // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLOl // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLOl // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLOl // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLOl // Dir specifies the text direction for the content in an element. Dir(v string) HTMLOl // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLOl // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLOl // ID specifies a unique id for an element. ID(v string) HTMLOl // Lang specifies the language of the element's content. Lang(v string) HTMLOl // Reversed specifies that the list order should be descending (9,8,7...). Reversed(v bool) HTMLOl // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLOl // Start specifies the start value of the ordered list. Start(v int) HTMLOl // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLOl // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLOl // Title specifies extra information about an element. Title(v string) HTMLOl // Type specifies the type of element. Type(v string) HTMLOl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLOl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOl // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOl }
HTMLOl is the interface that describes a <ol> HTML element.
type HTMLOptGroup ¶
type HTMLOptGroup interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOptGroup // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOptGroup // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOptGroup // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLOptGroup // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLOptGroup // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLOptGroup // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLOptGroup // Dir specifies the text direction for the content in an element. Dir(v string) HTMLOptGroup // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLOptGroup // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLOptGroup // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLOptGroup // ID specifies a unique id for an element. ID(v string) HTMLOptGroup // Label specifies a shorter label for the option. Label(v string) HTMLOptGroup // Lang specifies the language of the element's content. Lang(v string) HTMLOptGroup // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLOptGroup // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLOptGroup // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLOptGroup // Title specifies extra information about an element. Title(v string) HTMLOptGroup // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLOptGroup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOptGroup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOptGroup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOptGroup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOptGroup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOptGroup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOptGroup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOptGroup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOptGroup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOptGroup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOptGroup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOptGroup // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOptGroup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOptGroup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOptGroup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOptGroup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOptGroup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOptGroup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOptGroup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOptGroup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOptGroup }
HTMLOptGroup is the interface that describes a <optgroup> HTML element.
func OptGroup ¶
func OptGroup() HTMLOptGroup
OptGroup returns an HTML element that defines a group of related options in a drop-down list.
type HTMLOption ¶
type HTMLOption interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOption // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOption // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOption // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLOption // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLOption // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLOption // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLOption // Dir specifies the text direction for the content in an element. Dir(v string) HTMLOption // Disabled specifies that the specified element/group of elements should be disabled. Disabled(v bool) HTMLOption // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLOption // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLOption // ID specifies a unique id for an element. ID(v string) HTMLOption // Label specifies a shorter label for the option. Label(v string) HTMLOption // Lang specifies the language of the element's content. Lang(v string) HTMLOption // Selected specifies that an option should be pre-selected when the page loads. Selected(v bool) HTMLOption // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLOption // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLOption // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLOption // Title specifies extra information about an element. Title(v string) HTMLOption // Value specifies the value of the element. Value(v interface{}) HTMLOption // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLOption // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOption // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOption // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOption // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOption // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOption // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOption // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOption // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOption // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOption // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOption // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOption // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOption // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOption // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOption // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOption // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOption // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOption // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOption // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOption // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOption // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOption // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOption // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOption // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOption // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOption // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOption // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOption // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOption // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOption // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOption // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOption }
HTMLOption is the interface that describes a <option> HTML element.
func Option ¶
func Option() HTMLOption
Option returns an HTML element that defines an option in a drop-down list.
type HTMLOutput ¶
type HTMLOutput interface { UI // Body set the content of the element. Body(elems ...UI) HTMLOutput // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLOutput // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLOutput // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLOutput // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLOutput // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLOutput // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLOutput // Dir specifies the text direction for the content in an element. Dir(v string) HTMLOutput // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLOutput // For specifies which form element(s) a label/calculation is bound to. For(v string) HTMLOutput // Form specifies the name of the form the element belongs to. Form(v string) HTMLOutput // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLOutput // ID specifies a unique id for an element. ID(v string) HTMLOutput // Lang specifies the language of the element's content. Lang(v string) HTMLOutput // Name specifies the name of the element. Name(v string) HTMLOutput // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLOutput // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLOutput // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLOutput // Title specifies extra information about an element. Title(v string) HTMLOutput // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLOutput // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLOutput // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLOutput // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLOutput // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLOutput // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLOutput // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLOutput // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLOutput // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLOutput // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLOutput // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLOutput // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLOutput // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLOutput // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLOutput // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLOutput // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLOutput // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLOutput // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLOutput // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLOutput // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLOutput // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLOutput // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLOutput // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLOutput // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLOutput // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLOutput // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLOutput // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLOutput // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLOutput }
HTMLOutput is the interface that describes a <output> HTML element.
type HTMLP ¶
type HTMLP interface { UI // Body set the content of the element. Body(elems ...UI) HTMLP // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLP // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLP // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLP // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLP // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLP // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLP // Dir specifies the text direction for the content in an element. Dir(v string) HTMLP // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLP // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLP // ID specifies a unique id for an element. ID(v string) HTMLP // Lang specifies the language of the element's content. Lang(v string) HTMLP // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLP // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLP // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLP // Title specifies extra information about an element. Title(v string) HTMLP // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLP // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLP // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLP // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLP // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLP // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLP // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLP // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLP // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLP // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLP // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLP // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLP // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLP // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLP // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLP // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLP // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLP // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLP // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLP // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLP // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLP // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLP // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLP // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLP // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLP // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLP // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLP // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLP // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLP // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLP // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLP // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLP }
HTMLP is the interface that describes a <p> HTML element.
type HTMLParam ¶
type HTMLParam interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLParam // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLParam // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLParam // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLParam // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLParam // Dir specifies the text direction for the content in an element. Dir(v string) HTMLParam // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLParam // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLParam // ID specifies a unique id for an element. ID(v string) HTMLParam // Lang specifies the language of the element's content. Lang(v string) HTMLParam // Name specifies the name of the element. Name(v string) HTMLParam // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLParam // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLParam // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLParam // Title specifies extra information about an element. Title(v string) HTMLParam // Value specifies the value of the element. Value(v interface{}) HTMLParam // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLParam // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLParam // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLParam // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLParam // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLParam // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLParam // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLParam // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLParam // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLParam // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLParam // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLParam // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLParam // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLParam // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLParam // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLParam // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLParam // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLParam // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLParam // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLParam // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLParam // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLParam // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLParam // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLParam // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLParam // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLParam // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLParam // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLParam // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLParam // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLParam // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLParam // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLParam // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLParam }
HTMLParam is the interface that describes a <param> HTML element.
type HTMLPicture ¶
type HTMLPicture interface { UI // Body set the content of the element. Body(elems ...UI) HTMLPicture // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLPicture // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLPicture // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLPicture // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLPicture // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLPicture // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLPicture // Dir specifies the text direction for the content in an element. Dir(v string) HTMLPicture // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLPicture // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLPicture // ID specifies a unique id for an element. ID(v string) HTMLPicture // Lang specifies the language of the element's content. Lang(v string) HTMLPicture // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLPicture // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLPicture // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLPicture // Title specifies extra information about an element. Title(v string) HTMLPicture // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLPicture // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLPicture // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLPicture // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLPicture // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLPicture // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLPicture // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLPicture // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLPicture // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLPicture // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLPicture // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLPicture // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLPicture // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLPicture // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLPicture // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLPicture // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLPicture // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLPicture // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLPicture // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLPicture // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLPicture // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLPicture // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLPicture // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLPicture // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLPicture // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLPicture // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLPicture // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLPicture // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLPicture }
HTMLPicture is the interface that describes a <picture> HTML element.
func Picture ¶
func Picture() HTMLPicture
Picture returns an HTML element that defines a container for multiple image resources.
type HTMLPre ¶
type HTMLPre interface { UI // Body set the content of the element. Body(elems ...UI) HTMLPre // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLPre // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLPre // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLPre // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLPre // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLPre // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLPre // Dir specifies the text direction for the content in an element. Dir(v string) HTMLPre // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLPre // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLPre // ID specifies a unique id for an element. ID(v string) HTMLPre // Lang specifies the language of the element's content. Lang(v string) HTMLPre // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLPre // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLPre // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLPre // Title specifies extra information about an element. Title(v string) HTMLPre // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLPre // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLPre // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLPre // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLPre // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLPre // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLPre // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLPre // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLPre // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLPre // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLPre // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLPre // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLPre // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLPre // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLPre // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLPre // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLPre // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLPre // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLPre // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLPre // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLPre // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLPre // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLPre // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLPre // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLPre // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLPre // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLPre // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLPre // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLPre // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLPre // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLPre // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLPre // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLPre }
HTMLPre is the interface that describes a <pre> HTML element.
type HTMLProgress ¶
type HTMLProgress interface { UI // Body set the content of the element. Body(elems ...UI) HTMLProgress // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLProgress // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLProgress // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLProgress // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLProgress // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLProgress // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLProgress // Dir specifies the text direction for the content in an element. Dir(v string) HTMLProgress // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLProgress // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLProgress // ID specifies a unique id for an element. ID(v string) HTMLProgress // Lang specifies the language of the element's content. Lang(v string) HTMLProgress // Max Specifies the maximum value. Max(v interface{}) HTMLProgress // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLProgress // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLProgress // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLProgress // Title specifies extra information about an element. Title(v string) HTMLProgress // Value specifies the value of the element. Value(v interface{}) HTMLProgress // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLProgress // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLProgress // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLProgress // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLProgress // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLProgress // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLProgress // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLProgress // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLProgress // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLProgress // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLProgress // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLProgress // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLProgress // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLProgress // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLProgress // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLProgress // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLProgress // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLProgress // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLProgress // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLProgress // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLProgress // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLProgress // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLProgress // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLProgress // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLProgress // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLProgress // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLProgress // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLProgress // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLProgress }
HTMLProgress is the interface that describes a <progress> HTML element.
func Progress ¶
func Progress() HTMLProgress
Progress returns an HTML element that represents the progress of a task.
type HTMLQ ¶
type HTMLQ interface { UI // Body set the content of the element. Body(elems ...UI) HTMLQ // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLQ // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLQ // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLQ // Cite specifies a URL which explains the quote/deleted/inserted text. Cite(v string) HTMLQ // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLQ // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLQ // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLQ // Dir specifies the text direction for the content in an element. Dir(v string) HTMLQ // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLQ // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLQ // ID specifies a unique id for an element. ID(v string) HTMLQ // Lang specifies the language of the element's content. Lang(v string) HTMLQ // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLQ // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLQ // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLQ // Title specifies extra information about an element. Title(v string) HTMLQ // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLQ // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLQ // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLQ // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLQ // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLQ // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLQ // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLQ // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLQ // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLQ // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLQ // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLQ // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLQ // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLQ // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLQ // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLQ // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLQ // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLQ // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLQ // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLQ // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLQ // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLQ // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLQ // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLQ // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLQ // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLQ // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLQ // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLQ // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLQ // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLQ // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLQ // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLQ // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLQ }
HTMLQ is the interface that describes a <q> HTML element.
type HTMLRp ¶
type HTMLRp interface { UI // Body set the content of the element. Body(elems ...UI) HTMLRp // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLRp // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLRp // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLRp // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLRp // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLRp // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLRp // Dir specifies the text direction for the content in an element. Dir(v string) HTMLRp // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLRp // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLRp // ID specifies a unique id for an element. ID(v string) HTMLRp // Lang specifies the language of the element's content. Lang(v string) HTMLRp // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLRp // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLRp // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLRp // Title specifies extra information about an element. Title(v string) HTMLRp // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLRp // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLRp // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLRp // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLRp // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLRp // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLRp // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLRp // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLRp // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLRp // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLRp // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLRp // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLRp // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLRp // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLRp // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLRp // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLRp // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLRp // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLRp // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLRp // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLRp // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLRp // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLRp // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLRp // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLRp // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLRp // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLRp // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLRp // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLRp // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLRp // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLRp // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLRp // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLRp }
HTMLRp is the interface that describes a <rp> HTML element.
type HTMLRt ¶
type HTMLRt interface { UI // Body set the content of the element. Body(elems ...UI) HTMLRt // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLRt // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLRt // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLRt // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLRt // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLRt // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLRt // Dir specifies the text direction for the content in an element. Dir(v string) HTMLRt // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLRt // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLRt // ID specifies a unique id for an element. ID(v string) HTMLRt // Lang specifies the language of the element's content. Lang(v string) HTMLRt // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLRt // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLRt // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLRt // Title specifies extra information about an element. Title(v string) HTMLRt // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLRt // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLRt // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLRt // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLRt // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLRt // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLRt // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLRt // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLRt // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLRt // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLRt // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLRt // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLRt // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLRt // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLRt // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLRt // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLRt // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLRt // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLRt // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLRt // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLRt // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLRt // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLRt // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLRt // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLRt // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLRt // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLRt // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLRt // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLRt // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLRt // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLRt // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLRt // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLRt }
HTMLRt is the interface that describes a <rt> HTML element.
type HTMLRuby ¶
type HTMLRuby interface { UI // Body set the content of the element. Body(elems ...UI) HTMLRuby // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLRuby // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLRuby // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLRuby // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLRuby // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLRuby // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLRuby // Dir specifies the text direction for the content in an element. Dir(v string) HTMLRuby // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLRuby // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLRuby // ID specifies a unique id for an element. ID(v string) HTMLRuby // Lang specifies the language of the element's content. Lang(v string) HTMLRuby // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLRuby // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLRuby // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLRuby // Title specifies extra information about an element. Title(v string) HTMLRuby // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLRuby // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLRuby // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLRuby // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLRuby // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLRuby // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLRuby // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLRuby // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLRuby // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLRuby // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLRuby // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLRuby // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLRuby // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLRuby // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLRuby // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLRuby // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLRuby // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLRuby // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLRuby // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLRuby // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLRuby // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLRuby // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLRuby // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLRuby // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLRuby // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLRuby // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLRuby // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLRuby // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLRuby }
HTMLRuby is the interface that describes a <ruby> HTML element.
type HTMLS ¶
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 // 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 ¶
type HTMLTime interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTime // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTime // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTime // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTime // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTime // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTime // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTime // DateTime specifies the date and time. DateTime(v string) HTMLTime // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTime // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTime // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTime // ID specifies a unique id for an element. ID(v string) HTMLTime // Lang specifies the language of the element's content. Lang(v string) HTMLTime // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTime // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTime // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTime // Title specifies extra information about an element. Title(v string) HTMLTime // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTime // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTime // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTime // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTime // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTime // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTime // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTime // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTime // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTime // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTime // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTime // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTime // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTime // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTime // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTime // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTime // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTime // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTime // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTime // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTime // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTime // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTime // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTime // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTime // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTime // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTime // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTime // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTime // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTime // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTime // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTime // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTime }
HTMLTime is the interface that describes a <time> HTML element.
type HTMLTitle ¶
type HTMLTitle interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTitle // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTitle // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTitle // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTitle // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTitle // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTitle // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTitle // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTitle // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTitle // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTitle // ID specifies a unique id for an element. ID(v string) HTMLTitle // Lang specifies the language of the element's content. Lang(v string) HTMLTitle // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTitle // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTitle // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTitle // Title specifies extra information about an element. Title(v string) HTMLTitle }
HTMLTitle is the interface that describes a <title> HTML element.
type HTMLTr ¶
type HTMLTr interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTr // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTr // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTr // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTr // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTr // ID specifies a unique id for an element. ID(v string) HTMLTr // Lang specifies the language of the element's content. Lang(v string) HTMLTr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTr // Title specifies extra information about an element. Title(v string) HTMLTr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTr }
HTMLTr is the interface that describes a <tr> HTML element.
type HTMLU ¶
type HTMLU interface { UI // Body set the content of the element. Body(elems ...UI) HTMLU // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLU // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLU // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLU // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLU // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLU // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLU // Dir specifies the text direction for the content in an element. Dir(v string) HTMLU // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLU // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLU // ID specifies a unique id for an element. ID(v string) HTMLU // Lang specifies the language of the element's content. Lang(v string) HTMLU // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLU // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLU // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLU // Title specifies extra information about an element. Title(v string) HTMLU // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLU // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLU // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLU // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLU // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLU // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLU // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLU // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLU // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLU // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLU // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLU // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLU // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLU // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLU // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLU // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLU // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLU // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLU // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLU // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLU // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLU // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLU // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLU // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLU // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLU // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLU // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLU // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLU // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLU // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLU // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLU // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLU }
HTMLU is the interface that describes a <u> HTML element.
type HTMLUl ¶
type HTMLUl interface { UI // Body set the content of the element. Body(elems ...UI) HTMLUl // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLUl // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLUl // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLUl // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLUl // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLUl // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLUl // Dir specifies the text direction for the content in an element. Dir(v string) HTMLUl // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLUl // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLUl // ID specifies a unique id for an element. ID(v string) HTMLUl // Lang specifies the language of the element's content. Lang(v string) HTMLUl // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLUl // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLUl // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLUl // Title specifies extra information about an element. Title(v string) HTMLUl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLUl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLUl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLUl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLUl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLUl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLUl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLUl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLUl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLUl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLUl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLUl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLUl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLUl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLUl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLUl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLUl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLUl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLUl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLUl // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLUl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLUl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLUl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLUl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLUl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLUl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLUl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLUl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLUl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLUl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLUl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLUl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLUl }
HTMLUl is the interface that describes a <ul> HTML element.
type HTMLVar ¶
type HTMLVar interface { UI // Body set the content of the element. Body(elems ...UI) HTMLVar // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLVar // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLVar // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLVar // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLVar // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLVar // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLVar // Dir specifies the text direction for the content in an element. Dir(v string) HTMLVar // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLVar // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLVar // ID specifies a unique id for an element. ID(v string) HTMLVar // Lang specifies the language of the element's content. Lang(v string) HTMLVar // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLVar // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLVar // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLVar // Title specifies extra information about an element. Title(v string) HTMLVar // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLVar // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLVar // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLVar // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLVar // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLVar // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLVar // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLVar // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLVar // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLVar // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLVar // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLVar // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLVar // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLVar // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLVar // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLVar // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLVar // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLVar // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLVar // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLVar // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLVar // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLVar // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLVar // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLVar // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLVar // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLVar // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLVar // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLVar // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLVar // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLVar // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLVar // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLVar // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLVar }
HTMLVar is the interface that describes a <var> HTML element.
type HTMLVideo ¶
type HTMLVideo interface { UI // Body set the content of the element. Body(elems ...UI) HTMLVideo // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLVideo // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLVideo // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLVideo // AutoPlay specifies that the audio/video will start playing as soon as it is ready. AutoPlay(v bool) HTMLVideo // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLVideo // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLVideo // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc). Controls(v bool) HTMLVideo // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLVideo // Dir specifies the text direction for the content in an element. Dir(v string) HTMLVideo // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLVideo // Height specifies the height of the element (in pixels). Height(v int) HTMLVideo // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLVideo // ID specifies a unique id for an element. ID(v string) HTMLVideo // Lang specifies the language of the element's content. Lang(v string) HTMLVideo // Loop specifies that the audio/video will start over again, every time it is finished. Loop(v bool) HTMLVideo // Muted specifies that the audio output of the video should be muted. Muted(v bool) HTMLVideo // Poster specifies an image to be shown while the video is downloading, or until the user hits the play button. Poster(v string) HTMLVideo // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads. Preload(v string) HTMLVideo // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLVideo // Src specifies the URL of the media file. Src(v string) HTMLVideo // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLVideo // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLVideo // Title specifies extra information about an element. Title(v string) HTMLVideo // Width specifies the width of the element. Width(v int) HTMLVideo // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...interface{}) HTMLVideo // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLVideo // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). OnCanPlay(h EventHandler, scope ...interface{}) HTMLVideo // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. OnCanPlayThrough(h EventHandler, scope ...interface{}) HTMLVideo // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLVideo // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLVideo // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLVideo // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLVideo // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...interface{}) HTMLVideo // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLVideo // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLVideo // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLVideo // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLVideo // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLVideo // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLVideo // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLVideo // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLVideo // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLVideo // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...interface{}) HTMLVideo // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...interface{}) HTMLVideo // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...interface{}) HTMLVideo // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLVideo // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLVideo // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLVideo // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLVideo // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLVideo // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLVideo // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLVideo // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...interface{}) HTMLVideo // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLVideo // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLVideo // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...interface{}) HTMLVideo // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...interface{}) HTMLVideo // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...interface{}) HTMLVideo // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...interface{}) HTMLVideo // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). OnRateChange(h EventHandler, scope ...interface{}) HTMLVideo // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLVideo // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLVideo // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLVideo // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...interface{}) HTMLVideo // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...interface{}) HTMLVideo // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLVideo // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...interface{}) HTMLVideo // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLVideo // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler, scope ...interface{}) HTMLVideo // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). OnTimeUpdate(h EventHandler, scope ...interface{}) HTMLVideo // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...interface{}) HTMLVideo // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). OnWaiting(h EventHandler, scope ...interface{}) HTMLVideo // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLVideo // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler, scope ...interface{}) HTMLVideo }
HTMLVideo is the interface that describes a <video> HTML element.
type HTMLWbr ¶
type HTMLWbr interface { UI // Body set the content of the element. Body(elems ...UI) HTMLWbr // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLWbr // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLWbr // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLWbr // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLWbr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLWbr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLWbr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLWbr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLWbr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLWbr // ID specifies a unique id for an element. ID(v string) HTMLWbr // Lang specifies the language of the element's content. Lang(v string) HTMLWbr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLWbr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLWbr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLWbr // Title specifies extra information about an element. Title(v string) HTMLWbr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLWbr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLWbr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLWbr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLWbr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLWbr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLWbr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLWbr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLWbr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLWbr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLWbr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLWbr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLWbr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLWbr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLWbr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLWbr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLWbr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLWbr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLWbr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLWbr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLWbr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLWbr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLWbr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLWbr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLWbr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLWbr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLWbr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLWbr }
HTMLWbr is the interface that describes a <wbr> HTML element.
type Handler ¶
type Handler struct { // The page authors. Author string // A placeholder background color for the application page to display before // its stylesheets are loaded. // // DEFAULT: #2d2c2c. BackgroundColor string // The path of the static resources that the browser is caching in order to // provide offline mode. // // Note that Icon, Styles and Scripts are already cached by default. // // Paths are relative to the root directory. CacheableResources []string // The page description. Description string // The environment variables that are passed to the progressive web app. // // Reserved keys: // - GOAPP_VERSION // - GOAPP_GOAPP_STATIC_RESOURCES_URL Env Environment // The icon that is used for the PWA, favicon, loading and default not // found component. Icon Icon // The path of the default image that is used by social networks when // linking the app. Image string // The page keywords. Keywords []string // The text displayed while loading a page. LoadingLabel string // The name of the web application as it is usually displayed to the user. Name string // The cache that stores pre-rendered pages. // // Default is a LRU cache that keeps pages up to 24h and have a maximum size // of 8MB. PreRenderCache PreRenderCache // The static resources that are accessible from custom paths. Files that // are proxied by default are /robots.txt, /sitemap.xml and /ads.txt. ProxyResources []ProxyResource // Additional headers to be added in head element. RawHeaders []string // The paths or urls of the JavaScript files to use with the page. // // eg: // app.Handler{ // Scripts: []string{ // "/web/test.js", // Static resource // "https://foo.com/test.js", // External resource // }, // }, Scripts []string // The name of the web application displayed to the user when there is not // enough space to display Name. ShortName string // The resource provider that provides static resources. Static resources // are always accessed from a path that starts with "/web/". // // eg: // "/web/main.css" // // Default: LocalDir("") Resources ResourceProvider // The paths or urls of the CSS files to use with the page. // // eg: // app.Handler{ // Styles: []string{ // "/web/test.css", // Static resource // "https://foo.com/test.css", // External resource // }, // }, Styles []string // The theme color for the application. This affects how the OS displays the // app (e.g., PWA title bar or Android's task switcher). // // DEFAULT: #2d2c2c. ThemeColor string // The page title. Title string // The version number. This is used in order to update the PWA application // in the browser. It must be set when deployed on a live system in order to // prevent recurring updates. // // Default: Auto-generated in order to trigger pwa update on a local // development system. Version string // contains filtered or unexported fields }
Handler is an HTTP handler that serves an HTML page that loads a Go wasm app and its resources.
type Icon ¶
type Icon struct { // The path or url to a square image/png file. It must have a side of 192px. // // Path is relative to the root directory. Default string // The path or url to larger square image/png file. It must have a side of // 512px. // // Path is relative to the root directory. Large string // The path or url to a square image/png file that is used for IOS/IPadOS // home screen icon. It must have a side of 192px. // // Path is relative to the root directory. // // DEFAULT: Icon.Default AppleTouch string }
Icon describes a square image that is used in various places such as application icon, favicon or loading icon.
type Kind ¶
type Kind uint
Kind represents the specific kind of a user interface element.
const ( // UndefinedElem represents an undefined UI element. UndefinedElem Kind = iota // SimpleText represents a simple text element. SimpleText // HTML represents an HTML element. HTML // Component represents a customized, independent and reusable UI element. Component // Selector represents an element that is used to select a subset of // elements within a given list. Selector // RawHTML represents an HTML element obtained from a raw HTML code snippet. RawHTML )
type Mounter ¶
type Mounter interface { Composer // The function called when the component is mounted. It is always called on // the UI goroutine. OnMount(Context) }
Mounter is the interface that describes a component that can perform additional actions when mounted.
type Navigator ¶
Navigator is the interface that describes a component that can perform additional actions when navigated on.
type Page ¶
type Page interface { // Returns the page title. Title() string // Sets the page title. SetTitle(string) // Returns the page description. Description() string // Sets the page description. SetDescription(string) // Returns the page author. Author() string // Sets the page author. SetAuthor(string) // Returns the page keywords. Keywords() string // Sets the page keywords. SetKeywords(...string) // Set the page loading label. SetLoadingLabel(string) // Returns the image used by social networks when linking the page. Image() string // Set the image used by social networks when linking the page. SetImage(string) // Returns the page URL. URL() *url.URL // Replace the the current page URL by the given one in the browser history. // // Does not work when pre-rendering. ReplaceURL(*url.URL) // Returns the page width and height in px. Size() (w int, h int) }
Page is the interface that describes a web page.
type PreRenderCache ¶
type PreRenderCache interface { // Get returns the item at the given path. Get(ctx context.Context, path string) (PreRenderedItem, bool) // Set stored the item at the given path. Set(ctx context.Context, i PreRenderedItem) }
PreRenderCache is the interface that describes a cache that stores pre-rendered resources.
func NewPreRenderLRUCache ¶
func NewPreRenderLRUCache(size int, itemTTL time.Duration, onEvict ...func(count, size int)) PreRenderCache
NewPreRenderLRUCache creates an in memory LRU cache that stores items for the given duration. If provided, on eviction functions are called when item are evicted.
type PreRenderedItem ¶
type PreRenderedItem struct { // The request path. Path string // The response content type. ContentType string // The response content encoding. ContentEncoding string // The response body. Body []byte }
PreRenderedItem represent an item that is stored in a PreRenderCache.
type PreRenderer ¶
type PreRenderer interface { // The function called when the component is server-side pre-rendered. // // If pre-rendering requires blocking operations such as performing an HTTP // request, ensure that they are done synchronously. A good practice is to // avoid using goroutines during pre-rendering. OnPreRender(Context) }
PreRenderer is the interface that describes a component that performs instruction when it is server-side pre-rendered.
A pre-rendered component helps in achieving SEO friendly content.
type ProxyResource ¶
type ProxyResource struct { // The URL path from where a static resource is accessible. Path string // The path of the static resource that is proxied. It must start with // "/web/". ResourcePath string }
ProxyResource is a proxy descriptor that maps a given resource to an URL path.
type RangeLoop ¶
type RangeLoop interface { UI // Slice sets the loop content by repeating the given function for the // number of elements in the source. // // It panics if the range source is not a slice or an array. Slice(f func(int) UI) RangeLoop // Map sets the loop content by repeating the given function for the number // of elements in the source. Elements are ordered by keys. // // It panics if the range source is not a map or if map keys are not strings. Map(f func(string) UI) RangeLoop }
RangeLoop represents a control structure that iterates within a slice, an array or a map.
type Resizer ¶
type Resizer interface { // The function called when the application is resized or a parent component // called its ResizeContent() method. It is always called on the UI // goroutine. OnResize(Context) }
Resizer is the interface that describes a component that is notified when the app has been resized or a parent component calls the ResizeContent() method.
type ResourceProvider ¶
type ResourceProvider interface { // Package returns the path where the package resources are located. Package() string // Static returns the path where the static resources directory (/web) is // located. Static() string // AppWASM returns the app.wasm file path. AppWASM() string }
ResourceProvider is the interface that describes a resource provider that tells the Handler how to locate and get the package and static resources.
Package resources are the resource required to operate go-app.
Static resources are resources such as app.wasm, CSS files, images.
The resource provider is used to serve static resources when it satisfies the http.Handler interface.
func GitHubPages ¶
func GitHubPages(repoName string) ResourceProvider
GitHubPages returns a resource provider that provides resources from GitHub pages. This provider must only be used to generate static websites with the GenerateStaticWebsite function.
func LocalDir ¶
func LocalDir(root string) ResourceProvider
LocalDir returns a resource provider that serves static resources from a local directory located at the given path.
func RemoteBucket ¶
func RemoteBucket(url string) ResourceProvider
RemoteBucket returns a resource provider that provides resources from a remote bucket such as Amazon S3 or Google Cloud Storage.
type ServerDispatcher ¶
type ServerDispatcher interface { Dispatcher // Context returns the context associated with the root element. Context() Context // Pre-renders the given component. PreRender() // Consume executes all the remaining UI instructions. Consume() // Close consumes all the remaining UI instruction and releases allocated // resources. Close() }
ServerDispatcher is the interface that describes a dispatcher that emulates a server environment.
func NewServerTester ¶
func NewServerTester(v UI) ServerDispatcher
NewServerTester creates a testing dispatcher that simulates a client environment.
type TestUIDescriptor ¶
type TestUIDescriptor struct { // The location of the node. It is used by the TestMatch to find the // element to test. // // If empty, the expected UI element is compared with the root of the tree. // // Otherwise, each integer represents the index of the element to traverse, // from the root's children to the element to compare Path []int // The element to compare with the element targeted by Path. Compare // behavior varies depending on the element kind. // // Simple text elements only have their text value compared. // // HTML elements have their attribute compared and check if their event // handlers are set. // // Components have their exported field values compared. Expected UI }
TestUIDescriptor represents a descriptor that describes a UI element and its location from its parents.
type UI ¶
type UI interface { // Kind represents the specific kind of a UI element. Kind() Kind // JSValue returns the javascript value linked to the element. JSValue() Value // Reports whether the element is mounted. Mounted() bool // contains filtered or unexported methods }
UI is the interface that describes a user interface element such as components and HTML elements.
var ( // NotFound is the ui element that is displayed when a request is not // routed. NotFound UI = ¬Found{} )
func FilterUIElems ¶
FilterUIElems returns a filtered version of the given UI elements where selector elements such as If and Range are interpreted and removed. It also remove nil elements.
It should be used only when implementing components that can accept content with variadic arguments like HTML elements Body method.
type UIFlow ¶
type UIFlow interface { UI // Class adds a CSS class to the flow root HTML element class property. Class(v string) UIFlow // Content sets the content with the given UI elements. Content(elems ...UI) UIFlow // ID sets the flow root HTML element id property. ID(v string) UIFlow // ItemsBaseWidth sets the items base width in px. Items size is adjusted to // fit the space in the container. Default is 300px. ItemsBaseWidth(px int) UIFlow // StrechtOnSingleRow makes the items to occupy all the available space when // the flow spreads on a single row. StrechtOnSingleRow() UIFlow }
UIFlow is the interface that describes a container that displays its items as a flow.
EXPERIMENTAL WIDGET.
type UIShell ¶
type UIShell interface { UI // AlignItemsToCenter vertically aligns menus and content to center. AlignItemsToCenter() UIShell // Class adds a CSS class to the shell root HTML element class property. Class(c string) UIShell // Content sets the main content. Content(elems ...UI) UIShell // ID sets the shell root HTML element id property. ID(v string) UIShell // Menu sets the side menu. Menu(elems ...UI) UIShell // MenuButton sets the content of the button that displays an overlayed menu // when clicked. The button is displayed only when a menu is set and shrunk. // Default is ☰. MenuButton(elems ...UI) UIShell // MenuWidth set the base width for the menu and submenu in px. Default is // 300px. MenuWidth(px int) UIShell // OverlayMenu sets the content of the overlay menu. The overlay menu is // shown when the menu is shrunk and the menu button is clicked. OverlayMenu(elems ...UI) UIShell Submenu(elems ...UI) UIShell }
UIShell is a component that responsively handles the disposition of a side menu, a submenu, and a main content.
EXPERIMENTAL WIDGET.
type UIStack ¶
type UIStack interface { UI // Center aligns the items from the center. Center() UIStack // Class adds a CSS class to the stack root HTML element class property. Class(string) UIStack // Content sets the content with the given UI elements. Content(elems ...UI) UIStack // End aligns the items from the end. End() UIStack // ID sets the stack root HTML element id property. ID(string) UIStack // Stretch tries to make the items occupy all the space. Stretch() UIStack // Vertical stacks items vertically. Vertical() UIStack }
UIStack is the interface that describes a container that displays its items as stacked panels.
EXPERIMENTAL WIDGET.
type Updater ¶
type Updater interface { // The function called when the application is updated. It is always called // on the UI goroutine. OnAppUpdate(Context) }
Updater is the interface that describes a component that is notified when the application is updated.
type Value ¶
type Value interface { // Bool returns the value v as a bool. It panics if v is not a JavaScript // boolean. Bool() bool // Call does a JavaScript call to the method m of value v with the given // arguments. It panics if v has no method m. The arguments get mapped to // JavaScript values according to the ValueOf function. Call(m string, args ...interface{}) Value // Float returns the value v as a float64. It panics if v is not a // JavaScript number. Float() float64 // Get returns the JavaScript property p of value v. It panics if v is not a // JavaScript object. Get(p string) Value // Index returns JavaScript index i of value v. It panics if v is not a // JavaScript object. Index(i int) Value // InstanceOf reports whether v is an instance of type t according to // JavaScript's instanceof operator. InstanceOf(t Value) bool // Int returns the value v truncated to an int. It panics if v is not a // JavaScript number. Int() int // Invoke does a JavaScript call of the value v with the given arguments. It // panics if v is not a JavaScript function. The arguments get mapped to // JavaScript values according to the ValueOf function. Invoke(args ...interface{}) Value // IsNaN reports whether v is the JavaScript value "NaN". IsNaN() bool // IsNull reports whether v is the JavaScript value "null". IsNull() bool // IsUndefined reports whether v is the JavaScript value "undefined". IsUndefined() bool // JSValue implements Wrapper interface. JSValue() Value // Length returns the JavaScript property "length" of v. It panics if v is // not a JavaScript object. Length() int // New uses JavaScript's "new" operator with value v as constructor and the // given arguments. It panics if v is not a JavaScript function. The // arguments get mapped to JavaScript values according to the ValueOf // function. New(args ...interface{}) Value // Set sets the JavaScript property p of value v to ValueOf(x). It panics if // v is not a JavaScript object. Set(p string, x interface{}) // SetIndex sets the JavaScript index i of value v to ValueOf(x). It panics // if v is not a JavaScript object. SetIndex(i int, x interface{}) // String returns the value v as a string. String is a special case because // of Go's String method convention. Unlike the other getters, it does not // panic if v's Type is not TypeString. Instead, it returns a string of the // form "<T>" or "<T: V>" where T is v's type and V is a string // representation of v's value. String() string // Truthy returns the JavaScript "truthiness" of the value v. In JavaScript, // false, 0, "", null, undefined, and NaN are "falsy", and everything else // is "truthy". See // https://developer.mozilla.org/en-US/docs/Glossary/Truthy. Truthy() bool // Type returns the JavaScript type of the value v. It is similar to // JavaScript's typeof operator, except that it returns TypeNull instead of // TypeObject for null. Type() Type // contains filtered or unexported methods }
Value is the interface that represents a JavaScript value. On wasm architecture, it wraps the Value from https://golang.org/pkg/syscall/js/ package.
func ValueOf ¶
func ValueOf(x interface{}) Value
ValueOf returns x as a JavaScript value:
| Go | JavaScript | | ---------------------- | ---------------------- | | js.Value | [its value] | | js.Func | function | | nil | null | | bool | boolean | | integers and floats | number | | string | string | | []interface{} | new array | | map[string]interface{} | new object |
Panics if x is not one of the expected types.