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 AppendClass(class, c string) string
- func Broadcast(s *State)
- func CopyBytesToGo(dst []byte, src Value) int
- func CopyBytesToJS(dst Value, src []byte) int
- func Encrypt(s *State)
- 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 Handle(actionName string, h ActionHandler)
- func KeepBodyClean() (close func())
- func Log(v ...any)
- func Logf(format string, v ...any)
- func Persist(s *State)
- 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 Action
- type ActionHandler
- type AppInstaller
- type AppUpdater
- type BrowserStorage
- type BrowserWindow
- type ClientDispatcher
- type Compo
- type Composer
- type Condition
- type Context
- type Dismounter
- type Dispatch
- type DispatchMode
- 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 HTMLElem
- type HTMLElemSelfClosing
- 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 HTMLTFoot
- type HTMLTHead
- type HTMLTable
- type HTMLTd
- type HTMLTemplate
- type HTMLTextarea
- type HTMLTh
- type HTMLTime
- type HTMLTitle
- type HTMLTr
- type HTMLU
- type HTMLUl
- type HTMLVar
- type HTMLVideo
- type HTMLWbr
- type Handler
- type Icon
- type Initializer
- type Kind
- type Mounter
- type MsgHandler
- type Navigator
- type Notification
- type NotificationAction
- type NotificationPermission
- type NotificationService
- type NotificationSubscription
- type Observer
- type Page
- type PreRenderCache
- type PreRenderedItem
- type PreRenderer
- type ProxyResource
- type RangeLoop
- type Resizer
- type ResourceProvider
- type ServerDispatcher
- type State
- type StateOption
- type Tag
- type Tagger
- type Tags
- type TestUIDescriptor
- type Type
- type UI
- 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" )
const ( // The default template used to generate app-worker.js. DefaultAppWorkerJS = "" /* 2731-byte string literal not displayed */ )
Variables ¶
var ( // DefaultLogger is the logger used to log info and errors. DefaultLogger func(format string, v ...any) )
Functions ¶
func AppendClass ¶
AppendClass adds c to the given class string.
func Broadcast ¶
func Broadcast(s *State)
Broadcast is a state option that broadcasts a state to other browser tabs and windows from the same origin.
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 Encrypt ¶
func Encrypt(s *State)
Encrypt is a state option that encrypts a state before persisting it in local storage. Encryption is performed only when the Persist option is also set.
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 Handle ¶
func Handle(actionName string, h ActionHandler)
Handle registers the handler for the given action name. When an action occurs, the handler is executed on its own goroutine.
func KeepBodyClean ¶
func KeepBodyClean() (close func())
KeepBodyClean prevents third-party Javascript libraries to add nodes to the body element.
func Log ¶
func Log(v ...any)
Log logs using the default formats for its operands. Spaces are always added between operands.
func Persist ¶
func Persist(s *State)
Persist is a state option that persists a state in local storage.
Be mindful to not use this option as a cache since local storage is limited to 5MB in a lot of web browsers.
func PrintHTMLWithIndent ¶
PrintHTMLWithIndent writes an idented HTML representation of the UI element into the given writer.
func Route ¶
Route associates the type of the given component to the given path.
When a page is requested and matches the route, a new instance of the given component is created before being displayed.
func RouteWithRegexp ¶
RouteWithRegexp associates the type of the given component to the given regular expression pattern.
Patterns use the Go standard regexp format.
When a page is requested and matches the pattern, a new instance of the given component is created before being displayed.
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 Action ¶
type Action struct { // The name that identifies the action.. Name string // The value passed along with the action. Can be nil. Value any // Tags that provide some context to the action. Tags Tags }
Action represents a custom event that can be propagated across the app. It can contain a payload and be given additional context with tags.
type ActionHandler ¶
ActionHandler represents a handler that is executed when an action is created with Context.NewAction().
type AppInstaller ¶
type AppInstaller interface { // The function called when the application becomes installable or // installed. Use Context.IsAppInstallable() or Context.IsAppInstalled to // check the install state. OnAppInstallChange is always called on the UI // goroutine. OnAppInstallChange(Context) }
AppInstaller is the interface that describes a component that is notified when the application installation state changes.
type AppUpdater ¶
type AppUpdater interface { // The function called when the application is updated. It is always called // on the UI goroutine. OnAppUpdate(Context) }
AppUpdater is the interface that describes a component that is notified when the application is updated.
type BrowserStorage ¶
type BrowserStorage interface { // Set sets the value to the given key. The value must be json convertible. Set(k string, v any) 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 any) 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 // Consume executes all the remaining UI instructions. Consume() // ConsumeNext executes the next UI instructions. ConsumeNext() // Close consumes all the remaining UI instruction and releases allocated // resources. Close() // Mounts the given component as root element. Mount(UI) Nav(*url.URL) // Triggers OnAppUpdate from the root component. AppUpdate() // Triggers OnAppInstallChange from the root component. AppInstallChange() // Triggers OnAppResize from the root component. AppResize() }
ClientDispatcher is the interface that describes a dispatcher that emulates a client environment.
func NewClientTester ¶
func NewClientTester(n 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) 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 any) 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() // 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(any) EventHandler // contains filtered or unexported methods }
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 interface { context.Context // Returns the UI element tied to the context. Src() UI // Returns the associated JavaScript value. The is an helper method 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 // Reports whether the app is installable. IsAppInstallable() bool // Shows the app install prompt if the app is installable. ShowAppInstallPrompt() // Returns the current page. Page() Page // Executes the given function on the UI goroutine and notifies the // context's nearest component to update its state. Dispatch(fn func(Context)) // Executes the given function on the UI goroutine after notifying the // context's nearest component to update its state. Defer(fn func(Context)) // Registers the handler for the given action name. When an action occurs, // the handler is executed on the UI goroutine. Handle(actionName string, h ActionHandler) // Creates an action with optional tags, to be handled with Context.Handle. // Eg: // ctx.NewAction("myAction") // ctx.NewAction("myAction", app.T("purpose", "test")) // ctx.NewAction("myAction", app.Tags{ // "foo": "bar", // "hello": "world", // }) NewAction(name string, tags ...Tagger) // Creates an action with a value and optional tags, to be handled with // Context.Handle. Eg: // ctx.NewActionWithValue("processValue", 42) // ctx.NewActionWithValue("processValue", 42, app.T("type", "number")) // ctx.NewActionWithValue("myAction", 42, app.Tags{ // "foo": "bar", // "hello": "world", // }) NewActionWithValue(name string, v any, tags ...Tagger) // Executes 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. Async(fn func()) // Asynchronously waits for the given duration and dispatches the given // function. After(d time.Duration, fn func(Context)) // Executes the given function and notifies the parent components to update // their state. It should be used to launch component custom event handlers. Emit(fn func()) // Reloads the WebAssembly app to the current page. It is like refreshing // the browser page. Reload() // an *url.URL and then calls ctx.NavigateTo under the hood. Navigate(url string) NavigateTo(u *url.URL) // 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. ResolveStaticResource(string) string // Returns a storage that uses the browser local storage associated to the // document origin. Data stored has no expiration time. LocalStorage() BrowserStorage // Returns a storage that uses the browser session storage associated to the // document origin. Data stored expire when the page session ends. SessionStorage() BrowserStorage // Scrolls to the HTML element with the given id. ScrollTo(id string) // Returns a UUID that identifies the app on the current device. DeviceID() string // Encrypts the given value using AES encryption. Encrypt(v any) ([]byte, error) // Decrypts the given encrypted bytes and stores them in the given value. Decrypt(crypted []byte, v any) error // Sets the state with the given value. // Example: // ctx.SetState("/globalNumber", 42, Persistent) // // Options can be added to persist a state into the local storage, encrypt, // expire, or broadcast the state across browser tabs and windows. // Example: // ctx.SetState("/globalNumber", 42, Persistent, Broadcast) SetState(state string, v any, opts ...StateOption) // Stores the specified state value into the given receiver. Panics when the // receiver is not a pointer or nil. GetState(state string, recv any) // Deletes the given state. All value observations are stopped. DelState(state string) // Creates an observer that observes changes for the given state. // Example: // type myComponent struct { // app.Compo // // number int // } // // func (c *myComponent) OnMount(ctx app.Context) { // ctx.ObserveState("/globalNumber").Value(&c.number) // } ObserveState(state string) Observer // Returns the app dispatcher. Dispatcher() Dispatcher // Returns the service to setup and display notifications. Notifications() NotificationService // Prevents the component that contains the context source to be updated. PreventUpdate() }
Context is the interface that describes a context tied to a UI element.
A context provides mechanisms to deal with the browser, the current page, navigation, concurrency, and component communication.
It is canceled when its associated UI element is dismounted.
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 Dispatch ¶
type Dispatch struct { Mode DispatchMode Source UI Function func(Context) }
Dispatch represents an operation executed on the UI goroutine.
type DispatchMode ¶
type DispatchMode int
DispatchMode represents how a dispatch is processed.
const ( // A dispatch mode where the dispatched operation is enqueued to be executed // as soon as possible and its associated UI element is updated at the end // of the current update cycle. Update DispatchMode = iota // A dispatch mode that schedules the dispatched operation to be executed // after the current update frame. Defer // A dispatch mode where the dispatched operation is enqueued to be executed // as soon as possible. Next )
type Dispatcher ¶
type Dispatcher interface { // Context returns the context associated with the root element. Context() Context // Executes the given dispatch operation on the UI goroutine. Dispatch(d Dispatch) // Emit executes the given function and notifies the source's parent // components to update their state. Emit(src UI, fn func()) // Handle registers the handler for the given action name. When an action // occurs, the handler is executed on the UI goroutine. Handle(actionName string, src UI, h ActionHandler) // Post posts the given action. The action is then handled by handlers // registered with Handle() and Context.Handle(). Post(a Action) // Sets the state with the given value. SetState(state string, v any, opts ...StateOption) // Stores the specified state value into the given receiver. Panics when the // receiver is not a pointer or nil. GetState(state string, recv any) // Deletes the given state. DelState(state string) // Creates an observer that observes changes for the specified state while // the given element is mounted. ObserveState(state string, elem UI) Observer // 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(fn 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 any) 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 any) HTMLA // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLA // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 string) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLA // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLA // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLA // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLA // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLA // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLA // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLA // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLA // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLA // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLA // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLA // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLA // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLA // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLA // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLA // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLA // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLA // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLA // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLA // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLA // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLA // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLA // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLA // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLA // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLA // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLA // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLA // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLA // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLA // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLA // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLA // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLA // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLA // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLA // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLAbbr // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLAbbr // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLAbbr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLAbbr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLAbbr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAbbr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLAbbr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLAbbr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLAbbr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLAbbr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLAbbr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAbbr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAbbr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAbbr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAbbr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAbbr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLAbbr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLAbbr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLAbbr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLAbbr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAbbr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLAbbr // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAbbr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLAbbr // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLAbbr // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAbbr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLAbbr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLAbbr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLAbbr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLAbbr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLAbbr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLAbbr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLAbbr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLAbbr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLAbbr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLAbbr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLAddress // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLAddress // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLAddress // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLAddress // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLAddress // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAddress // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLAddress // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLAddress // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLAddress // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLAddress // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLAddress // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAddress // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAddress // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAddress // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAddress // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAddress // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLAddress // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLAddress // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLAddress // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLAddress // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAddress // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLAddress // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAddress // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLAddress // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLAddress // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAddress // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLAddress // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLAddress // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLAddress // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLAddress // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLAddress // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLAddress // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLAddress // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLAddress // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLAddress // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLAddress // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLArea // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLArea // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 string) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLArea // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLArea // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLArea // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLArea // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLArea // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLArea // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLArea // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLArea // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLArea // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLArea // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLArea // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLArea // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLArea // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLArea // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLArea // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLArea // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLArea // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLArea // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLArea // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLArea // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLArea // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLArea // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLArea // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLArea // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLArea // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLArea // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLArea // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLArea // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLArea // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLArea // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLArea // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLArea // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLArea // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLArea // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLArticle // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLArticle // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLArticle // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLArticle // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLArticle // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLArticle // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLArticle // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLArticle // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLArticle // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLArticle // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLArticle // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLArticle // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLArticle // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLArticle // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLArticle // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLArticle // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLArticle // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLArticle // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLArticle // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLArticle // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLArticle // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLArticle // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLArticle // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLArticle // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLArticle // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLArticle // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLArticle // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLArticle // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLArticle // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLArticle // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLArticle // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLArticle // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLArticle // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLArticle // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLArticle // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLArticle // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLAside // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLAside // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLAside // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLAside // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLAside // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAside // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLAside // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLAside // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLAside // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLAside // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLAside // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAside // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAside // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAside // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAside // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAside // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLAside // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLAside // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLAside // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLAside // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAside // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLAside // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAside // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLAside // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLAside // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAside // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLAside // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLAside // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLAside // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLAside // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLAside // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLAside // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLAside // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLAside // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLAside // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLAside // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLAudio // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) HTMLAudio // DataSet stores custom data private to the page or application. DataSet(k string, v any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLAudio // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...any) HTMLAudio // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLAudio // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLAudio // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAudio // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLAudio // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLAudio // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...any) HTMLAudio // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLAudio // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLAudio // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLAudio // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAudio // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAudio // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAudio // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAudio // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAudio // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLAudio // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...any) HTMLAudio // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...any) HTMLAudio // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...any) HTMLAudio // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...any) HTMLAudio // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLAudio // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLAudio // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLAudio // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAudio // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLAudio // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAudio // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...any) HTMLAudio // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...any) HTMLAudio // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLAudio // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLAudio // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLAudio // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAudio // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLAudio // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLAudio // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLAudio // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLAudio // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLAudio // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...any) HTMLAudio // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...any) HTMLAudio // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...any) HTMLAudio // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...any) 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 ...any) HTMLAudio // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLAudio // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLAudio // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLAudio // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...any) HTMLAudio // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...any) HTMLAudio // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLAudio // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...any) HTMLAudio // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLAudio // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...any) 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 ...any) HTMLAudio // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLB // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLB // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLB // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLB // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLB // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLB // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLB // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLB // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLB // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLB // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLB // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLB // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLB // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLB // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLB // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLB // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLB // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLB // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLB // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLB // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLB // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLB // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLB // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLB // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLB // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLB // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLB // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLB // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLB // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLB // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLB // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLB // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLB // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLB // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLB // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLB // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLBase // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLBase // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLBase // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBase // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLBase // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBase // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLBase // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLBase // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLBase // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLBase // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLBase // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBase // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBase // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBase // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBase // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBase // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLBase // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLBase // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLBase // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLBase // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBase // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLBase // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBase // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLBase // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLBase // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBase // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLBase // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLBase // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLBase // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLBase // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLBase // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLBase // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLBase // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLBase // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLBase // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLBase // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLBdi // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLBdi // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLBdi // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBdi // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLBdi // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBdi // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLBdi // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLBdi // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLBdi // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLBdi // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLBdi // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBdi // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBdi // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBdi // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBdi // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBdi // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLBdi // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLBdi // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLBdi // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLBdi // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBdi // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLBdi // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBdi // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLBdi // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLBdi // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBdi // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLBdi // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLBdi // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLBdi // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLBdi // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLBdi // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLBdi // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLBdi // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLBdi // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLBdi // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLBdi // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLBdo // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLBdo // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLBdo // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBdo // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLBdo // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBdo // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLBdo // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLBdo // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLBdo // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLBdo // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLBdo // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBdo // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBdo // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBdo // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBdo // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBdo // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLBdo // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLBdo // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLBdo // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLBdo // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBdo // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLBdo // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBdo // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLBdo // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLBdo // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBdo // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLBdo // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLBdo // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLBdo // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLBdo // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLBdo // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLBdo // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLBdo // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLBdo // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLBdo // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLBdo // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLBlockquote // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLBlockquote // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBlockquote // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLBlockquote // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBlockquote // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLBlockquote // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLBlockquote // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLBlockquote // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLBlockquote // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLBlockquote // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBlockquote // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBlockquote // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBlockquote // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBlockquote // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBlockquote // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLBlockquote // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLBlockquote // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLBlockquote // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLBlockquote // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBlockquote // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLBlockquote // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBlockquote // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLBlockquote // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLBlockquote // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBlockquote // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLBlockquote // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLBlockquote // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLBlockquote // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLBlockquote // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLBlockquote // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLBlockquote // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLBlockquote // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLBlockquote // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLBlockquote // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLBlockquote // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 // 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 any) HTMLBody // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLBody // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLBody // OnAfterPrint runs the given handler after the document is printed. OnAfterPrint(h EventHandler, scope ...any) HTMLBody // OnBeforePrint calls the given handler before the document is printed. OnBeforePrint(h EventHandler, scope ...any) HTMLBody // OnBeforeUnload calls the given handler when the document is about to be unloaded. OnBeforeUnload(h EventHandler, scope ...any) HTMLBody // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBody // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLBody // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBody // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLBody // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLBody // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLBody // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLBody // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLBody // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBody // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBody // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBody // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBody // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBody // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLBody // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...any) HTMLBody // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLBody // OnHashChange calls the given handler when there has been changes to the anchor part of the a URL. OnHashChange(h EventHandler, scope ...any) HTMLBody // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLBody // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLBody // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBody // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLBody // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBody // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...any) HTMLBody // OnMessage calls then given handler when a message is triggered. OnMessage(h EventHandler, scope ...any) HTMLBody // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLBody // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLBody // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBody // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLBody // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLBody // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLBody // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLBody // OnOffline calls the given handler when the browser starts to work offline. OnOffline(h EventHandler, scope ...any) HTMLBody // OnOnline calls the given handler when the browser starts to work online. OnOnline(h EventHandler, scope ...any) HTMLBody // OnPageHide calls the given handler when a user navigates away from a page. OnPageHide(h EventHandler, scope ...any) HTMLBody // OnPageShow calls the given handler when a user navigates to a page. OnPageShow(h EventHandler, scope ...any) HTMLBody // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLBody // OnPopState calls the given handler when the window's history changes. OnPopState(h EventHandler, scope ...any) HTMLBody // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLBody // OnResize calls the given handler when the browser window is resized. OnResize(h EventHandler, scope ...any) HTMLBody // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLBody // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLBody // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLBody // OnStorage calls the given handler when a Web Storage area is updated. OnStorage(h EventHandler, scope ...any) HTMLBody // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLBody // OnUnload calls the given handler once a page has unloaded (or the browser window has been closed). OnUnload(h EventHandler, scope ...any) HTMLBody // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLBody // contains filtered or unexported methods }
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 any) HTMLBr // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLBr // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLBr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLBr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLBr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLBr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLBr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLBr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLBr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLBr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLBr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLBr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLBr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLBr // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLBr // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLBr // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLBr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLBr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLBr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLBr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLBr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLBr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLBr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLBr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLBr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLBr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLButton // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLButton // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLButton // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLButton // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLButton // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLButton // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLButton // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLButton // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLButton // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLButton // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLButton // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLButton // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLButton // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLButton // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLButton // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLButton // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLButton // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLButton // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLButton // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLButton // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLButton // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLButton // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLButton // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLButton // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLButton // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLButton // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLButton // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLButton // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLButton // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLButton // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLButton // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLButton // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLButton // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLButton // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLButton // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLButton // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLCanvas // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLCanvas // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLCanvas // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCanvas // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLCanvas // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCanvas // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLCanvas // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLCanvas // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLCanvas // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLCanvas // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLCanvas // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCanvas // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCanvas // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCanvas // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCanvas // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCanvas // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLCanvas // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLCanvas // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLCanvas // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLCanvas // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCanvas // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLCanvas // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCanvas // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLCanvas // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLCanvas // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCanvas // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLCanvas // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLCanvas // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLCanvas // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLCanvas // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLCanvas // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLCanvas // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLCanvas // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLCanvas // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLCanvas // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLCanvas // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLCaption // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLCaption // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLCaption // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCaption // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLCaption // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCaption // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLCaption // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLCaption // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLCaption // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLCaption // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLCaption // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCaption // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCaption // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCaption // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCaption // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCaption // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLCaption // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLCaption // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLCaption // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLCaption // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCaption // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLCaption // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCaption // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLCaption // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLCaption // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCaption // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLCaption // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLCaption // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLCaption // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLCaption // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLCaption // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLCaption // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLCaption // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLCaption // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLCaption // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLCaption // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLCite // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLCite // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLCite // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCite // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLCite // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCite // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLCite // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLCite // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLCite // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLCite // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLCite // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCite // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCite // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCite // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCite // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCite // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLCite // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLCite // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLCite // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLCite // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCite // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLCite // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCite // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLCite // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLCite // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCite // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLCite // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLCite // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLCite // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLCite // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLCite // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLCite // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLCite // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLCite // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLCite // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLCite // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLCode // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLCode // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLCode // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCode // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLCode // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCode // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLCode // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLCode // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLCode // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLCode // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLCode // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCode // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCode // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCode // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCode // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCode // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLCode // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLCode // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLCode // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLCode // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCode // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLCode // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCode // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLCode // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLCode // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCode // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLCode // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLCode // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLCode // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLCode // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLCode // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLCode // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLCode // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLCode // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLCode // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLCode // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLCol // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLCol // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLCol // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCol // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLCol // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCol // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLCol // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLCol // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLCol // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLCol // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLCol // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCol // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCol // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCol // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCol // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCol // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLCol // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLCol // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLCol // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLCol // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCol // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLCol // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCol // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLCol // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLCol // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCol // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLCol // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLCol // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLCol // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLCol // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLCol // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLCol // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLCol // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLCol // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLCol // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLCol // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLColGroup // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLColGroup // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLColGroup // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLColGroup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLColGroup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLColGroup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLColGroup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLColGroup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLColGroup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLColGroup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLColGroup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLColGroup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLColGroup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLColGroup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLColGroup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLColGroup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLColGroup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLColGroup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLColGroup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLColGroup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLColGroup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLColGroup // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLColGroup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLColGroup // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLColGroup // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLColGroup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLColGroup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLColGroup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLColGroup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLColGroup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLColGroup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLColGroup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLColGroup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLColGroup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLColGroup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLColGroup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLData // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLData // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLData // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) 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 any) 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 any) HTMLDataList // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDataList // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDataList // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDataList // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDataList // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDataList // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDataList // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDataList // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDataList // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDataList // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDataList // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDataList // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDataList // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDataList // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDataList // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDataList // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDataList // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDataList // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDataList // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDataList // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDataList // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDataList // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDataList // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDataList // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDataList // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDataList // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDataList // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDataList // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDataList // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDataList // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDataList // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDataList // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDataList // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDataList // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDataList // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDataList // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDd // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDd // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDd // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDd // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDd // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDd // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDd // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDd // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDd // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDd // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDd // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDd // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDd // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDd // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDd // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDd // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDd // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDd // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDd // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDd // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDd // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDd // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDd // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDd // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDd // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDd // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDd // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDd // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDd // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDd // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDd // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDd // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDd // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDd // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDd // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDd // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDel // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDel // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDel // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDel // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDel // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDel // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDel // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDel // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDel // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDel // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDel // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDel // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDel // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDel // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDel // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDel // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDel // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDel // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDel // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDel // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDel // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDel // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDel // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDel // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDel // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDel // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDel // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDel // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDel // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDel // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDel // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDel // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDel // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDel // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDel // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDetails // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDetails // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDetails // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDetails // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDetails // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDetails // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDetails // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDetails // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDetails // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDetails // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDetails // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDetails // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDetails // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDetails // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDetails // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDetails // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDetails // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDetails // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDetails // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDetails // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDetails // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDetails // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDetails // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDetails // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDetails // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDetails // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDetails // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDetails // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDetails // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDetails // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDetails // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDetails // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDetails // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDetails // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDetails // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDetails // OnToggle calls the given handler when the user opens or closes the details element. OnToggle(h EventHandler, scope ...any) HTMLDetails // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDfn // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDfn // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDfn // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDfn // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDfn // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDfn // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDfn // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDfn // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDfn // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDfn // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDfn // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDfn // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDfn // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDfn // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDfn // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDfn // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDfn // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDfn // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDfn // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDfn // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDfn // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDfn // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDfn // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDfn // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDfn // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDfn // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDfn // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDfn // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDfn // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDfn // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDfn // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDfn // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDfn // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDfn // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDfn // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDfn // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDialog // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDialog // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDialog // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDialog // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDialog // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDialog // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDialog // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDialog // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDialog // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDialog // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDialog // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDialog // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDialog // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDialog // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDialog // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDialog // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDialog // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDialog // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDialog // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDialog // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDialog // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDialog // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDialog // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDialog // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDialog // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDialog // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDialog // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDialog // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDialog // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDialog // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDialog // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDialog // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDialog // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDialog // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDialog // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDialog // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDiv // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDiv // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDiv // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDiv // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDiv // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDiv // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDiv // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDiv // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDiv // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDiv // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDiv // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDiv // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDiv // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDiv // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDiv // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDiv // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDiv // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDiv // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDiv // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDiv // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDiv // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDiv // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDiv // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDiv // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDiv // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDiv // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDiv // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDiv // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDiv // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDiv // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDiv // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDiv // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDiv // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDiv // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDiv // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDiv // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDl // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDl // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDl // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDl // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDl // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLDt // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLDt // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLDt // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDt // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLDt // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDt // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLDt // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLDt // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLDt // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLDt // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLDt // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDt // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDt // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDt // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDt // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDt // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLDt // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLDt // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLDt // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLDt // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDt // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLDt // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDt // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLDt // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLDt // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDt // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLDt // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLDt // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLDt // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLDt // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLDt // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLDt // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLDt // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLDt // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLDt // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLDt // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLDt }
HTMLDt is the interface that describes a "dt" HTML element.
type HTMLElem ¶
type HTMLElem interface { UI // Body set the content of the element. Body(elems ...UI) HTMLElem // Text sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLElem // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLElem // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v any) HTMLElem // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLElem // Class specifies one or more classnames for an element (refers to a class in a style sheet). Class(v ...string) HTMLElem // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLElem // DataSet stores custom data private to the page or application. DataSet(k string, v any) HTMLElem // Dir specifies the text direction for the content in an element. Dir(v string) HTMLElem // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLElem // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLElem // ID specifies a unique id for an element. ID(v string) HTMLElem // Lang specifies the language of the element's content. Lang(v string) HTMLElem // Role specifies to parsing software the exact function of an element (and its children). Role(v string) HTMLElem // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLElem // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLElem // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]string) HTMLElem // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLElem // Title specifies extra information about an element. Title(v string) HTMLElem // XMLNS specifies the xml namespace of the element. XMLNS(v string) HTMLElem // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLElem // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLElem // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLElem // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLElem // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLElem // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLElem // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLElem // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLElem // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLElem // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLElem // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLElem // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLElem // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLElem // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLElem // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLElem // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLElem // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLElem // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLElem // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLElem // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLElem // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLElem // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLElem // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLElem // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLElem // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLElem // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLElem // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLElem // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLElem // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLElem // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLElem // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLElem // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLElem // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLElem // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLElem // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLElem }
HTMLElem is the interface that describes a "elem" HTML element.
type HTMLElemSelfClosing ¶
type HTMLElemSelfClosing interface { UI // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLElemSelfClosing // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v any) HTMLElemSelfClosing // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLElemSelfClosing // Class specifies one or more classnames for an element (refers to a class in a style sheet). Class(v ...string) HTMLElemSelfClosing // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLElemSelfClosing // DataSet stores custom data private to the page or application. DataSet(k string, v any) HTMLElemSelfClosing // Dir specifies the text direction for the content in an element. Dir(v string) HTMLElemSelfClosing // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLElemSelfClosing // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLElemSelfClosing // ID specifies a unique id for an element. ID(v string) HTMLElemSelfClosing // Lang specifies the language of the element's content. Lang(v string) HTMLElemSelfClosing // Role specifies to parsing software the exact function of an element (and its children). Role(v string) HTMLElemSelfClosing // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLElemSelfClosing // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLElemSelfClosing // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]string) HTMLElemSelfClosing // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLElemSelfClosing // Title specifies extra information about an element. Title(v string) HTMLElemSelfClosing // XMLNS specifies the xml namespace of the element. XMLNS(v string) HTMLElemSelfClosing // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLElemSelfClosing // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLElemSelfClosing // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLElemSelfClosing // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLElemSelfClosing // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLElemSelfClosing // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLElemSelfClosing // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLElemSelfClosing // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLElemSelfClosing // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLElemSelfClosing // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLElemSelfClosing // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLElemSelfClosing // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLElemSelfClosing // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLElemSelfClosing // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLElemSelfClosing // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLElemSelfClosing // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLElemSelfClosing // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLElemSelfClosing // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLElemSelfClosing // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLElemSelfClosing // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLElemSelfClosing // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLElemSelfClosing // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLElemSelfClosing // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLElemSelfClosing // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLElemSelfClosing // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLElemSelfClosing // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLElemSelfClosing // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLElemSelfClosing // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLElemSelfClosing }
HTMLElemSelfClosing is the interface that describes a "elemselfclosing" HTML element.
func ElemSelfClosing ¶
func ElemSelfClosing(tag string) HTMLElemSelfClosing
ElemSelfClosing returns an HTML element that represents a self closing custom 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 any) 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 any) HTMLEm // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLEm // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLEm // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLEm // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLEm // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLEm // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLEm // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLEm // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLEm // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLEm // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLEm // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLEm // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLEm // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLEm // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLEm // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLEm // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLEm // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLEm // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLEm // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLEm // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLEm // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLEm // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLEm // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLEm // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLEm // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLEm // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLEm // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLEm // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLEm // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLEm // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLEm // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLEm // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLEm // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLEm // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLEm // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLEm // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLEmbed // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLEmbed // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLEmbed // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...any) HTMLEmbed // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLEmbed // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLEmbed // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLEmbed // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLEmbed // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLEmbed // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...any) HTMLEmbed // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLEmbed // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLEmbed // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLEmbed // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLEmbed // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLEmbed // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLEmbed // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLEmbed // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLEmbed // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLEmbed // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...any) HTMLEmbed // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...any) HTMLEmbed // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...any) HTMLEmbed // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...any) HTMLEmbed // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLEmbed // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLEmbed // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLEmbed // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLEmbed // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLEmbed // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLEmbed // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...any) HTMLEmbed // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...any) HTMLEmbed // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLEmbed // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLEmbed // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLEmbed // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLEmbed // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLEmbed // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLEmbed // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLEmbed // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLEmbed // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLEmbed // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...any) HTMLEmbed // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...any) HTMLEmbed // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...any) HTMLEmbed // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...any) 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 ...any) HTMLEmbed // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLEmbed // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLEmbed // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLEmbed // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...any) HTMLEmbed // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...any) HTMLEmbed // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLEmbed // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...any) HTMLEmbed // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLEmbed // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...any) 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 ...any) HTMLEmbed // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLFieldSet // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLFieldSet // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLFieldSet // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLFieldSet // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLFieldSet // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLFieldSet // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLFieldSet // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLFieldSet // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLFieldSet // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLFieldSet // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLFieldSet // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLFieldSet // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLFieldSet // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLFieldSet // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLFieldSet // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLFieldSet // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLFieldSet // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLFieldSet // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLFieldSet // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLFieldSet // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLFieldSet // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLFieldSet // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLFieldSet // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLFieldSet // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLFieldSet // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLFieldSet // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLFieldSet // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLFieldSet // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLFieldSet // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLFieldSet // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLFieldSet // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLFieldSet // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLFieldSet // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLFieldSet // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLFieldSet // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLFieldSet // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLFigCaption // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLFigCaption // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLFigCaption // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLFigCaption // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLFigCaption // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLFigCaption // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLFigCaption // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLFigCaption // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLFigCaption // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLFigCaption // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLFigCaption // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLFigCaption // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLFigCaption // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLFigCaption // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLFigCaption // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLFigCaption // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLFigCaption // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLFigCaption // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLFigCaption // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLFigCaption // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLFigCaption // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLFigCaption // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLFigCaption // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLFigCaption // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLFigCaption // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLFigCaption // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLFigCaption // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLFigCaption // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLFigCaption // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLFigCaption // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLFigCaption // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLFigCaption // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLFigCaption // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLFigCaption // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLFigCaption // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLFigCaption // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLFigure // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLFigure // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLFigure // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLFigure // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLFigure // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLFigure // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLFigure // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLFigure // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLFigure // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLFigure // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLFigure // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLFigure // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLFigure // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLFigure // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLFigure // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLFigure // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLFigure // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLFigure // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLFigure // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLFigure // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLFigure // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLFigure // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLFigure // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLFigure // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLFigure // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLFigure // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLFigure // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLFigure // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLFigure // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLFigure // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLFigure // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLFigure // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLFigure // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLFigure // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLFigure // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLFigure // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLFooter AccessKey(v string) HTMLFooter Aria(k string, v any) HTMLFooter Attr(n string, v any) HTMLFooter Class(v ...string) HTMLFooter ContentEditable(v bool) HTMLFooter DataSet(k string, v any) HTMLFooter Dir(v string) HTMLFooter Draggable(v bool) HTMLFooter Hidden(v bool) HTMLFooter ID(v string) HTMLFooter Lang(v string) HTMLFooter Role(v string) HTMLFooter Spellcheck(v bool) HTMLFooter Style(k, v string) HTMLFooter Styles(s map[string]string) HTMLFooter TabIndex(v int) HTMLFooter Title(v string) HTMLFooter On(event string, h EventHandler, scope ...any) HTMLFooter OnBlur(h EventHandler, scope ...any) HTMLFooter OnChange(h EventHandler, scope ...any) HTMLFooter OnClick(h EventHandler, scope ...any) HTMLFooter OnContextMenu(h EventHandler, scope ...any) HTMLFooter OnCopy(h EventHandler, scope ...any) HTMLFooter OnCut(h EventHandler, scope ...any) HTMLFooter OnDblClick(h EventHandler, scope ...any) HTMLFooter OnDrag(h EventHandler, scope ...any) HTMLFooter OnDragEnd(h EventHandler, scope ...any) HTMLFooter OnDragEnter(h EventHandler, scope ...any) HTMLFooter OnDragLeave(h EventHandler, scope ...any) HTMLFooter OnDragOver(h EventHandler, scope ...any) HTMLFooter OnDragStart(h EventHandler, scope ...any) HTMLFooter OnDrop(h EventHandler, scope ...any) HTMLFooter OnFocus(h EventHandler, scope ...any) HTMLFooter OnInput(h EventHandler, scope ...any) HTMLFooter OnInvalid(h EventHandler, scope ...any) HTMLFooter OnKeyDown(h EventHandler, scope ...any) HTMLFooter OnKeyPress(h EventHandler, scope ...any) HTMLFooter OnKeyUp(h EventHandler, scope ...any) HTMLFooter OnMouseDown(h EventHandler, scope ...any) HTMLFooter OnMouseEnter(h EventHandler, scope ...any) HTMLFooter OnMouseLeave(h EventHandler, scope ...any) HTMLFooter OnMouseMove(h EventHandler, scope ...any) HTMLFooter OnMouseOut(h EventHandler, scope ...any) HTMLFooter OnMouseOver(h EventHandler, scope ...any) HTMLFooter OnMouseUp(h EventHandler, scope ...any) HTMLFooter OnPaste(h EventHandler, scope ...any) HTMLFooter OnReset(h EventHandler, scope ...any) HTMLFooter OnScroll(h EventHandler, scope ...any) HTMLFooter OnSearch(h EventHandler, scope ...any) HTMLFooter OnSelect(h EventHandler, scope ...any) HTMLFooter OnSubmit(h EventHandler, scope ...any) HTMLFooter OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLForm // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLForm // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLForm // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLForm // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLForm // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLForm // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLForm // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLForm // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLForm // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLForm // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLForm // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLForm // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLForm // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLForm // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLForm // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLForm // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLForm // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLForm // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLForm // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLForm // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLForm // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLForm // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLForm // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLForm // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLForm // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLForm // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLForm // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLForm // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLForm // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLForm // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLForm // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLForm // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLForm // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLForm // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLForm // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLH1 // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLH1 // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLH1 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH1 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLH1 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH1 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLH1 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLH1 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLH1 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLH1 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLH1 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH1 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH1 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH1 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH1 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH1 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLH1 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLH1 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLH1 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLH1 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH1 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLH1 // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH1 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLH1 // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLH1 // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH1 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLH1 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLH1 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLH1 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLH1 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLH1 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLH1 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLH1 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLH1 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLH1 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLH1 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLH2 // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLH2 // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLH2 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH2 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLH2 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH2 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLH2 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLH2 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLH2 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLH2 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLH2 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH2 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH2 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH2 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH2 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH2 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLH2 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLH2 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLH2 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLH2 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH2 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLH2 // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH2 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLH2 // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLH2 // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH2 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLH2 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLH2 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLH2 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLH2 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLH2 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLH2 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLH2 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLH2 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLH2 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLH2 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLH3 // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLH3 // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLH3 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH3 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLH3 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH3 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLH3 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLH3 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLH3 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLH3 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLH3 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH3 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH3 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH3 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH3 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH3 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLH3 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLH3 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLH3 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLH3 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH3 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLH3 // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH3 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLH3 // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLH3 // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH3 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLH3 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLH3 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLH3 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLH3 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLH3 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLH3 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLH3 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLH3 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLH3 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLH3 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLH4 // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLH4 // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLH4 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH4 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLH4 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH4 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLH4 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLH4 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLH4 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLH4 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLH4 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH4 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH4 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH4 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH4 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH4 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLH4 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLH4 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLH4 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLH4 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH4 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLH4 // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH4 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLH4 // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLH4 // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH4 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLH4 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLH4 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLH4 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLH4 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLH4 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLH4 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLH4 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLH4 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLH4 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLH4 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLH5 // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLH5 // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLH5 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH5 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLH5 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH5 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLH5 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLH5 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLH5 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLH5 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLH5 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH5 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH5 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH5 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH5 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH5 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLH5 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLH5 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLH5 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLH5 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH5 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLH5 // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH5 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLH5 // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLH5 // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH5 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLH5 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLH5 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLH5 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLH5 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLH5 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLH5 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLH5 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLH5 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLH5 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLH5 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLH6 // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLH6 // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLH6 // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH6 // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLH6 // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH6 // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLH6 // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLH6 // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLH6 // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLH6 // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLH6 // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH6 // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH6 // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH6 // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH6 // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH6 // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLH6 // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLH6 // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLH6 // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLH6 // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH6 // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLH6 // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH6 // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLH6 // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLH6 // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH6 // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLH6 // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLH6 // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLH6 // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLH6 // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLH6 // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLH6 // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLH6 // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLH6 // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLH6 // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLH6 // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLHead // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLHead // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) 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 any) 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 any) HTMLHeader // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLHeader // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLHeader // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLHeader // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLHeader // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLHeader // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLHeader // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLHeader // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLHeader // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLHeader // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLHeader // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLHeader // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLHeader // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLHeader // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLHeader // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLHeader // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLHeader // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLHeader // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLHeader // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLHeader // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLHeader // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLHeader // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLHeader // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLHeader // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLHeader // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLHeader // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLHeader // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLHeader // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLHeader // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLHeader // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLHeader // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLHeader // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLHeader // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLHeader // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLHeader // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLHeader // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLHr // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLHr // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLHr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLHr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLHr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLHr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLHr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLHr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLHr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLHr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLHr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLHr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLHr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLHr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLHr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLHr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLHr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLHr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLHr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLHr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLHr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLHr // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLHr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLHr // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLHr // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLHr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLHr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLHr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLHr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLHr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLHr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLHr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLHr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLHr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLHr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLHr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLHr }
HTMLHr is the interface that describes a "hr" HTML element.
type HTMLHtml ¶
type HTMLHtml interface { UI // 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 any) HTMLHtml // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLHtml // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLHtml // contains filtered or unexported methods }
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 any) 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 any) HTMLI // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLI // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLI // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLI // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLI // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLI // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLI // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLI // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLI // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLI // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLI // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLI // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLI // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLI // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLI // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLI // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLI // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLI // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLI // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLI // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLI // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLI // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLI // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLI // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLI // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLI // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLI // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLI // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLI // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLI // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLI // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLI // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLI // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLI // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLI // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLI // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLIFrame // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLIFrame // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Loading indicates how the browser should load the iframe (eager|lazy). Loading(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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) HTMLIFrame // Sandbox enables an extra set of restrictions for the content in an iframe. Sandbox(v any) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLIFrame // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLIFrame // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLIFrame // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLIFrame // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLIFrame // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLIFrame // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLIFrame // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLIFrame // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLIFrame // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLIFrame // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLIFrame // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLIFrame // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLIFrame // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLIFrame // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLIFrame // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLIFrame // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLIFrame // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLIFrame // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLIFrame // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLIFrame // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLIFrame // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...any) HTMLIFrame // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLIFrame // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLIFrame // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLIFrame // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLIFrame // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLIFrame // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLIFrame // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLIFrame // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLIFrame // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLIFrame // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLIFrame // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLIFrame // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLIFrame // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLIFrame // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLImg // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLImg // Class specifies one or more classnames for an element (refers to a class in a style sheet). Class(v ...string) HTMLImg // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLImg // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) HTMLImg // DataSet stores custom data private to the page or application. DataSet(k string, v any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLImg // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...any) HTMLImg // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLImg // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLImg // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLImg // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLImg // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLImg // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...any) HTMLImg // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLImg // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLImg // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLImg // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLImg // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLImg // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLImg // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLImg // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLImg // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLImg // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...any) HTMLImg // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...any) HTMLImg // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...any) HTMLImg // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...any) HTMLImg // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLImg // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLImg // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLImg // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLImg // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLImg // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLImg // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...any) HTMLImg // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...any) HTMLImg // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...any) HTMLImg // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLImg // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLImg // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLImg // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLImg // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLImg // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLImg // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLImg // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLImg // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLImg // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...any) HTMLImg // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...any) HTMLImg // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...any) HTMLImg // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...any) 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 ...any) HTMLImg // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLImg // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLImg // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLImg // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...any) HTMLImg // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...any) HTMLImg // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLImg // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...any) HTMLImg // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLImg // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...any) 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 ...any) HTMLImg // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLInput // Attr sets the named attribute with the given value. Attr(n string, v any) 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 // Capture specifies the capture input method in file upload controls Capture(v string) 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). 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 any) 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 any) HTMLInput // MaxLength specifies the maximum number of characters allowed in an element. MaxLength(v int) HTMLInput // Min specifies a minimum value. Min(v any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLInput // Width specifies the width of the element. Width(v int) HTMLInput // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLInput // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLInput // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLInput // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLInput // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLInput // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLInput // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLInput // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLInput // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLInput // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLInput // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLInput // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLInput // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLInput // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLInput // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLInput // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLInput // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLInput // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLInput // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLInput // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLInput // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLInput // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...any) HTMLInput // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLInput // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLInput // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLInput // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLInput // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLInput // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLInput // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLInput // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLInput // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLInput // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLInput // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLInput // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLInput // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLInput // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLIns // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLIns // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLIns // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLIns // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLIns // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLIns // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLIns // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLIns // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLIns // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLIns // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLIns // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLIns // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLIns // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLIns // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLIns // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLIns // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLIns // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLIns // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLIns // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLIns // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLIns // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLIns // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLIns // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLIns // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLIns // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLIns // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLIns // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLIns // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLIns // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLIns // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLIns // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLIns // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLIns // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLIns // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLIns // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLIns // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLKbd // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLKbd // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLKbd // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLKbd // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLKbd // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLKbd // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLKbd // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLKbd // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLKbd // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLKbd // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLKbd // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLKbd // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLKbd // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLKbd // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLKbd // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLKbd // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLKbd // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLKbd // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLKbd // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLKbd // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLKbd // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLKbd // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLKbd // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLKbd // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLKbd // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLKbd // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLKbd // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLKbd // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLKbd // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLKbd // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLKbd // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLKbd // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLKbd // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLKbd // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLKbd // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLKbd // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLLabel // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLLabel // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLLabel // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLabel // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLLabel // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLabel // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLLabel // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLLabel // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLLabel // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLLabel // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLLabel // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLabel // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLabel // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLabel // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLabel // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLabel // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLLabel // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLLabel // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLLabel // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLLabel // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLabel // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLLabel // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLabel // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLLabel // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLLabel // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLabel // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLLabel // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLLabel // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLLabel // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLLabel // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLLabel // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLLabel // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLLabel // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLLabel // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLLabel // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLLabel // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLLegend // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLLegend // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLLegend // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLegend // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLLegend // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLegend // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLLegend // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLLegend // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLLegend // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLLegend // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLLegend // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLegend // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLegend // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLegend // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLegend // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLegend // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLLegend // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLLegend // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLLegend // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLLegend // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLegend // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLLegend // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLegend // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLLegend // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLLegend // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLegend // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLLegend // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLLegend // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLLegend // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLLegend // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLLegend // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLLegend // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLLegend // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLLegend // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLLegend // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLLegend // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLLi // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLLi // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLLi // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLLi // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLi // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLLi // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLi // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLLi // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLLi // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLLi // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLLi // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLLi // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLi // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLi // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLi // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLi // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLi // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLLi // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLLi // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLLi // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLLi // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLi // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLLi // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLi // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLLi // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLLi // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLi // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLLi // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLLi // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLLi // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLLi // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLLi // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLLi // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLLi // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLLi // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLLi // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLLi // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLLink // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLLink // Class specifies one or more classnames for an element (refers to a class in a style sheet). Class(v ...string) HTMLLink // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLLink // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) HTMLLink // DataSet stores custom data private to the page or application. DataSet(k string, v any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLLink // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLink // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLLink // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLink // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLLink // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLLink // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLLink // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLLink // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLLink // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLink // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLink // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLink // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLink // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLink // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLLink // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLLink // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLLink // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLLink // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLink // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLLink // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLink // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...any) HTMLLink // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLLink // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLLink // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLink // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLLink // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLLink // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLLink // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLLink // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLLink // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLLink // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLLink // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLLink // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLLink // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLLink // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLMain // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLMain // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLMain // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMain // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLMain // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMain // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLMain // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLMain // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLMain // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLMain // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLMain // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMain // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMain // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMain // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMain // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMain // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLMain // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLMain // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLMain // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLMain // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMain // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLMain // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMain // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLMain // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLMain // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMain // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLMain // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLMain // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLMain // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLMain // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLMain // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLMain // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLMain // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLMain // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLMain // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLMain // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLMap // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLMap // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLMap // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMap // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLMap // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMap // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLMap // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLMap // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLMap // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLMap // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLMap // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMap // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMap // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMap // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMap // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMap // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLMap // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLMap // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLMap // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLMap // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMap // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLMap // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMap // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLMap // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLMap // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMap // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLMap // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLMap // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLMap // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLMap // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLMap // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLMap // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLMap // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLMap // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLMap // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLMap // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLMark // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLMark // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLMark // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMark // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLMark // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMark // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLMark // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLMark // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLMark // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLMark // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLMark // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMark // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMark // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMark // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMark // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMark // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLMark // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLMark // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLMark // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLMark // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMark // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLMark // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMark // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLMark // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLMark // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMark // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLMark // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLMark // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLMark // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLMark // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLMark // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLMark // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLMark // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLMark // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLMark // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLMark // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLMeta // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) 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 any) 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 any) HTMLMeter // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLMeter // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 any) HTMLMeter // Min specifies a minimum value. Min(v any) HTMLMeter // Optimum specifies what value is the optimal value for the gauge. Optimum(v float64) HTMLMeter // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLMeter // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLMeter // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMeter // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLMeter // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMeter // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLMeter // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLMeter // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLMeter // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLMeter // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLMeter // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMeter // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMeter // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMeter // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMeter // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMeter // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLMeter // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLMeter // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLMeter // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLMeter // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMeter // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLMeter // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMeter // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLMeter // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLMeter // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMeter // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLMeter // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLMeter // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLMeter // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLMeter // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLMeter // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLMeter // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLMeter // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLMeter // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLMeter // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLMeter // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLMeter }
HTMLMeter is the interface that describes a "meter" HTML element.
type HTMLNav ¶
type HTMLNav interface { UI Body(elems ...UI) HTMLNav Text(v any) HTMLNav AccessKey(v string) HTMLNav Aria(k string, v any) HTMLNav Attr(n string, v any) HTMLNav Class(v ...string) HTMLNav ContentEditable(v bool) HTMLNav DataSet(k string, v any) HTMLNav Dir(v string) HTMLNav Draggable(v bool) HTMLNav Hidden(v bool) HTMLNav ID(v string) HTMLNav Lang(v string) HTMLNav Role(v string) HTMLNav Spellcheck(v bool) HTMLNav Style(k, v string) HTMLNav Styles(s map[string]string) HTMLNav TabIndex(v int) HTMLNav Title(v string) HTMLNav On(event string, h EventHandler, scope ...any) HTMLNav OnBlur(h EventHandler, scope ...any) HTMLNav OnChange(h EventHandler, scope ...any) HTMLNav OnClick(h EventHandler, scope ...any) HTMLNav OnContextMenu(h EventHandler, scope ...any) HTMLNav OnCopy(h EventHandler, scope ...any) HTMLNav OnCut(h EventHandler, scope ...any) HTMLNav OnDblClick(h EventHandler, scope ...any) HTMLNav OnDrag(h EventHandler, scope ...any) HTMLNav OnDragEnd(h EventHandler, scope ...any) HTMLNav OnDragEnter(h EventHandler, scope ...any) HTMLNav OnDragLeave(h EventHandler, scope ...any) HTMLNav OnDragOver(h EventHandler, scope ...any) HTMLNav OnDragStart(h EventHandler, scope ...any) HTMLNav OnDrop(h EventHandler, scope ...any) HTMLNav OnFocus(h EventHandler, scope ...any) HTMLNav OnInput(h EventHandler, scope ...any) HTMLNav OnInvalid(h EventHandler, scope ...any) HTMLNav OnKeyDown(h EventHandler, scope ...any) HTMLNav OnKeyPress(h EventHandler, scope ...any) HTMLNav OnKeyUp(h EventHandler, scope ...any) HTMLNav OnMouseDown(h EventHandler, scope ...any) HTMLNav OnMouseEnter(h EventHandler, scope ...any) HTMLNav OnMouseLeave(h EventHandler, scope ...any) HTMLNav OnMouseMove(h EventHandler, scope ...any) HTMLNav OnMouseOut(h EventHandler, scope ...any) HTMLNav OnMouseOver(h EventHandler, scope ...any) HTMLNav OnMouseUp(h EventHandler, scope ...any) HTMLNav OnPaste(h EventHandler, scope ...any) HTMLNav OnReset(h EventHandler, scope ...any) HTMLNav OnScroll(h EventHandler, scope ...any) HTMLNav OnSearch(h EventHandler, scope ...any) HTMLNav OnSelect(h EventHandler, scope ...any) HTMLNav OnSubmit(h EventHandler, scope ...any) HTMLNav OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLNoScript // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLNoScript // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) 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 any) 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 any) HTMLObject // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLObject // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLObject // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...any) HTMLObject // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLObject // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLObject // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLObject // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLObject // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLObject // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...any) HTMLObject // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLObject // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLObject // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLObject // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLObject // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLObject // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLObject // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLObject // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLObject // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLObject // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...any) HTMLObject // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...any) HTMLObject // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...any) HTMLObject // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...any) HTMLObject // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLObject // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLObject // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLObject // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLObject // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLObject // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLObject // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...any) HTMLObject // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...any) HTMLObject // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLObject // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLObject // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLObject // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLObject // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLObject // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLObject // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLObject // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLObject // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLObject // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...any) HTMLObject // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...any) HTMLObject // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...any) HTMLObject // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...any) 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 ...any) HTMLObject // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLObject // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLObject // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLObject // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...any) HTMLObject // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...any) HTMLObject // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLObject // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...any) HTMLObject // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLObject // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...any) 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 ...any) HTMLObject // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLOl // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLOl // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLOl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLOl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLOl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLOl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLOl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLOl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLOl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLOl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLOl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLOl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLOl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLOl // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLOl // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLOl // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLOl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLOl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLOl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLOl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLOl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLOl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLOl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLOl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLOl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLOl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLOptGroup // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLOptGroup // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLOptGroup // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOptGroup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLOptGroup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOptGroup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLOptGroup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLOptGroup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLOptGroup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLOptGroup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLOptGroup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOptGroup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOptGroup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOptGroup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOptGroup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOptGroup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLOptGroup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLOptGroup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLOptGroup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLOptGroup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOptGroup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLOptGroup // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOptGroup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLOptGroup // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLOptGroup // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOptGroup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLOptGroup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLOptGroup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLOptGroup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLOptGroup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLOptGroup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLOptGroup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLOptGroup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLOptGroup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLOptGroup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLOptGroup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLOption // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLOption // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLOption // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLOption // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOption // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLOption // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOption // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLOption // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLOption // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLOption // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLOption // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLOption // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOption // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOption // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOption // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOption // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOption // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLOption // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLOption // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLOption // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLOption // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOption // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLOption // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOption // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLOption // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLOption // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOption // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLOption // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLOption // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLOption // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLOption // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLOption // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLOption // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLOption // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLOption // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLOption // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLOption // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLOutput // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLOutput // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLOutput // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOutput // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLOutput // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOutput // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLOutput // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLOutput // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLOutput // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLOutput // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLOutput // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOutput // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOutput // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOutput // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOutput // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOutput // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLOutput // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLOutput // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLOutput // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLOutput // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOutput // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLOutput // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOutput // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLOutput // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLOutput // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOutput // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLOutput // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLOutput // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLOutput // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLOutput // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLOutput // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLOutput // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLOutput // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLOutput // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLOutput // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLOutput // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLP // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLP // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLP // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLP // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLP // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLP // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLP // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLP // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLP // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLP // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLP // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLP // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLP // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLP // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLP // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLP // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLP // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLP // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLP // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLP // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLP // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLP // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLP // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLP // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLP // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLP // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLP // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLP // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLP // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLP // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLP // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLP // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLP // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLP // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLP // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLP // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLParam // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLParam // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLParam // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLParam // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLParam // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLParam // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLParam // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLParam // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLParam // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLParam // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLParam // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLParam // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLParam // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLParam // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLParam // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLParam // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLParam // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLParam // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLParam // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLParam // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLParam // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLParam // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLParam // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLParam // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLParam // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLParam // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLParam // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLParam // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLParam // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLParam // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLParam // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLParam // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLParam // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLParam // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLParam // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLParam // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLParam // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLPicture // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLPicture // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLPicture // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLPicture // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLPicture // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLPicture // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLPicture // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLPicture // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLPicture // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLPicture // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLPicture // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLPicture // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLPicture // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLPicture // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLPicture // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLPicture // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLPicture // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLPicture // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLPicture // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLPicture // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLPicture // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLPicture // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLPicture // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLPicture // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLPicture // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLPicture // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLPicture // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLPicture // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLPicture // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLPicture // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLPicture // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLPicture // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLPicture // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLPicture // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLPicture // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLPicture // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLPre // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLPre // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLPre // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLPre // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLPre // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLPre // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLPre // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLPre // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLPre // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLPre // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLPre // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLPre // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLPre // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLPre // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLPre // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLPre // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLPre // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLPre // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLPre // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLPre // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLPre // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLPre // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLPre // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLPre // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLPre // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLPre // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLPre // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLPre // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLPre // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLPre // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLPre // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLPre // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLPre // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLPre // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLPre // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLPre // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLProgress // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLProgress // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 any) HTMLProgress // Role specifies to parsing software the exact function of an element (and its children). Role(v string) HTMLProgress // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLProgress // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLProgress // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 any) HTMLProgress // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLProgress // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLProgress // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLProgress // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLProgress // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLProgress // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLProgress // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLProgress // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLProgress // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLProgress // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLProgress // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLProgress // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLProgress // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLProgress // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLProgress // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLProgress // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLProgress // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLProgress // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLProgress // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLProgress // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLProgress // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLProgress // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLProgress // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLProgress // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLProgress // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLProgress // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLProgress // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLProgress // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLProgress // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLProgress // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLProgress // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLProgress // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLProgress // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLProgress // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLProgress // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLQ // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLQ // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLQ // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLQ // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLQ // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLQ // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLQ // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLQ // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLQ // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLQ // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLQ // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLQ // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLQ // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLQ // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLQ // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLQ // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLQ // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLQ // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLQ // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLQ // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLQ // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLQ // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLQ // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLQ // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLQ // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLQ // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLQ // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLQ // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLQ // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLQ // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLQ // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLQ // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLQ // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLQ // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLQ // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLRp // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLRp // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLRp // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLRp // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLRp // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLRp // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLRp // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLRp // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLRp // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLRp // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLRp // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLRp // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLRp // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLRp // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLRp // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLRp // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLRp // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLRp // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLRp // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLRp // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLRp // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLRp // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLRp // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLRp // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLRp // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLRp // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLRp // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLRp // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLRp // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLRp // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLRp // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLRp // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLRp // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLRp // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLRp // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLRp // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLRt // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLRt // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLRt // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLRt // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLRt // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLRt // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLRt // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLRt // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLRt // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLRt // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLRt // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLRt // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLRt // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLRt // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLRt // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLRt // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLRt // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLRt // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLRt // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLRt // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLRt // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLRt // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLRt // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLRt // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLRt // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLRt // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLRt // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLRt // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLRt // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLRt // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLRt // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLRt // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLRt // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLRt // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLRt // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLRt // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLRuby // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLRuby // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLRuby // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLRuby // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLRuby // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLRuby // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLRuby // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLRuby // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLRuby // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLRuby // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLRuby // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLRuby // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLRuby // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLRuby // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLRuby // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLRuby // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLRuby // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLRuby // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLRuby // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLRuby // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLRuby // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLRuby // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLRuby // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLRuby // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLRuby // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLRuby // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLRuby // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLRuby // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLRuby // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLRuby // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLRuby // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLRuby // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLRuby // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLRuby // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLRuby // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLRuby // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLS // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLS // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLS // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLS // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLS // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLS // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLS // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLS // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLS // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLS // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLS // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLS // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLS // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLS // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLS // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLS // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLS // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLS // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLS // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLS // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLS // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLS // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLS // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLS // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLS // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLS // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLS // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLS // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLS // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLS // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLS // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLS // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLS // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLS // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLS // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLS // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLSamp // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSamp // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSamp // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSamp // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSamp // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSamp // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSamp // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSamp // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSamp // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSamp // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSamp // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSamp // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSamp // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSamp // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSamp // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSamp // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSamp // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSamp // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSamp // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSamp // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSamp // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSamp // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSamp // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSamp // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSamp // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSamp // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSamp // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSamp // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSamp // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSamp // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSamp // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSamp // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSamp // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSamp // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSamp // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSamp // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLScript // Async specifies that the script is executed asynchronously (only for external scripts). Async(v bool) HTMLScript // Attr sets the named attribute with the given value. Attr(n string, v any) 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). Class(v ...string) HTMLScript // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLScript // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) HTMLScript // DataSet stores custom data private to the page or application. DataSet(k string, v any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLScript // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...any) 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 any) 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 any) HTMLSection // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSection // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSection // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSection // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSection // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSection // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSection // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSection // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSection // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSection // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSection // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSection // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSection // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSection // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSection // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSection // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSection // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSection // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSection // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSection // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSection // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSection // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSection // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSection // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSection // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSection // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSection // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSection // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSection // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSection // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSection // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSection // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSection // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSection // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSection // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSection // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLSelect // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSelect // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSelect // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSelect // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSelect // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSelect // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSelect // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSelect // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSelect // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSelect // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSelect // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSelect // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSelect // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSelect // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSelect // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSelect // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSelect // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSelect // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSelect // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSelect // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSelect // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSelect // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSelect // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSelect // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSelect // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSelect // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSelect // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSelect // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSelect // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSelect // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSelect // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSelect // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSelect // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSelect // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSelect // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLSmall // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSmall // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSmall // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSmall // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSmall // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSmall // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSmall // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSmall // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSmall // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSmall // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSmall // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSmall // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSmall // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSmall // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSmall // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSmall // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSmall // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSmall // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSmall // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSmall // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSmall // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSmall // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSmall // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSmall // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSmall // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSmall // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSmall // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSmall // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSmall // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSmall // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSmall // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSmall // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSmall // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSmall // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSmall // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSmall // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) HTMLSource // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSource // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSource // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSource // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSource // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSource // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSource // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSource // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSource // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSource // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSource // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSource // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSource // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSource // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSource // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSource // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSource // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSource // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSource // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSource // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSource // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSource // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSource // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSource // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSource // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSource // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSource // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSource // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSource // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSource // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSource // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSource // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSource // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSource // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSource // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSource // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLSpan // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSpan // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSpan // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSpan // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSpan // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSpan // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSpan // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSpan // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSpan // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSpan // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSpan // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSpan // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSpan // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSpan // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSpan // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSpan // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSpan // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSpan // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSpan // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSpan // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSpan // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSpan // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSpan // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSpan // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSpan // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSpan // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSpan // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSpan // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSpan // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSpan // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSpan // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSpan // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSpan // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSpan // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSpan // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSpan // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLStrong // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLStrong // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLStrong // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLStrong // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLStrong // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLStrong // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLStrong // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLStrong // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLStrong // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLStrong // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLStrong // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLStrong // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLStrong // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLStrong // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLStrong // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLStrong // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLStrong // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLStrong // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLStrong // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLStrong // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLStrong // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLStrong // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLStrong // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLStrong // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLStrong // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLStrong // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLStrong // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLStrong // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLStrong // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLStrong // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLStrong // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLStrong // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLStrong // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLStrong // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLStrong // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLStrong // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLStyle // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLStyle // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLStyle // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLStyle // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLStyle // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLStyle // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLStyle // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLStyle // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLStyle // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLStyle // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLStyle // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLStyle // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLStyle // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLStyle // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLStyle // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLStyle // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLStyle // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLStyle // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLStyle // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLStyle // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLStyle // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLStyle // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLStyle // OnLoad calls the given handler after the element is finished loading. OnLoad(h EventHandler, scope ...any) HTMLStyle // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLStyle // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLStyle // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLStyle // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLStyle // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLStyle // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLStyle // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLStyle // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLStyle // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLStyle // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLStyle // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLStyle // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLStyle // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLStyle // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLSub // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSub // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSub // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSub // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSub // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSub // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSub // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSub // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSub // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSub // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSub // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSub // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSub // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSub // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSub // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSub // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSub // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSub // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSub // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSub // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSub // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSub // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSub // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSub // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSub // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSub // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSub // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSub // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSub // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSub // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSub // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSub // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSub // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSub // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSub // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSub // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLSummary // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSummary // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSummary // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSummary // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSummary // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSummary // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSummary // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSummary // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSummary // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSummary // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSummary // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSummary // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSummary // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSummary // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSummary // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSummary // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSummary // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSummary // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSummary // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSummary // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSummary // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSummary // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSummary // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSummary // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSummary // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSummary // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSummary // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSummary // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSummary // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSummary // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSummary // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSummary // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSummary // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSummary // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSummary // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSummary // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLSup // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLSup // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLSup // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSup // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLSup // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSup // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLSup // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLSup // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLSup // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLSup // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLSup // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSup // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSup // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSup // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSup // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSup // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLSup // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLSup // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLSup // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLSup // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSup // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLSup // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSup // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLSup // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLSup // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSup // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLSup // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLSup // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLSup // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLSup // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLSup // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLSup // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLSup // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLSup // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLSup // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLSup // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLTBody // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTBody // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTBody // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTBody // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTBody // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTBody // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTBody // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTBody // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTBody // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTBody // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTBody // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTBody // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTBody // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTBody // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTBody // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTBody // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTBody // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTBody // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTBody // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTBody // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTBody // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTBody // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTBody // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTBody // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTBody // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTBody // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTBody // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTBody // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTBody // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTBody // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTBody // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTBody // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTBody // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTBody // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTBody // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTBody // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLTBody }
HTMLTBody is the interface that describes a "tbody" HTML element.
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 any) 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 any) HTMLTFoot // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTFoot // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTFoot // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTFoot // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTFoot // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTFoot // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTFoot // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTFoot // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTFoot // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTFoot // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTFoot // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTFoot // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTFoot // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTFoot // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTFoot // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTFoot // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTFoot // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTFoot // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTFoot // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTFoot // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTFoot // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTFoot // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTFoot // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTFoot // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTFoot // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTFoot // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTFoot // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTFoot // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTFoot // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTFoot // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTFoot // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTFoot // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTFoot // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTFoot // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTFoot // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTFoot // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLTFoot }
HTMLTFoot is the interface that describes a "tfoot" 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 any) 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 any) HTMLTHead // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTHead // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTHead // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTHead // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTHead // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTHead // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTHead // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTHead // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTHead // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTHead // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTHead // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTHead // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTHead // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTHead // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTHead // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTHead // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTHead // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTHead // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTHead // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTHead // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTHead // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTHead // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTHead // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTHead // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTHead // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTHead // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTHead // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTHead // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTHead // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTHead // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTHead // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTHead // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTHead // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTHead // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTHead // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTHead // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLTable // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTable // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTable // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTable // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTable // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTable // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTable // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTable // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTable // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTable // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTable // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTable // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTable // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTable // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTable // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTable // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTable // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTable // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTable // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTable // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTable // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTable // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTable // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTable // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTable // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTable // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTable // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTable // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTable // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTable // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTable // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTable // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTable // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTable // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTable // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTable // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLTd // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTd // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTd // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTd // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTd // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTd // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTd // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTd // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTd // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTd // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTd // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTd // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTd // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTd // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTd // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTd // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTd // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTd // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTd // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTd // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTd // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTd // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTd // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTd // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTd // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTd // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTd // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTd // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTd // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTd // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTd // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTd // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTd // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTd // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTd // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTd // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLTemplate // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTemplate // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) 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 any) 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 any) HTMLTextarea // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(v string) 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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTextarea // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTextarea // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTextarea // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTextarea // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTextarea // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTextarea // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTextarea // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTextarea // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTextarea // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTextarea // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTextarea // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTextarea // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTextarea // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTextarea // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTextarea // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTextarea // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTextarea // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTextarea // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTextarea // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTextarea // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTextarea // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTextarea // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTextarea // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTextarea // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTextarea // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTextarea // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTextarea // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTextarea // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTextarea // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTextarea // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTextarea // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTextarea // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTextarea // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTextarea // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 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 any) HTMLTh // Abbr specifies an abbreviated version of the content in a header cell. Abbr(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 any) HTMLTh // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTh // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTh // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTh // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTh // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTh // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTh // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTh // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTh // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTh // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTh // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTh // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTh // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTh // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTh // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTh // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTh // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTh // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTh // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTh // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTh // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTh // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTh // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTh // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTh // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTh // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTh // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTh // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTh // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTh // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTh // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTh // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTh // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTh // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTh // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTh // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLTime // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTime // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTime // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTime // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTime // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTime // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTime // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTime // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTime // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTime // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTime // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTime // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTime // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTime // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTime // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTime // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTime // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTime // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTime // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTime // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTime // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTime // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTime // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTime // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTime // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTime // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTime // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTime // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTime // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTime // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTime // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTime // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTime // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTime // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTime // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTime // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLTitle // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTitle // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) 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 any) 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 any) HTMLTr // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLTr // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLTr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLTr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLTr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLTr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLTr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLTr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLTr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLTr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLTr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLTr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLTr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLTr // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLTr // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLTr // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLTr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLTr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLTr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLTr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLTr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLTr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLTr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLTr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLTr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLTr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLU // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLU // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLU // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLU // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLU // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLU // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLU // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLU // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLU // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLU // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLU // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLU // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLU // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLU // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLU // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLU // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLU // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLU // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLU // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLU // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLU // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLU // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLU // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLU // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLU // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLU // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLU // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLU // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLU // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLU // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLU // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLU // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLU // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLU // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLU // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLU // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLUl // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLUl // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLUl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLUl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLUl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLUl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLUl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLUl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLUl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLUl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLUl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLUl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLUl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLUl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLUl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLUl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLUl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLUl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLUl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLUl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLUl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLUl // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLUl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLUl // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLUl // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLUl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLUl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLUl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLUl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLUl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLUl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLUl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLUl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLUl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLUl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLUl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLVar // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLVar // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLVar // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLVar // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLVar // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLVar // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLVar // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLVar // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLVar // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLVar // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLVar // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLVar // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLVar // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLVar // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLVar // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLVar // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLVar // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLVar // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLVar // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLVar // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLVar // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLVar // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLVar // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLVar // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLVar // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLVar // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLVar // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLVar // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLVar // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLVar // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLVar // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLVar // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLVar // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLVar // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLVar // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLVar // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLVideo // Attr sets the named attribute with the given value. Attr(n string, v any) 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). 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 // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) HTMLVideo // DataSet stores custom data private to the page or application. DataSet(k string, v any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLVideo // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...any) HTMLVideo // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLVideo // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLVideo // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLVideo // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLVideo // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLVideo // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...any) HTMLVideo // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLVideo // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLVideo // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLVideo // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLVideo // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLVideo // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLVideo // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLVideo // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLVideo // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLVideo // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...any) HTMLVideo // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...any) HTMLVideo // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...any) HTMLVideo // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...any) HTMLVideo // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLVideo // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLVideo // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLVideo // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLVideo // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLVideo // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLVideo // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...any) HTMLVideo // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...any) HTMLVideo // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLVideo // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLVideo // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLVideo // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLVideo // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLVideo // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLVideo // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLVideo // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLVideo // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLVideo // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...any) HTMLVideo // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...any) HTMLVideo // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...any) HTMLVideo // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...any) 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 ...any) HTMLVideo // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLVideo // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLVideo // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLVideo // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...any) HTMLVideo // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...any) HTMLVideo // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLVideo // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...any) HTMLVideo // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) 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 ...any) 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 ...any) HTMLVideo // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...any) 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 ...any) HTMLVideo // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) 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 any) 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 any) HTMLWbr // Attr sets the named attribute with the given value. Attr(n string, v any) HTMLWbr // Class specifies one or more classnames for an element (refers to a class in a style sheet). 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 any) 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 // Role specifies to parsing software the exact function of an element (and its children). Role(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 // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. Styles(s map[string]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 // On registers the given event handler to the specified event. On(event string, h EventHandler, scope ...any) HTMLWbr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLWbr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...any) HTMLWbr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLWbr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...any) HTMLWbr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...any) HTMLWbr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...any) HTMLWbr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...any) HTMLWbr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...any) HTMLWbr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLWbr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLWbr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLWbr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLWbr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLWbr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...any) HTMLWbr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...any) HTMLWbr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...any) HTMLWbr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...any) HTMLWbr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLWbr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...any) HTMLWbr // OnKeyUp calls the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLWbr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...any) HTMLWbr // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. OnMouseEnter(h EventHandler, scope ...any) HTMLWbr // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLWbr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...any) HTMLWbr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...any) HTMLWbr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...any) HTMLWbr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...any) HTMLWbr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...any) HTMLWbr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...any) HTMLWbr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...any) HTMLWbr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...any) HTMLWbr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...any) HTMLWbr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...any) HTMLWbr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...any) HTMLWbr }
HTMLWbr is the interface that describes a "wbr" HTML element.
type Handler ¶
type Handler struct { // The name of the web application as it is usually displayed to the user. Name string // The name of the web application displayed to the user when there is not // enough space to display Name. ShortName string // The icon that is used for the PWA, favicon, loading and default not // found component. Icon Icon // A placeholder background color for the application page to display before // its stylesheets are loaded. // // Default: #2d2c2c. BackgroundColor 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 text displayed while loading a page. Load progress can be inserted by // including "{progress}" in the loading label. // // DEFAULT: "{progress}%". LoadingLabel string // The page language. // // DEFAULT: en. Lang string // The page title. Title string // The page description. Description string // The page authors. Author string // The page keywords. Keywords []string // The path of the default image that is used by social networks when // linking the app. Image string // 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 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 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 // Additional headers to be added in head element. RawHeaders []string // The page HTML element. // // Default: Html(). HTML func() HTMLHtml // The page body element. // // Note that the lang attribute is always overridden by the Handler.Lang // value. // // Default: Body(). Body func() HTMLBody // The interval between each app auto-update while running in a web browser. // Zero or negative values deactivates the auto-update mechanism. // // Default is 0. AutoUpdateInterval time.Duration // The environment variables that are passed to the progressive web app. // // Reserved keys: // - GOAPP_VERSION // - GOAPP_GOAPP_STATIC_RESOURCES_URL Env Environment // The URLs that are launched in the app tab or window. // // By default, URLs with a different domain are launched in another tab. // Specifying internal URLs is to override that behavior. A good use case // would be the URL for an OAuth authentication. InternalURLs []string // The cache that stores pre-rendered pages. // // Default: A LRU cache that keeps pages up to 24h and have a maximum size // of 8MB. PreRenderCache PreRenderCache // The Control-Cache header value for pre-rendered resources. PreRenderCacheControl string // 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 // 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 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 // The HTTP header to retrieve the WebAssembly file content length. // // Content length finding falls back to the Content-Length HTTP header when // no content length is found with the defined header. WasmContentLengthHeader string // The template used to generate app-worker.js. The template follows the // text/template package model. // // By default set to DefaultAppWorkerJS, changing the template have very // high chances to mess up go-app usage. Any issue related to a custom app // worker template is not supported and will be closed. ServiceWorkerTemplate 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 svg file. SVG 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 Initializer ¶
type Initializer interface { Composer // The function called before the component is pre-rendered or mounted. OnInit() }
Initializer is the interface that describes a component that performs initialization instruction before being pre-rendered or mounted.
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 MsgHandler ¶
MsgHandler represents a handler to listen to messages sent with Context.Post.
type Navigator ¶
Navigator is the interface that describes a component that can perform additional actions when navigated on.
type Notification ¶
type Notification struct { // The title shown at the top of the notification window. Title string `json:"title"` // The URL path to navigate to when the notification is clicked. Path string `json:"path"` // The notification's language, as specified in // https://www.sitepoint.com/iso-2-letter-language-codes. Lang string `json:"lang,omitempty"` // The URL of the image used to represent the notification when there isn't // enough space to display the notification itself. Badge string `json:"badge,omitempty"` // The body text of the notification, which is displayed below the title. Body string `json:"body,omitempty"` // An identifying tag for the notification. Tag string `json:"tag,omitempty"` // The URL of an icon to be displayed in the notification. Icon string `json:"icon,omitempty"` // The URL of an image to be displayed in the notification. Image string `json:"image,omitempty"` // Arbitrary data that to be associated with the notification. // // The "goapp" key is reserved to go-app data. Data map[string]any `json:"data"` // Specifies whether the user should be notified after a new notification // replaces an old one. Renotify bool `json:"renotify,omitempty"` // Indicates whether a notification should remain active until the user // clicks or dismisses it, rather than closing automatically. RequireInteraction bool `json:"requireInteraction,omitempty"` // specifies whether the notification is silent (no sounds or vibrations // issued), regardless of the device settings. Silent bool `json:"silent,omitempty"` // A vibration pattern for the device's vibration hardware to emit with the // notification. // // See https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API#vibration_patterns. Vibrate []int `json:"vibrate,omitempty"` // The actions to display in the notification. Actions []NotificationAction `json:"actions,omitempty"` }
A user notification.
type NotificationAction ¶
type NotificationAction struct { // The user action id to be displayed on the notification. Action string `json:"action"` // The action text to be shown to the user. Title string `json:"title"` // The URL of an icon to display with the action. Icon string `json:"icon,omitempty"` // The URL path to navigate to when the action is clicked. Path string `json:"path"` }
A notification action.
type NotificationPermission ¶
type NotificationPermission string
NotificationPermission a permission to display notifications.
const ( // The user notifications choice is unknown and therefore the browser acts // as if the value were denied. NotificationDefault NotificationPermission = "default" // The user accepts having notifications displayed. NotificationGranted NotificationPermission = "granted" // The user refuses to have notifications displayed. NotificationDenied NotificationPermission = "denied" // Notifications are not supported by the browser. NotificationNotSupported NotificationPermission = "unsupported" )
type NotificationService ¶
type NotificationService struct {
// contains filtered or unexported fields
}
func (NotificationService) New ¶
func (s NotificationService) New(n Notification)
Creates and display a user notification.
func (NotificationService) Permission ¶
func (s NotificationService) Permission() NotificationPermission
Returns the current notification permission.
func (NotificationService) RequestPermission ¶
func (s NotificationService) RequestPermission() NotificationPermission
Requests the user whether the app can use notifications.
func (NotificationService) Subscribe ¶
func (s NotificationService) Subscribe(vapIDPublicKey string) (NotificationSubscription, error)
Returns a notification subscription with the given vap id.
type NotificationSubscription ¶
type NotificationSubscription struct { Endpoint string `json:"endpoint"` Keys struct { Auth string `json:"auth"` P256dh string `json:"p256dh"` } `json:"keys"` }
NotificationSubscription represents a PushSubscription object from the Push API.
type Observer ¶
type Observer interface { // Defines a condition that reports whether the observer keeps observing the // associated state. Multiple conditions can be defined by successively // calling While(). While(condition func() bool) Observer // Executes the given function on the UI goroutine when the observed value // changes. Multiple functions can be executed by successively calling // OnChange(). OnChange(fn func()) Observer // Stores the value associated with the observed state into the given // receiver. Panics when the receiver is not a pointer or nil. // // The receiver is updated each time the associated state changes. It is // unchanged when its pointed value has a different type than the associated // state value. Value(recv any) }
Observer is an observer that observes changes for a given state.
type Page ¶
type Page interface { // Returns the page title. Title() string // Sets the page title. SetTitle(string) // Returns the page language. Lang() string // Set the page language. SetLang(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(path string, i PreRenderedItem)) 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 cache control. CacheControl 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 CustomProvider ¶
func CustomProvider(path, prefix string) ResourceProvider
CustomProvider returns a resource provider that serves static resources from a local directory located at the given path and prefixes URL paths with the given prefix.
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 // Consume executes all the remaining UI instructions. Consume() // ConsumeNext executes the next UI instructions. ConsumeNext() // 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(n UI) ServerDispatcher
NewServerTester creates a testing dispatcher that simulates a client environment.
type State ¶
type State struct { // Reports whether the state is persisted in local storage. IsPersistent bool // Reports whether the state is encrypted before being persisted in local // storage. IsEncrypted bool // The time when the state expires. The state never expires when zero value. ExpiresAt time.Time // Reports whether a state is broadcasted to other browser tabs and windows. IsBroadcasted bool // contains filtered or unexported fields }
A state represents an observable value available across the app.
type StateOption ¶
type StateOption func(*State)
StateOption represents an option applied when a state is set.
func ExpiresAt ¶
func ExpiresAt(t time.Time) StateOption
ExpiresAt returns a state option that sets a state value to its zero value at the given time.
Values persisted to local storage with the Persist option are removed from it.
func ExpiresIn ¶
func ExpiresIn(d time.Duration) StateOption
ExpiresIn returns a state option that sets a state value to its zero value after the given duration.
Values persisted to local storage with the Persist option are removed from it.
type Tag ¶
Tag is a key-value pair that adds context to an action.
type Tagger ¶
type Tagger interface { // Returns a collection of tags. Tags() Tags }
Tagger is the interface that describes a collection of tags that gives context to something.
type Tags ¶
Tags represent key-value pairs that give context to what they are used with.
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 Updater ¶
type Updater interface { // The function called when one of the component exported fields is modified // by its nearest parent component. It is always called on the UI goroutine. OnUpdate(Context) }
Updater is the interface that describes a component that can do additional instructions when one of its exported fields is modified by its nearest parent component.
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 ...any) Value // Delete deletes the JavaScript property p of value v. It panics if v is // not a JavaScript object. Delete(p string) // Equal reports whether v and w are equal according to JavaScript's === // operator. Equal(w Value) bool // 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 ...any) 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 ...any) 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 any) // 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 any) // 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 // Then calls the given function when the promise resolves. The current // value must be a promise. Then(f func(Value)) // 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 ¶
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 | | []any | new array | | map[string]any | new object |
Panics if x is not one of the expected types.
Source Files ¶
- action.go
- app.go
- attribute.go
- cache.go
- component.go
- condition.go
- context.go
- contextmenu.go
- crypto.go
- dispatcher.go
- engine.go
- event.go
- html.go
- html_gen.go
- http.go
- js.go
- js_nowasm.go
- log.go
- node.go
- notfound.go
- notification.go
- page.go
- range.go
- raw.go
- resource.go
- route.go
- scripts.go
- state.go
- static.go
- storage.go
- strings.go
- tag.go
- testing.go
- text.go