package app
import (
"strings"
)
type HTMLA interface {
HTML
Body (elems ...UI ) HTMLA
Text (v any ) HTMLA
Textf (format string , v ...any ) HTMLA
AccessKey (format string , v ...any ) HTMLA
Aria (k string , v any ) HTMLA
Attr (n string , v any ) HTMLA
Class (v ...string ) HTMLA
ContentEditable (v bool ) HTMLA
DataSet (k string , v any ) HTMLA
DataSets (ds map [string ]any ) HTMLA
Dir (format string , v ...any ) HTMLA
Download (format string , v ...any ) HTMLA
Draggable (v bool ) HTMLA
Hidden (v bool ) HTMLA
Href (format string , v ...any ) HTMLA
HrefLang (format string , v ...any ) HTMLA
ID (format string , v ...any ) HTMLA
Lang (format string , v ...any ) HTMLA
Media (format string , v ...any ) HTMLA
Ping (format string , v ...any ) HTMLA
Rel (format string , v ...any ) HTMLA
Role (format string , v ...any ) HTMLA
Spellcheck (v bool ) HTMLA
Style (k, format string , v ...any ) HTMLA
Styles (s map [string ]string ) HTMLA
TabIndex (v int ) HTMLA
Target (format string , v ...any ) HTMLA
Title (format string , v ...any ) HTMLA
Type (format string , v ...any ) HTMLA
On (event string , h EventHandler , options ...EventOption ) HTMLA
OnBlur (h EventHandler , options ...EventOption ) HTMLA
OnChange (h EventHandler , options ...EventOption ) HTMLA
OnClick (h EventHandler , options ...EventOption ) HTMLA
OnContextMenu (h EventHandler , options ...EventOption ) HTMLA
OnCopy (h EventHandler , options ...EventOption ) HTMLA
OnCut (h EventHandler , options ...EventOption ) HTMLA
OnDblClick (h EventHandler , options ...EventOption ) HTMLA
OnDrag (h EventHandler , options ...EventOption ) HTMLA
OnDragEnd (h EventHandler , options ...EventOption ) HTMLA
OnDragEnter (h EventHandler , options ...EventOption ) HTMLA
OnDragLeave (h EventHandler , options ...EventOption ) HTMLA
OnDragOver (h EventHandler , options ...EventOption ) HTMLA
OnDragStart (h EventHandler , options ...EventOption ) HTMLA
OnDrop (h EventHandler , options ...EventOption ) HTMLA
OnFocus (h EventHandler , options ...EventOption ) HTMLA
OnInput (h EventHandler , options ...EventOption ) HTMLA
OnInvalid (h EventHandler , options ...EventOption ) HTMLA
OnKeyDown (h EventHandler , options ...EventOption ) HTMLA
OnKeyPress (h EventHandler , options ...EventOption ) HTMLA
OnKeyUp (h EventHandler , options ...EventOption ) HTMLA
OnMouseDown (h EventHandler , options ...EventOption ) HTMLA
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLA
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLA
OnMouseMove (h EventHandler , options ...EventOption ) HTMLA
OnMouseOut (h EventHandler , options ...EventOption ) HTMLA
OnMouseOver (h EventHandler , options ...EventOption ) HTMLA
OnMouseUp (h EventHandler , options ...EventOption ) HTMLA
OnPaste (h EventHandler , options ...EventOption ) HTMLA
OnReset (h EventHandler , options ...EventOption ) HTMLA
OnScroll (h EventHandler , options ...EventOption ) HTMLA
OnSearch (h EventHandler , options ...EventOption ) HTMLA
OnSelect (h EventHandler , options ...EventOption ) HTMLA
OnSubmit (h EventHandler , options ...EventOption ) HTMLA
OnWheel (h EventHandler , options ...EventOption ) HTMLA
}
func A () HTMLA {
e := &htmlA {
htmlElement : htmlElement {
tag : "a" ,
isSelfClosing : false ,
},
}
return e
}
type htmlA struct {
htmlElement
}
func (e *htmlA ) Body (v ...UI ) HTMLA {
return e .setBody (FilterUIElems (v ...)).(*htmlA )
}
func (e *htmlA ) Text (v any ) HTMLA {
return e .Body (Text (v ))
}
func (e *htmlA ) Textf (format string , v ...any ) HTMLA {
return e .Body (Textf (format , v ...))
}
func (e *htmlA ) AccessKey (format string , v ...any ) HTMLA {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Aria (k string , v any ) HTMLA {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlA ) Attr (n string , v any ) HTMLA {
e .setAttr (n , v )
return e
}
func (e *htmlA ) Class (v ...string ) HTMLA {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlA ) ContentEditable (v bool ) HTMLA {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlA ) DataSet (k string , v any ) HTMLA {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlA ) DataSets (ds map [string ]any ) HTMLA {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlA ) Dir (format string , v ...any ) HTMLA {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Download (format string , v ...any ) HTMLA {
e .setAttr ("download" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Draggable (v bool ) HTMLA {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlA ) Hidden (v bool ) HTMLA {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlA ) Href (format string , v ...any ) HTMLA {
e .setAttr ("href" , FormatString (format , v ...))
return e
}
func (e *htmlA ) HrefLang (format string , v ...any ) HTMLA {
e .setAttr ("hreflang" , FormatString (format , v ...))
return e
}
func (e *htmlA ) ID (format string , v ...any ) HTMLA {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Lang (format string , v ...any ) HTMLA {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Media (format string , v ...any ) HTMLA {
e .setAttr ("media" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Ping (format string , v ...any ) HTMLA {
e .setAttr ("ping" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Rel (format string , v ...any ) HTMLA {
e .setAttr ("rel" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Role (format string , v ...any ) HTMLA {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Spellcheck (v bool ) HTMLA {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlA ) Style (k , format string , v ...any ) HTMLA {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlA ) Styles (s map [string ]string ) HTMLA {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlA ) TabIndex (v int ) HTMLA {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlA ) Target (format string , v ...any ) HTMLA {
e .setAttr ("target" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Title (format string , v ...any ) HTMLA {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlA ) Type (format string , v ...any ) HTMLA {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlA ) On (event string , h EventHandler , options ...EventOption ) HTMLA {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlA ) OnBlur (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("blur" , h , options ...)
}
func (e *htmlA ) OnChange (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("change" , h , options ...)
}
func (e *htmlA ) OnClick (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("click" , h , options ...)
}
func (e *htmlA ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlA ) OnCopy (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("copy" , h , options ...)
}
func (e *htmlA ) OnCut (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("cut" , h , options ...)
}
func (e *htmlA ) OnDblClick (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlA ) OnDrag (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("drag" , h , options ...)
}
func (e *htmlA ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("dragend" , h , options ...)
}
func (e *htmlA ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlA ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlA ) OnDragOver (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("dragover" , h , options ...)
}
func (e *htmlA ) OnDragStart (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlA ) OnDrop (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("drop" , h , options ...)
}
func (e *htmlA ) OnFocus (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("focus" , h , options ...)
}
func (e *htmlA ) OnInput (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("input" , h , options ...)
}
func (e *htmlA ) OnInvalid (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("invalid" , h , options ...)
}
func (e *htmlA ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("keydown" , h , options ...)
}
func (e *htmlA ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("keypress" , h , options ...)
}
func (e *htmlA ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("keyup" , h , options ...)
}
func (e *htmlA ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlA ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlA ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlA ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlA ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlA ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlA ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlA ) OnPaste (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("paste" , h , options ...)
}
func (e *htmlA ) OnReset (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("reset" , h , options ...)
}
func (e *htmlA ) OnScroll (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("scroll" , h , options ...)
}
func (e *htmlA ) OnSearch (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("search" , h , options ...)
}
func (e *htmlA ) OnSelect (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("select" , h , options ...)
}
func (e *htmlA ) OnSubmit (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("submit" , h , options ...)
}
func (e *htmlA ) OnWheel (h EventHandler , options ...EventOption ) HTMLA {
return e .On ("wheel" , h , options ...)
}
func (e *htmlA ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlA ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlA ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlA ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlA ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlA ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLAbbr interface {
HTML
Body (elems ...UI ) HTMLAbbr
Text (v any ) HTMLAbbr
Textf (format string , v ...any ) HTMLAbbr
AccessKey (format string , v ...any ) HTMLAbbr
Aria (k string , v any ) HTMLAbbr
Attr (n string , v any ) HTMLAbbr
Class (v ...string ) HTMLAbbr
ContentEditable (v bool ) HTMLAbbr
DataSet (k string , v any ) HTMLAbbr
DataSets (ds map [string ]any ) HTMLAbbr
Dir (format string , v ...any ) HTMLAbbr
Draggable (v bool ) HTMLAbbr
Hidden (v bool ) HTMLAbbr
ID (format string , v ...any ) HTMLAbbr
Lang (format string , v ...any ) HTMLAbbr
Role (format string , v ...any ) HTMLAbbr
Spellcheck (v bool ) HTMLAbbr
Style (k, format string , v ...any ) HTMLAbbr
Styles (s map [string ]string ) HTMLAbbr
TabIndex (v int ) HTMLAbbr
Title (format string , v ...any ) HTMLAbbr
On (event string , h EventHandler , options ...EventOption ) HTMLAbbr
OnBlur (h EventHandler , options ...EventOption ) HTMLAbbr
OnChange (h EventHandler , options ...EventOption ) HTMLAbbr
OnClick (h EventHandler , options ...EventOption ) HTMLAbbr
OnContextMenu (h EventHandler , options ...EventOption ) HTMLAbbr
OnCopy (h EventHandler , options ...EventOption ) HTMLAbbr
OnCut (h EventHandler , options ...EventOption ) HTMLAbbr
OnDblClick (h EventHandler , options ...EventOption ) HTMLAbbr
OnDrag (h EventHandler , options ...EventOption ) HTMLAbbr
OnDragEnd (h EventHandler , options ...EventOption ) HTMLAbbr
OnDragEnter (h EventHandler , options ...EventOption ) HTMLAbbr
OnDragLeave (h EventHandler , options ...EventOption ) HTMLAbbr
OnDragOver (h EventHandler , options ...EventOption ) HTMLAbbr
OnDragStart (h EventHandler , options ...EventOption ) HTMLAbbr
OnDrop (h EventHandler , options ...EventOption ) HTMLAbbr
OnFocus (h EventHandler , options ...EventOption ) HTMLAbbr
OnInput (h EventHandler , options ...EventOption ) HTMLAbbr
OnInvalid (h EventHandler , options ...EventOption ) HTMLAbbr
OnKeyDown (h EventHandler , options ...EventOption ) HTMLAbbr
OnKeyPress (h EventHandler , options ...EventOption ) HTMLAbbr
OnKeyUp (h EventHandler , options ...EventOption ) HTMLAbbr
OnMouseDown (h EventHandler , options ...EventOption ) HTMLAbbr
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAbbr
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAbbr
OnMouseMove (h EventHandler , options ...EventOption ) HTMLAbbr
OnMouseOut (h EventHandler , options ...EventOption ) HTMLAbbr
OnMouseOver (h EventHandler , options ...EventOption ) HTMLAbbr
OnMouseUp (h EventHandler , options ...EventOption ) HTMLAbbr
OnPaste (h EventHandler , options ...EventOption ) HTMLAbbr
OnReset (h EventHandler , options ...EventOption ) HTMLAbbr
OnScroll (h EventHandler , options ...EventOption ) HTMLAbbr
OnSearch (h EventHandler , options ...EventOption ) HTMLAbbr
OnSelect (h EventHandler , options ...EventOption ) HTMLAbbr
OnSubmit (h EventHandler , options ...EventOption ) HTMLAbbr
OnWheel (h EventHandler , options ...EventOption ) HTMLAbbr
}
func Abbr () HTMLAbbr {
e := &htmlAbbr {
htmlElement : htmlElement {
tag : "abbr" ,
isSelfClosing : false ,
},
}
return e
}
type htmlAbbr struct {
htmlElement
}
func (e *htmlAbbr ) Body (v ...UI ) HTMLAbbr {
return e .setBody (FilterUIElems (v ...)).(*htmlAbbr )
}
func (e *htmlAbbr ) Text (v any ) HTMLAbbr {
return e .Body (Text (v ))
}
func (e *htmlAbbr ) Textf (format string , v ...any ) HTMLAbbr {
return e .Body (Textf (format , v ...))
}
func (e *htmlAbbr ) AccessKey (format string , v ...any ) HTMLAbbr {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlAbbr ) Aria (k string , v any ) HTMLAbbr {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAbbr ) Attr (n string , v any ) HTMLAbbr {
e .setAttr (n , v )
return e
}
func (e *htmlAbbr ) Class (v ...string ) HTMLAbbr {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlAbbr ) ContentEditable (v bool ) HTMLAbbr {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlAbbr ) DataSet (k string , v any ) HTMLAbbr {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAbbr ) DataSets (ds map [string ]any ) HTMLAbbr {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlAbbr ) Dir (format string , v ...any ) HTMLAbbr {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlAbbr ) Draggable (v bool ) HTMLAbbr {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlAbbr ) Hidden (v bool ) HTMLAbbr {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlAbbr ) ID (format string , v ...any ) HTMLAbbr {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlAbbr ) Lang (format string , v ...any ) HTMLAbbr {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlAbbr ) Role (format string , v ...any ) HTMLAbbr {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlAbbr ) Spellcheck (v bool ) HTMLAbbr {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlAbbr ) Style (k , format string , v ...any ) HTMLAbbr {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlAbbr ) Styles (s map [string ]string ) HTMLAbbr {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlAbbr ) TabIndex (v int ) HTMLAbbr {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlAbbr ) Title (format string , v ...any ) HTMLAbbr {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlAbbr ) On (event string , h EventHandler , options ...EventOption ) HTMLAbbr {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlAbbr ) OnBlur (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("blur" , h , options ...)
}
func (e *htmlAbbr ) OnChange (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("change" , h , options ...)
}
func (e *htmlAbbr ) OnClick (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("click" , h , options ...)
}
func (e *htmlAbbr ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlAbbr ) OnCopy (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("copy" , h , options ...)
}
func (e *htmlAbbr ) OnCut (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("cut" , h , options ...)
}
func (e *htmlAbbr ) OnDblClick (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlAbbr ) OnDrag (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("drag" , h , options ...)
}
func (e *htmlAbbr ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("dragend" , h , options ...)
}
func (e *htmlAbbr ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlAbbr ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlAbbr ) OnDragOver (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("dragover" , h , options ...)
}
func (e *htmlAbbr ) OnDragStart (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlAbbr ) OnDrop (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("drop" , h , options ...)
}
func (e *htmlAbbr ) OnFocus (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("focus" , h , options ...)
}
func (e *htmlAbbr ) OnInput (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("input" , h , options ...)
}
func (e *htmlAbbr ) OnInvalid (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("invalid" , h , options ...)
}
func (e *htmlAbbr ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("keydown" , h , options ...)
}
func (e *htmlAbbr ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("keypress" , h , options ...)
}
func (e *htmlAbbr ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("keyup" , h , options ...)
}
func (e *htmlAbbr ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlAbbr ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlAbbr ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlAbbr ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlAbbr ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlAbbr ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlAbbr ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlAbbr ) OnPaste (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("paste" , h , options ...)
}
func (e *htmlAbbr ) OnReset (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("reset" , h , options ...)
}
func (e *htmlAbbr ) OnScroll (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("scroll" , h , options ...)
}
func (e *htmlAbbr ) OnSearch (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("search" , h , options ...)
}
func (e *htmlAbbr ) OnSelect (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("select" , h , options ...)
}
func (e *htmlAbbr ) OnSubmit (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("submit" , h , options ...)
}
func (e *htmlAbbr ) OnWheel (h EventHandler , options ...EventOption ) HTMLAbbr {
return e .On ("wheel" , h , options ...)
}
func (e *htmlAbbr ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlAbbr ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlAbbr ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlAbbr ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlAbbr ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlAbbr ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLAddress interface {
HTML
Body (elems ...UI ) HTMLAddress
Text (v any ) HTMLAddress
Textf (format string , v ...any ) HTMLAddress
AccessKey (format string , v ...any ) HTMLAddress
Aria (k string , v any ) HTMLAddress
Attr (n string , v any ) HTMLAddress
Class (v ...string ) HTMLAddress
ContentEditable (v bool ) HTMLAddress
DataSet (k string , v any ) HTMLAddress
DataSets (ds map [string ]any ) HTMLAddress
Dir (format string , v ...any ) HTMLAddress
Draggable (v bool ) HTMLAddress
Hidden (v bool ) HTMLAddress
ID (format string , v ...any ) HTMLAddress
Lang (format string , v ...any ) HTMLAddress
Role (format string , v ...any ) HTMLAddress
Spellcheck (v bool ) HTMLAddress
Style (k, format string , v ...any ) HTMLAddress
Styles (s map [string ]string ) HTMLAddress
TabIndex (v int ) HTMLAddress
Title (format string , v ...any ) HTMLAddress
On (event string , h EventHandler , options ...EventOption ) HTMLAddress
OnBlur (h EventHandler , options ...EventOption ) HTMLAddress
OnChange (h EventHandler , options ...EventOption ) HTMLAddress
OnClick (h EventHandler , options ...EventOption ) HTMLAddress
OnContextMenu (h EventHandler , options ...EventOption ) HTMLAddress
OnCopy (h EventHandler , options ...EventOption ) HTMLAddress
OnCut (h EventHandler , options ...EventOption ) HTMLAddress
OnDblClick (h EventHandler , options ...EventOption ) HTMLAddress
OnDrag (h EventHandler , options ...EventOption ) HTMLAddress
OnDragEnd (h EventHandler , options ...EventOption ) HTMLAddress
OnDragEnter (h EventHandler , options ...EventOption ) HTMLAddress
OnDragLeave (h EventHandler , options ...EventOption ) HTMLAddress
OnDragOver (h EventHandler , options ...EventOption ) HTMLAddress
OnDragStart (h EventHandler , options ...EventOption ) HTMLAddress
OnDrop (h EventHandler , options ...EventOption ) HTMLAddress
OnFocus (h EventHandler , options ...EventOption ) HTMLAddress
OnInput (h EventHandler , options ...EventOption ) HTMLAddress
OnInvalid (h EventHandler , options ...EventOption ) HTMLAddress
OnKeyDown (h EventHandler , options ...EventOption ) HTMLAddress
OnKeyPress (h EventHandler , options ...EventOption ) HTMLAddress
OnKeyUp (h EventHandler , options ...EventOption ) HTMLAddress
OnMouseDown (h EventHandler , options ...EventOption ) HTMLAddress
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAddress
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAddress
OnMouseMove (h EventHandler , options ...EventOption ) HTMLAddress
OnMouseOut (h EventHandler , options ...EventOption ) HTMLAddress
OnMouseOver (h EventHandler , options ...EventOption ) HTMLAddress
OnMouseUp (h EventHandler , options ...EventOption ) HTMLAddress
OnPaste (h EventHandler , options ...EventOption ) HTMLAddress
OnReset (h EventHandler , options ...EventOption ) HTMLAddress
OnScroll (h EventHandler , options ...EventOption ) HTMLAddress
OnSearch (h EventHandler , options ...EventOption ) HTMLAddress
OnSelect (h EventHandler , options ...EventOption ) HTMLAddress
OnSubmit (h EventHandler , options ...EventOption ) HTMLAddress
OnWheel (h EventHandler , options ...EventOption ) HTMLAddress
}
func Address () HTMLAddress {
e := &htmlAddress {
htmlElement : htmlElement {
tag : "address" ,
isSelfClosing : false ,
},
}
return e
}
type htmlAddress struct {
htmlElement
}
func (e *htmlAddress ) Body (v ...UI ) HTMLAddress {
return e .setBody (FilterUIElems (v ...)).(*htmlAddress )
}
func (e *htmlAddress ) Text (v any ) HTMLAddress {
return e .Body (Text (v ))
}
func (e *htmlAddress ) Textf (format string , v ...any ) HTMLAddress {
return e .Body (Textf (format , v ...))
}
func (e *htmlAddress ) AccessKey (format string , v ...any ) HTMLAddress {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlAddress ) Aria (k string , v any ) HTMLAddress {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAddress ) Attr (n string , v any ) HTMLAddress {
e .setAttr (n , v )
return e
}
func (e *htmlAddress ) Class (v ...string ) HTMLAddress {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlAddress ) ContentEditable (v bool ) HTMLAddress {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlAddress ) DataSet (k string , v any ) HTMLAddress {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAddress ) DataSets (ds map [string ]any ) HTMLAddress {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlAddress ) Dir (format string , v ...any ) HTMLAddress {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlAddress ) Draggable (v bool ) HTMLAddress {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlAddress ) Hidden (v bool ) HTMLAddress {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlAddress ) ID (format string , v ...any ) HTMLAddress {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlAddress ) Lang (format string , v ...any ) HTMLAddress {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlAddress ) Role (format string , v ...any ) HTMLAddress {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlAddress ) Spellcheck (v bool ) HTMLAddress {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlAddress ) Style (k , format string , v ...any ) HTMLAddress {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlAddress ) Styles (s map [string ]string ) HTMLAddress {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlAddress ) TabIndex (v int ) HTMLAddress {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlAddress ) Title (format string , v ...any ) HTMLAddress {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlAddress ) On (event string , h EventHandler , options ...EventOption ) HTMLAddress {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlAddress ) OnBlur (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("blur" , h , options ...)
}
func (e *htmlAddress ) OnChange (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("change" , h , options ...)
}
func (e *htmlAddress ) OnClick (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("click" , h , options ...)
}
func (e *htmlAddress ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlAddress ) OnCopy (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("copy" , h , options ...)
}
func (e *htmlAddress ) OnCut (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("cut" , h , options ...)
}
func (e *htmlAddress ) OnDblClick (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlAddress ) OnDrag (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("drag" , h , options ...)
}
func (e *htmlAddress ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("dragend" , h , options ...)
}
func (e *htmlAddress ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlAddress ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlAddress ) OnDragOver (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("dragover" , h , options ...)
}
func (e *htmlAddress ) OnDragStart (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlAddress ) OnDrop (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("drop" , h , options ...)
}
func (e *htmlAddress ) OnFocus (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("focus" , h , options ...)
}
func (e *htmlAddress ) OnInput (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("input" , h , options ...)
}
func (e *htmlAddress ) OnInvalid (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("invalid" , h , options ...)
}
func (e *htmlAddress ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("keydown" , h , options ...)
}
func (e *htmlAddress ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("keypress" , h , options ...)
}
func (e *htmlAddress ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("keyup" , h , options ...)
}
func (e *htmlAddress ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlAddress ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlAddress ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlAddress ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlAddress ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlAddress ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlAddress ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlAddress ) OnPaste (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("paste" , h , options ...)
}
func (e *htmlAddress ) OnReset (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("reset" , h , options ...)
}
func (e *htmlAddress ) OnScroll (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("scroll" , h , options ...)
}
func (e *htmlAddress ) OnSearch (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("search" , h , options ...)
}
func (e *htmlAddress ) OnSelect (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("select" , h , options ...)
}
func (e *htmlAddress ) OnSubmit (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("submit" , h , options ...)
}
func (e *htmlAddress ) OnWheel (h EventHandler , options ...EventOption ) HTMLAddress {
return e .On ("wheel" , h , options ...)
}
func (e *htmlAddress ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlAddress ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlAddress ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlAddress ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlAddress ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlAddress ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLArea interface {
HTML
AccessKey (format string , v ...any ) HTMLArea
Alt (format string , v ...any ) HTMLArea
Aria (k string , v any ) HTMLArea
Attr (n string , v any ) HTMLArea
Class (v ...string ) HTMLArea
ContentEditable (v bool ) HTMLArea
Coords (format string , v ...any ) HTMLArea
DataSet (k string , v any ) HTMLArea
DataSets (ds map [string ]any ) HTMLArea
Dir (format string , v ...any ) HTMLArea
Download (format string , v ...any ) HTMLArea
Draggable (v bool ) HTMLArea
Hidden (v bool ) HTMLArea
Href (format string , v ...any ) HTMLArea
HrefLang (format string , v ...any ) HTMLArea
ID (format string , v ...any ) HTMLArea
Lang (format string , v ...any ) HTMLArea
Media (format string , v ...any ) HTMLArea
Rel (format string , v ...any ) HTMLArea
Role (format string , v ...any ) HTMLArea
Shape (format string , v ...any ) HTMLArea
Spellcheck (v bool ) HTMLArea
Style (k, format string , v ...any ) HTMLArea
Styles (s map [string ]string ) HTMLArea
TabIndex (v int ) HTMLArea
Target (format string , v ...any ) HTMLArea
Title (format string , v ...any ) HTMLArea
Type (format string , v ...any ) HTMLArea
On (event string , h EventHandler , options ...EventOption ) HTMLArea
OnBlur (h EventHandler , options ...EventOption ) HTMLArea
OnChange (h EventHandler , options ...EventOption ) HTMLArea
OnClick (h EventHandler , options ...EventOption ) HTMLArea
OnContextMenu (h EventHandler , options ...EventOption ) HTMLArea
OnCopy (h EventHandler , options ...EventOption ) HTMLArea
OnCut (h EventHandler , options ...EventOption ) HTMLArea
OnDblClick (h EventHandler , options ...EventOption ) HTMLArea
OnDrag (h EventHandler , options ...EventOption ) HTMLArea
OnDragEnd (h EventHandler , options ...EventOption ) HTMLArea
OnDragEnter (h EventHandler , options ...EventOption ) HTMLArea
OnDragLeave (h EventHandler , options ...EventOption ) HTMLArea
OnDragOver (h EventHandler , options ...EventOption ) HTMLArea
OnDragStart (h EventHandler , options ...EventOption ) HTMLArea
OnDrop (h EventHandler , options ...EventOption ) HTMLArea
OnFocus (h EventHandler , options ...EventOption ) HTMLArea
OnInput (h EventHandler , options ...EventOption ) HTMLArea
OnInvalid (h EventHandler , options ...EventOption ) HTMLArea
OnKeyDown (h EventHandler , options ...EventOption ) HTMLArea
OnKeyPress (h EventHandler , options ...EventOption ) HTMLArea
OnKeyUp (h EventHandler , options ...EventOption ) HTMLArea
OnMouseDown (h EventHandler , options ...EventOption ) HTMLArea
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLArea
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLArea
OnMouseMove (h EventHandler , options ...EventOption ) HTMLArea
OnMouseOut (h EventHandler , options ...EventOption ) HTMLArea
OnMouseOver (h EventHandler , options ...EventOption ) HTMLArea
OnMouseUp (h EventHandler , options ...EventOption ) HTMLArea
OnPaste (h EventHandler , options ...EventOption ) HTMLArea
OnReset (h EventHandler , options ...EventOption ) HTMLArea
OnScroll (h EventHandler , options ...EventOption ) HTMLArea
OnSearch (h EventHandler , options ...EventOption ) HTMLArea
OnSelect (h EventHandler , options ...EventOption ) HTMLArea
OnSubmit (h EventHandler , options ...EventOption ) HTMLArea
OnWheel (h EventHandler , options ...EventOption ) HTMLArea
}
func Area () HTMLArea {
e := &htmlArea {
htmlElement : htmlElement {
tag : "area" ,
isSelfClosing : true ,
},
}
return e
}
type htmlArea struct {
htmlElement
}
func (e *htmlArea ) AccessKey (format string , v ...any ) HTMLArea {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Alt (format string , v ...any ) HTMLArea {
e .setAttr ("alt" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Aria (k string , v any ) HTMLArea {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlArea ) Attr (n string , v any ) HTMLArea {
e .setAttr (n , v )
return e
}
func (e *htmlArea ) Class (v ...string ) HTMLArea {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlArea ) ContentEditable (v bool ) HTMLArea {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlArea ) Coords (format string , v ...any ) HTMLArea {
e .setAttr ("coords" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) DataSet (k string , v any ) HTMLArea {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlArea ) DataSets (ds map [string ]any ) HTMLArea {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlArea ) Dir (format string , v ...any ) HTMLArea {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Download (format string , v ...any ) HTMLArea {
e .setAttr ("download" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Draggable (v bool ) HTMLArea {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlArea ) Hidden (v bool ) HTMLArea {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlArea ) Href (format string , v ...any ) HTMLArea {
e .setAttr ("href" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) HrefLang (format string , v ...any ) HTMLArea {
e .setAttr ("hreflang" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) ID (format string , v ...any ) HTMLArea {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Lang (format string , v ...any ) HTMLArea {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Media (format string , v ...any ) HTMLArea {
e .setAttr ("media" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Rel (format string , v ...any ) HTMLArea {
e .setAttr ("rel" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Role (format string , v ...any ) HTMLArea {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Shape (format string , v ...any ) HTMLArea {
e .setAttr ("shape" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Spellcheck (v bool ) HTMLArea {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlArea ) Style (k , format string , v ...any ) HTMLArea {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlArea ) Styles (s map [string ]string ) HTMLArea {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlArea ) TabIndex (v int ) HTMLArea {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlArea ) Target (format string , v ...any ) HTMLArea {
e .setAttr ("target" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Title (format string , v ...any ) HTMLArea {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) Type (format string , v ...any ) HTMLArea {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlArea ) On (event string , h EventHandler , options ...EventOption ) HTMLArea {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlArea ) OnBlur (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("blur" , h , options ...)
}
func (e *htmlArea ) OnChange (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("change" , h , options ...)
}
func (e *htmlArea ) OnClick (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("click" , h , options ...)
}
func (e *htmlArea ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlArea ) OnCopy (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("copy" , h , options ...)
}
func (e *htmlArea ) OnCut (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("cut" , h , options ...)
}
func (e *htmlArea ) OnDblClick (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlArea ) OnDrag (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("drag" , h , options ...)
}
func (e *htmlArea ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("dragend" , h , options ...)
}
func (e *htmlArea ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlArea ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlArea ) OnDragOver (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("dragover" , h , options ...)
}
func (e *htmlArea ) OnDragStart (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlArea ) OnDrop (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("drop" , h , options ...)
}
func (e *htmlArea ) OnFocus (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("focus" , h , options ...)
}
func (e *htmlArea ) OnInput (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("input" , h , options ...)
}
func (e *htmlArea ) OnInvalid (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("invalid" , h , options ...)
}
func (e *htmlArea ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("keydown" , h , options ...)
}
func (e *htmlArea ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("keypress" , h , options ...)
}
func (e *htmlArea ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("keyup" , h , options ...)
}
func (e *htmlArea ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlArea ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlArea ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlArea ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlArea ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlArea ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlArea ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlArea ) OnPaste (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("paste" , h , options ...)
}
func (e *htmlArea ) OnReset (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("reset" , h , options ...)
}
func (e *htmlArea ) OnScroll (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("scroll" , h , options ...)
}
func (e *htmlArea ) OnSearch (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("search" , h , options ...)
}
func (e *htmlArea ) OnSelect (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("select" , h , options ...)
}
func (e *htmlArea ) OnSubmit (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("submit" , h , options ...)
}
func (e *htmlArea ) OnWheel (h EventHandler , options ...EventOption ) HTMLArea {
return e .On ("wheel" , h , options ...)
}
func (e *htmlArea ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlArea ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlArea ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlArea ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlArea ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlArea ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLArticle interface {
HTML
Body (elems ...UI ) HTMLArticle
Text (v any ) HTMLArticle
Textf (format string , v ...any ) HTMLArticle
AccessKey (format string , v ...any ) HTMLArticle
Aria (k string , v any ) HTMLArticle
Attr (n string , v any ) HTMLArticle
Class (v ...string ) HTMLArticle
ContentEditable (v bool ) HTMLArticle
DataSet (k string , v any ) HTMLArticle
DataSets (ds map [string ]any ) HTMLArticle
Dir (format string , v ...any ) HTMLArticle
Draggable (v bool ) HTMLArticle
Hidden (v bool ) HTMLArticle
ID (format string , v ...any ) HTMLArticle
Lang (format string , v ...any ) HTMLArticle
Role (format string , v ...any ) HTMLArticle
Spellcheck (v bool ) HTMLArticle
Style (k, format string , v ...any ) HTMLArticle
Styles (s map [string ]string ) HTMLArticle
TabIndex (v int ) HTMLArticle
Title (format string , v ...any ) HTMLArticle
On (event string , h EventHandler , options ...EventOption ) HTMLArticle
OnBlur (h EventHandler , options ...EventOption ) HTMLArticle
OnChange (h EventHandler , options ...EventOption ) HTMLArticle
OnClick (h EventHandler , options ...EventOption ) HTMLArticle
OnContextMenu (h EventHandler , options ...EventOption ) HTMLArticle
OnCopy (h EventHandler , options ...EventOption ) HTMLArticle
OnCut (h EventHandler , options ...EventOption ) HTMLArticle
OnDblClick (h EventHandler , options ...EventOption ) HTMLArticle
OnDrag (h EventHandler , options ...EventOption ) HTMLArticle
OnDragEnd (h EventHandler , options ...EventOption ) HTMLArticle
OnDragEnter (h EventHandler , options ...EventOption ) HTMLArticle
OnDragLeave (h EventHandler , options ...EventOption ) HTMLArticle
OnDragOver (h EventHandler , options ...EventOption ) HTMLArticle
OnDragStart (h EventHandler , options ...EventOption ) HTMLArticle
OnDrop (h EventHandler , options ...EventOption ) HTMLArticle
OnFocus (h EventHandler , options ...EventOption ) HTMLArticle
OnInput (h EventHandler , options ...EventOption ) HTMLArticle
OnInvalid (h EventHandler , options ...EventOption ) HTMLArticle
OnKeyDown (h EventHandler , options ...EventOption ) HTMLArticle
OnKeyPress (h EventHandler , options ...EventOption ) HTMLArticle
OnKeyUp (h EventHandler , options ...EventOption ) HTMLArticle
OnMouseDown (h EventHandler , options ...EventOption ) HTMLArticle
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLArticle
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLArticle
OnMouseMove (h EventHandler , options ...EventOption ) HTMLArticle
OnMouseOut (h EventHandler , options ...EventOption ) HTMLArticle
OnMouseOver (h EventHandler , options ...EventOption ) HTMLArticle
OnMouseUp (h EventHandler , options ...EventOption ) HTMLArticle
OnPaste (h EventHandler , options ...EventOption ) HTMLArticle
OnReset (h EventHandler , options ...EventOption ) HTMLArticle
OnScroll (h EventHandler , options ...EventOption ) HTMLArticle
OnSearch (h EventHandler , options ...EventOption ) HTMLArticle
OnSelect (h EventHandler , options ...EventOption ) HTMLArticle
OnSubmit (h EventHandler , options ...EventOption ) HTMLArticle
OnWheel (h EventHandler , options ...EventOption ) HTMLArticle
}
func Article () HTMLArticle {
e := &htmlArticle {
htmlElement : htmlElement {
tag : "article" ,
isSelfClosing : false ,
},
}
return e
}
type htmlArticle struct {
htmlElement
}
func (e *htmlArticle ) Body (v ...UI ) HTMLArticle {
return e .setBody (FilterUIElems (v ...)).(*htmlArticle )
}
func (e *htmlArticle ) Text (v any ) HTMLArticle {
return e .Body (Text (v ))
}
func (e *htmlArticle ) Textf (format string , v ...any ) HTMLArticle {
return e .Body (Textf (format , v ...))
}
func (e *htmlArticle ) AccessKey (format string , v ...any ) HTMLArticle {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlArticle ) Aria (k string , v any ) HTMLArticle {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlArticle ) Attr (n string , v any ) HTMLArticle {
e .setAttr (n , v )
return e
}
func (e *htmlArticle ) Class (v ...string ) HTMLArticle {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlArticle ) ContentEditable (v bool ) HTMLArticle {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlArticle ) DataSet (k string , v any ) HTMLArticle {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlArticle ) DataSets (ds map [string ]any ) HTMLArticle {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlArticle ) Dir (format string , v ...any ) HTMLArticle {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlArticle ) Draggable (v bool ) HTMLArticle {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlArticle ) Hidden (v bool ) HTMLArticle {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlArticle ) ID (format string , v ...any ) HTMLArticle {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlArticle ) Lang (format string , v ...any ) HTMLArticle {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlArticle ) Role (format string , v ...any ) HTMLArticle {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlArticle ) Spellcheck (v bool ) HTMLArticle {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlArticle ) Style (k , format string , v ...any ) HTMLArticle {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlArticle ) Styles (s map [string ]string ) HTMLArticle {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlArticle ) TabIndex (v int ) HTMLArticle {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlArticle ) Title (format string , v ...any ) HTMLArticle {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlArticle ) On (event string , h EventHandler , options ...EventOption ) HTMLArticle {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlArticle ) OnBlur (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("blur" , h , options ...)
}
func (e *htmlArticle ) OnChange (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("change" , h , options ...)
}
func (e *htmlArticle ) OnClick (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("click" , h , options ...)
}
func (e *htmlArticle ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlArticle ) OnCopy (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("copy" , h , options ...)
}
func (e *htmlArticle ) OnCut (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("cut" , h , options ...)
}
func (e *htmlArticle ) OnDblClick (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlArticle ) OnDrag (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("drag" , h , options ...)
}
func (e *htmlArticle ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("dragend" , h , options ...)
}
func (e *htmlArticle ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlArticle ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlArticle ) OnDragOver (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("dragover" , h , options ...)
}
func (e *htmlArticle ) OnDragStart (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlArticle ) OnDrop (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("drop" , h , options ...)
}
func (e *htmlArticle ) OnFocus (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("focus" , h , options ...)
}
func (e *htmlArticle ) OnInput (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("input" , h , options ...)
}
func (e *htmlArticle ) OnInvalid (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("invalid" , h , options ...)
}
func (e *htmlArticle ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("keydown" , h , options ...)
}
func (e *htmlArticle ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("keypress" , h , options ...)
}
func (e *htmlArticle ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("keyup" , h , options ...)
}
func (e *htmlArticle ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlArticle ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlArticle ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlArticle ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlArticle ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlArticle ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlArticle ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlArticle ) OnPaste (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("paste" , h , options ...)
}
func (e *htmlArticle ) OnReset (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("reset" , h , options ...)
}
func (e *htmlArticle ) OnScroll (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("scroll" , h , options ...)
}
func (e *htmlArticle ) OnSearch (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("search" , h , options ...)
}
func (e *htmlArticle ) OnSelect (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("select" , h , options ...)
}
func (e *htmlArticle ) OnSubmit (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("submit" , h , options ...)
}
func (e *htmlArticle ) OnWheel (h EventHandler , options ...EventOption ) HTMLArticle {
return e .On ("wheel" , h , options ...)
}
func (e *htmlArticle ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlArticle ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlArticle ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlArticle ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlArticle ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlArticle ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLAside interface {
HTML
Body (elems ...UI ) HTMLAside
Text (v any ) HTMLAside
Textf (format string , v ...any ) HTMLAside
AccessKey (format string , v ...any ) HTMLAside
Aria (k string , v any ) HTMLAside
Attr (n string , v any ) HTMLAside
Class (v ...string ) HTMLAside
ContentEditable (v bool ) HTMLAside
DataSet (k string , v any ) HTMLAside
DataSets (ds map [string ]any ) HTMLAside
Dir (format string , v ...any ) HTMLAside
Draggable (v bool ) HTMLAside
Hidden (v bool ) HTMLAside
ID (format string , v ...any ) HTMLAside
Lang (format string , v ...any ) HTMLAside
Role (format string , v ...any ) HTMLAside
Spellcheck (v bool ) HTMLAside
Style (k, format string , v ...any ) HTMLAside
Styles (s map [string ]string ) HTMLAside
TabIndex (v int ) HTMLAside
Title (format string , v ...any ) HTMLAside
On (event string , h EventHandler , options ...EventOption ) HTMLAside
OnBlur (h EventHandler , options ...EventOption ) HTMLAside
OnChange (h EventHandler , options ...EventOption ) HTMLAside
OnClick (h EventHandler , options ...EventOption ) HTMLAside
OnContextMenu (h EventHandler , options ...EventOption ) HTMLAside
OnCopy (h EventHandler , options ...EventOption ) HTMLAside
OnCut (h EventHandler , options ...EventOption ) HTMLAside
OnDblClick (h EventHandler , options ...EventOption ) HTMLAside
OnDrag (h EventHandler , options ...EventOption ) HTMLAside
OnDragEnd (h EventHandler , options ...EventOption ) HTMLAside
OnDragEnter (h EventHandler , options ...EventOption ) HTMLAside
OnDragLeave (h EventHandler , options ...EventOption ) HTMLAside
OnDragOver (h EventHandler , options ...EventOption ) HTMLAside
OnDragStart (h EventHandler , options ...EventOption ) HTMLAside
OnDrop (h EventHandler , options ...EventOption ) HTMLAside
OnFocus (h EventHandler , options ...EventOption ) HTMLAside
OnInput (h EventHandler , options ...EventOption ) HTMLAside
OnInvalid (h EventHandler , options ...EventOption ) HTMLAside
OnKeyDown (h EventHandler , options ...EventOption ) HTMLAside
OnKeyPress (h EventHandler , options ...EventOption ) HTMLAside
OnKeyUp (h EventHandler , options ...EventOption ) HTMLAside
OnMouseDown (h EventHandler , options ...EventOption ) HTMLAside
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAside
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAside
OnMouseMove (h EventHandler , options ...EventOption ) HTMLAside
OnMouseOut (h EventHandler , options ...EventOption ) HTMLAside
OnMouseOver (h EventHandler , options ...EventOption ) HTMLAside
OnMouseUp (h EventHandler , options ...EventOption ) HTMLAside
OnPaste (h EventHandler , options ...EventOption ) HTMLAside
OnReset (h EventHandler , options ...EventOption ) HTMLAside
OnScroll (h EventHandler , options ...EventOption ) HTMLAside
OnSearch (h EventHandler , options ...EventOption ) HTMLAside
OnSelect (h EventHandler , options ...EventOption ) HTMLAside
OnSubmit (h EventHandler , options ...EventOption ) HTMLAside
OnWheel (h EventHandler , options ...EventOption ) HTMLAside
}
func Aside () HTMLAside {
e := &htmlAside {
htmlElement : htmlElement {
tag : "aside" ,
isSelfClosing : false ,
},
}
return e
}
type htmlAside struct {
htmlElement
}
func (e *htmlAside ) Body (v ...UI ) HTMLAside {
return e .setBody (FilterUIElems (v ...)).(*htmlAside )
}
func (e *htmlAside ) Text (v any ) HTMLAside {
return e .Body (Text (v ))
}
func (e *htmlAside ) Textf (format string , v ...any ) HTMLAside {
return e .Body (Textf (format , v ...))
}
func (e *htmlAside ) AccessKey (format string , v ...any ) HTMLAside {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlAside ) Aria (k string , v any ) HTMLAside {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAside ) Attr (n string , v any ) HTMLAside {
e .setAttr (n , v )
return e
}
func (e *htmlAside ) Class (v ...string ) HTMLAside {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlAside ) ContentEditable (v bool ) HTMLAside {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlAside ) DataSet (k string , v any ) HTMLAside {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAside ) DataSets (ds map [string ]any ) HTMLAside {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlAside ) Dir (format string , v ...any ) HTMLAside {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlAside ) Draggable (v bool ) HTMLAside {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlAside ) Hidden (v bool ) HTMLAside {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlAside ) ID (format string , v ...any ) HTMLAside {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlAside ) Lang (format string , v ...any ) HTMLAside {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlAside ) Role (format string , v ...any ) HTMLAside {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlAside ) Spellcheck (v bool ) HTMLAside {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlAside ) Style (k , format string , v ...any ) HTMLAside {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlAside ) Styles (s map [string ]string ) HTMLAside {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlAside ) TabIndex (v int ) HTMLAside {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlAside ) Title (format string , v ...any ) HTMLAside {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlAside ) On (event string , h EventHandler , options ...EventOption ) HTMLAside {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlAside ) OnBlur (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("blur" , h , options ...)
}
func (e *htmlAside ) OnChange (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("change" , h , options ...)
}
func (e *htmlAside ) OnClick (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("click" , h , options ...)
}
func (e *htmlAside ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlAside ) OnCopy (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("copy" , h , options ...)
}
func (e *htmlAside ) OnCut (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("cut" , h , options ...)
}
func (e *htmlAside ) OnDblClick (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlAside ) OnDrag (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("drag" , h , options ...)
}
func (e *htmlAside ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("dragend" , h , options ...)
}
func (e *htmlAside ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlAside ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlAside ) OnDragOver (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("dragover" , h , options ...)
}
func (e *htmlAside ) OnDragStart (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlAside ) OnDrop (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("drop" , h , options ...)
}
func (e *htmlAside ) OnFocus (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("focus" , h , options ...)
}
func (e *htmlAside ) OnInput (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("input" , h , options ...)
}
func (e *htmlAside ) OnInvalid (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("invalid" , h , options ...)
}
func (e *htmlAside ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("keydown" , h , options ...)
}
func (e *htmlAside ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("keypress" , h , options ...)
}
func (e *htmlAside ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("keyup" , h , options ...)
}
func (e *htmlAside ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlAside ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlAside ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlAside ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlAside ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlAside ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlAside ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlAside ) OnPaste (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("paste" , h , options ...)
}
func (e *htmlAside ) OnReset (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("reset" , h , options ...)
}
func (e *htmlAside ) OnScroll (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("scroll" , h , options ...)
}
func (e *htmlAside ) OnSearch (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("search" , h , options ...)
}
func (e *htmlAside ) OnSelect (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("select" , h , options ...)
}
func (e *htmlAside ) OnSubmit (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("submit" , h , options ...)
}
func (e *htmlAside ) OnWheel (h EventHandler , options ...EventOption ) HTMLAside {
return e .On ("wheel" , h , options ...)
}
func (e *htmlAside ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlAside ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlAside ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlAside ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlAside ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlAside ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLAudio interface {
HTML
Body (elems ...UI ) HTMLAudio
Text (v any ) HTMLAudio
Textf (format string , v ...any ) HTMLAudio
AccessKey (format string , v ...any ) HTMLAudio
Aria (k string , v any ) HTMLAudio
Attr (n string , v any ) HTMLAudio
AutoPlay (v bool ) HTMLAudio
Class (v ...string ) HTMLAudio
ContentEditable (v bool ) HTMLAudio
Controls (v bool ) HTMLAudio
CrossOrigin (format string , v ...any ) HTMLAudio
DataSet (k string , v any ) HTMLAudio
DataSets (ds map [string ]any ) HTMLAudio
Dir (format string , v ...any ) HTMLAudio
Draggable (v bool ) HTMLAudio
Hidden (v bool ) HTMLAudio
ID (format string , v ...any ) HTMLAudio
Lang (format string , v ...any ) HTMLAudio
Loop (v bool ) HTMLAudio
Muted (v bool ) HTMLAudio
Preload (format string , v ...any ) HTMLAudio
Role (format string , v ...any ) HTMLAudio
Spellcheck (v bool ) HTMLAudio
Src (format string , v ...any ) HTMLAudio
Style (k, format string , v ...any ) HTMLAudio
Styles (s map [string ]string ) HTMLAudio
TabIndex (v int ) HTMLAudio
Title (format string , v ...any ) HTMLAudio
On (event string , h EventHandler , options ...EventOption ) HTMLAudio
OnAbort (h EventHandler , options ...EventOption ) HTMLAudio
OnBlur (h EventHandler , options ...EventOption ) HTMLAudio
OnCanPlay (h EventHandler , options ...EventOption ) HTMLAudio
OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLAudio
OnChange (h EventHandler , options ...EventOption ) HTMLAudio
OnClick (h EventHandler , options ...EventOption ) HTMLAudio
OnContextMenu (h EventHandler , options ...EventOption ) HTMLAudio
OnCopy (h EventHandler , options ...EventOption ) HTMLAudio
OnCueChange (h EventHandler , options ...EventOption ) HTMLAudio
OnCut (h EventHandler , options ...EventOption ) HTMLAudio
OnDblClick (h EventHandler , options ...EventOption ) HTMLAudio
OnDrag (h EventHandler , options ...EventOption ) HTMLAudio
OnDragEnd (h EventHandler , options ...EventOption ) HTMLAudio
OnDragEnter (h EventHandler , options ...EventOption ) HTMLAudio
OnDragLeave (h EventHandler , options ...EventOption ) HTMLAudio
OnDragOver (h EventHandler , options ...EventOption ) HTMLAudio
OnDragStart (h EventHandler , options ...EventOption ) HTMLAudio
OnDrop (h EventHandler , options ...EventOption ) HTMLAudio
OnDurationChange (h EventHandler , options ...EventOption ) HTMLAudio
OnEmptied (h EventHandler , options ...EventOption ) HTMLAudio
OnEnded (h EventHandler , options ...EventOption ) HTMLAudio
OnError (h EventHandler , options ...EventOption ) HTMLAudio
OnFocus (h EventHandler , options ...EventOption ) HTMLAudio
OnInput (h EventHandler , options ...EventOption ) HTMLAudio
OnInvalid (h EventHandler , options ...EventOption ) HTMLAudio
OnKeyDown (h EventHandler , options ...EventOption ) HTMLAudio
OnKeyPress (h EventHandler , options ...EventOption ) HTMLAudio
OnKeyUp (h EventHandler , options ...EventOption ) HTMLAudio
OnLoadStart (h EventHandler , options ...EventOption ) HTMLAudio
OnLoadedData (h EventHandler , options ...EventOption ) HTMLAudio
OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLAudio
OnMouseDown (h EventHandler , options ...EventOption ) HTMLAudio
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAudio
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAudio
OnMouseMove (h EventHandler , options ...EventOption ) HTMLAudio
OnMouseOut (h EventHandler , options ...EventOption ) HTMLAudio
OnMouseOver (h EventHandler , options ...EventOption ) HTMLAudio
OnMouseUp (h EventHandler , options ...EventOption ) HTMLAudio
OnPaste (h EventHandler , options ...EventOption ) HTMLAudio
OnPause (h EventHandler , options ...EventOption ) HTMLAudio
OnPlay (h EventHandler , options ...EventOption ) HTMLAudio
OnPlaying (h EventHandler , options ...EventOption ) HTMLAudio
OnProgress (h EventHandler , options ...EventOption ) HTMLAudio
OnRateChange (h EventHandler , options ...EventOption ) HTMLAudio
OnReset (h EventHandler , options ...EventOption ) HTMLAudio
OnScroll (h EventHandler , options ...EventOption ) HTMLAudio
OnSearch (h EventHandler , options ...EventOption ) HTMLAudio
OnSeeked (h EventHandler , options ...EventOption ) HTMLAudio
OnSeeking (h EventHandler , options ...EventOption ) HTMLAudio
OnSelect (h EventHandler , options ...EventOption ) HTMLAudio
OnStalled (h EventHandler , options ...EventOption ) HTMLAudio
OnSubmit (h EventHandler , options ...EventOption ) HTMLAudio
OnSuspend (h EventHandler , options ...EventOption ) HTMLAudio
OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLAudio
OnVolumeChange (h EventHandler , options ...EventOption ) HTMLAudio
OnWaiting (h EventHandler , options ...EventOption ) HTMLAudio
OnWheel (h EventHandler , options ...EventOption ) HTMLAudio
}
func Audio () HTMLAudio {
e := &htmlAudio {
htmlElement : htmlElement {
tag : "audio" ,
isSelfClosing : false ,
},
}
return e
}
type htmlAudio struct {
htmlElement
}
func (e *htmlAudio ) Body (v ...UI ) HTMLAudio {
return e .setBody (FilterUIElems (v ...)).(*htmlAudio )
}
func (e *htmlAudio ) Text (v any ) HTMLAudio {
return e .Body (Text (v ))
}
func (e *htmlAudio ) Textf (format string , v ...any ) HTMLAudio {
return e .Body (Textf (format , v ...))
}
func (e *htmlAudio ) AccessKey (format string , v ...any ) HTMLAudio {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Aria (k string , v any ) HTMLAudio {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAudio ) Attr (n string , v any ) HTMLAudio {
e .setAttr (n , v )
return e
}
func (e *htmlAudio ) AutoPlay (v bool ) HTMLAudio {
e .setAttr ("autoplay" , v )
return e
}
func (e *htmlAudio ) Class (v ...string ) HTMLAudio {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlAudio ) ContentEditable (v bool ) HTMLAudio {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlAudio ) Controls (v bool ) HTMLAudio {
e .setAttr ("controls" , v )
return e
}
func (e *htmlAudio ) CrossOrigin (format string , v ...any ) HTMLAudio {
e .setAttr ("crossorigin" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) DataSet (k string , v any ) HTMLAudio {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlAudio ) DataSets (ds map [string ]any ) HTMLAudio {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlAudio ) Dir (format string , v ...any ) HTMLAudio {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Draggable (v bool ) HTMLAudio {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlAudio ) Hidden (v bool ) HTMLAudio {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlAudio ) ID (format string , v ...any ) HTMLAudio {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Lang (format string , v ...any ) HTMLAudio {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Loop (v bool ) HTMLAudio {
e .setAttr ("loop" , v )
return e
}
func (e *htmlAudio ) Muted (v bool ) HTMLAudio {
e .setAttr ("muted" , v )
return e
}
func (e *htmlAudio ) Preload (format string , v ...any ) HTMLAudio {
e .setAttr ("preload" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Role (format string , v ...any ) HTMLAudio {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Spellcheck (v bool ) HTMLAudio {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlAudio ) Src (format string , v ...any ) HTMLAudio {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Style (k , format string , v ...any ) HTMLAudio {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlAudio ) Styles (s map [string ]string ) HTMLAudio {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlAudio ) TabIndex (v int ) HTMLAudio {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlAudio ) Title (format string , v ...any ) HTMLAudio {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlAudio ) On (event string , h EventHandler , options ...EventOption ) HTMLAudio {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlAudio ) OnAbort (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("abort" , h , options ...)
}
func (e *htmlAudio ) OnBlur (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("blur" , h , options ...)
}
func (e *htmlAudio ) OnCanPlay (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("canplay" , h , options ...)
}
func (e *htmlAudio ) OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("canplaythrough" , h , options ...)
}
func (e *htmlAudio ) OnChange (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("change" , h , options ...)
}
func (e *htmlAudio ) OnClick (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("click" , h , options ...)
}
func (e *htmlAudio ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlAudio ) OnCopy (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("copy" , h , options ...)
}
func (e *htmlAudio ) OnCueChange (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("cuechange" , h , options ...)
}
func (e *htmlAudio ) OnCut (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("cut" , h , options ...)
}
func (e *htmlAudio ) OnDblClick (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlAudio ) OnDrag (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("drag" , h , options ...)
}
func (e *htmlAudio ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("dragend" , h , options ...)
}
func (e *htmlAudio ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlAudio ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlAudio ) OnDragOver (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("dragover" , h , options ...)
}
func (e *htmlAudio ) OnDragStart (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlAudio ) OnDrop (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("drop" , h , options ...)
}
func (e *htmlAudio ) OnDurationChange (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("durationchange" , h , options ...)
}
func (e *htmlAudio ) OnEmptied (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("emptied" , h , options ...)
}
func (e *htmlAudio ) OnEnded (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("ended" , h , options ...)
}
func (e *htmlAudio ) OnError (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("error" , h , options ...)
}
func (e *htmlAudio ) OnFocus (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("focus" , h , options ...)
}
func (e *htmlAudio ) OnInput (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("input" , h , options ...)
}
func (e *htmlAudio ) OnInvalid (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("invalid" , h , options ...)
}
func (e *htmlAudio ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("keydown" , h , options ...)
}
func (e *htmlAudio ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("keypress" , h , options ...)
}
func (e *htmlAudio ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("keyup" , h , options ...)
}
func (e *htmlAudio ) OnLoadStart (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("loadstart" , h , options ...)
}
func (e *htmlAudio ) OnLoadedData (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("loadeddata" , h , options ...)
}
func (e *htmlAudio ) OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("loadedmetadata" , h , options ...)
}
func (e *htmlAudio ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlAudio ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlAudio ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlAudio ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlAudio ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlAudio ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlAudio ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlAudio ) OnPaste (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("paste" , h , options ...)
}
func (e *htmlAudio ) OnPause (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("pause" , h , options ...)
}
func (e *htmlAudio ) OnPlay (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("play" , h , options ...)
}
func (e *htmlAudio ) OnPlaying (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("playing" , h , options ...)
}
func (e *htmlAudio ) OnProgress (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("progress" , h , options ...)
}
func (e *htmlAudio ) OnRateChange (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("ratechange" , h , options ...)
}
func (e *htmlAudio ) OnReset (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("reset" , h , options ...)
}
func (e *htmlAudio ) OnScroll (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("scroll" , h , options ...)
}
func (e *htmlAudio ) OnSearch (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("search" , h , options ...)
}
func (e *htmlAudio ) OnSeeked (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("seeked" , h , options ...)
}
func (e *htmlAudio ) OnSeeking (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("seeking" , h , options ...)
}
func (e *htmlAudio ) OnSelect (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("select" , h , options ...)
}
func (e *htmlAudio ) OnStalled (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("stalled" , h , options ...)
}
func (e *htmlAudio ) OnSubmit (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("submit" , h , options ...)
}
func (e *htmlAudio ) OnSuspend (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("suspend" , h , options ...)
}
func (e *htmlAudio ) OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("timeupdate" , h , options ...)
}
func (e *htmlAudio ) OnVolumeChange (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("volumechange" , h , options ...)
}
func (e *htmlAudio ) OnWaiting (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("waiting" , h , options ...)
}
func (e *htmlAudio ) OnWheel (h EventHandler , options ...EventOption ) HTMLAudio {
return e .On ("wheel" , h , options ...)
}
func (e *htmlAudio ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlAudio ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlAudio ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlAudio ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlAudio ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlAudio ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLB interface {
HTML
Body (elems ...UI ) HTMLB
Text (v any ) HTMLB
Textf (format string , v ...any ) HTMLB
AccessKey (format string , v ...any ) HTMLB
Aria (k string , v any ) HTMLB
Attr (n string , v any ) HTMLB
Class (v ...string ) HTMLB
ContentEditable (v bool ) HTMLB
DataSet (k string , v any ) HTMLB
DataSets (ds map [string ]any ) HTMLB
Dir (format string , v ...any ) HTMLB
Draggable (v bool ) HTMLB
Hidden (v bool ) HTMLB
ID (format string , v ...any ) HTMLB
Lang (format string , v ...any ) HTMLB
Role (format string , v ...any ) HTMLB
Spellcheck (v bool ) HTMLB
Style (k, format string , v ...any ) HTMLB
Styles (s map [string ]string ) HTMLB
TabIndex (v int ) HTMLB
Title (format string , v ...any ) HTMLB
On (event string , h EventHandler , options ...EventOption ) HTMLB
OnBlur (h EventHandler , options ...EventOption ) HTMLB
OnChange (h EventHandler , options ...EventOption ) HTMLB
OnClick (h EventHandler , options ...EventOption ) HTMLB
OnContextMenu (h EventHandler , options ...EventOption ) HTMLB
OnCopy (h EventHandler , options ...EventOption ) HTMLB
OnCut (h EventHandler , options ...EventOption ) HTMLB
OnDblClick (h EventHandler , options ...EventOption ) HTMLB
OnDrag (h EventHandler , options ...EventOption ) HTMLB
OnDragEnd (h EventHandler , options ...EventOption ) HTMLB
OnDragEnter (h EventHandler , options ...EventOption ) HTMLB
OnDragLeave (h EventHandler , options ...EventOption ) HTMLB
OnDragOver (h EventHandler , options ...EventOption ) HTMLB
OnDragStart (h EventHandler , options ...EventOption ) HTMLB
OnDrop (h EventHandler , options ...EventOption ) HTMLB
OnFocus (h EventHandler , options ...EventOption ) HTMLB
OnInput (h EventHandler , options ...EventOption ) HTMLB
OnInvalid (h EventHandler , options ...EventOption ) HTMLB
OnKeyDown (h EventHandler , options ...EventOption ) HTMLB
OnKeyPress (h EventHandler , options ...EventOption ) HTMLB
OnKeyUp (h EventHandler , options ...EventOption ) HTMLB
OnMouseDown (h EventHandler , options ...EventOption ) HTMLB
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLB
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLB
OnMouseMove (h EventHandler , options ...EventOption ) HTMLB
OnMouseOut (h EventHandler , options ...EventOption ) HTMLB
OnMouseOver (h EventHandler , options ...EventOption ) HTMLB
OnMouseUp (h EventHandler , options ...EventOption ) HTMLB
OnPaste (h EventHandler , options ...EventOption ) HTMLB
OnReset (h EventHandler , options ...EventOption ) HTMLB
OnScroll (h EventHandler , options ...EventOption ) HTMLB
OnSearch (h EventHandler , options ...EventOption ) HTMLB
OnSelect (h EventHandler , options ...EventOption ) HTMLB
OnSubmit (h EventHandler , options ...EventOption ) HTMLB
OnWheel (h EventHandler , options ...EventOption ) HTMLB
}
func B () HTMLB {
e := &htmlB {
htmlElement : htmlElement {
tag : "b" ,
isSelfClosing : false ,
},
}
return e
}
type htmlB struct {
htmlElement
}
func (e *htmlB ) Body (v ...UI ) HTMLB {
return e .setBody (FilterUIElems (v ...)).(*htmlB )
}
func (e *htmlB ) Text (v any ) HTMLB {
return e .Body (Text (v ))
}
func (e *htmlB ) Textf (format string , v ...any ) HTMLB {
return e .Body (Textf (format , v ...))
}
func (e *htmlB ) AccessKey (format string , v ...any ) HTMLB {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlB ) Aria (k string , v any ) HTMLB {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlB ) Attr (n string , v any ) HTMLB {
e .setAttr (n , v )
return e
}
func (e *htmlB ) Class (v ...string ) HTMLB {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlB ) ContentEditable (v bool ) HTMLB {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlB ) DataSet (k string , v any ) HTMLB {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlB ) DataSets (ds map [string ]any ) HTMLB {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlB ) Dir (format string , v ...any ) HTMLB {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlB ) Draggable (v bool ) HTMLB {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlB ) Hidden (v bool ) HTMLB {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlB ) ID (format string , v ...any ) HTMLB {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlB ) Lang (format string , v ...any ) HTMLB {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlB ) Role (format string , v ...any ) HTMLB {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlB ) Spellcheck (v bool ) HTMLB {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlB ) Style (k , format string , v ...any ) HTMLB {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlB ) Styles (s map [string ]string ) HTMLB {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlB ) TabIndex (v int ) HTMLB {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlB ) Title (format string , v ...any ) HTMLB {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlB ) On (event string , h EventHandler , options ...EventOption ) HTMLB {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlB ) OnBlur (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("blur" , h , options ...)
}
func (e *htmlB ) OnChange (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("change" , h , options ...)
}
func (e *htmlB ) OnClick (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("click" , h , options ...)
}
func (e *htmlB ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlB ) OnCopy (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("copy" , h , options ...)
}
func (e *htmlB ) OnCut (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("cut" , h , options ...)
}
func (e *htmlB ) OnDblClick (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlB ) OnDrag (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("drag" , h , options ...)
}
func (e *htmlB ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("dragend" , h , options ...)
}
func (e *htmlB ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlB ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlB ) OnDragOver (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("dragover" , h , options ...)
}
func (e *htmlB ) OnDragStart (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlB ) OnDrop (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("drop" , h , options ...)
}
func (e *htmlB ) OnFocus (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("focus" , h , options ...)
}
func (e *htmlB ) OnInput (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("input" , h , options ...)
}
func (e *htmlB ) OnInvalid (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("invalid" , h , options ...)
}
func (e *htmlB ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("keydown" , h , options ...)
}
func (e *htmlB ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("keypress" , h , options ...)
}
func (e *htmlB ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("keyup" , h , options ...)
}
func (e *htmlB ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlB ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlB ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlB ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlB ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlB ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlB ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlB ) OnPaste (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("paste" , h , options ...)
}
func (e *htmlB ) OnReset (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("reset" , h , options ...)
}
func (e *htmlB ) OnScroll (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("scroll" , h , options ...)
}
func (e *htmlB ) OnSearch (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("search" , h , options ...)
}
func (e *htmlB ) OnSelect (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("select" , h , options ...)
}
func (e *htmlB ) OnSubmit (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("submit" , h , options ...)
}
func (e *htmlB ) OnWheel (h EventHandler , options ...EventOption ) HTMLB {
return e .On ("wheel" , h , options ...)
}
func (e *htmlB ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlB ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlB ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlB ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlB ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlB ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLBase interface {
HTML
AccessKey (format string , v ...any ) HTMLBase
Aria (k string , v any ) HTMLBase
Attr (n string , v any ) HTMLBase
Class (v ...string ) HTMLBase
ContentEditable (v bool ) HTMLBase
DataSet (k string , v any ) HTMLBase
DataSets (ds map [string ]any ) HTMLBase
Dir (format string , v ...any ) HTMLBase
Draggable (v bool ) HTMLBase
Hidden (v bool ) HTMLBase
Href (format string , v ...any ) HTMLBase
ID (format string , v ...any ) HTMLBase
Lang (format string , v ...any ) HTMLBase
Role (format string , v ...any ) HTMLBase
Spellcheck (v bool ) HTMLBase
Style (k, format string , v ...any ) HTMLBase
Styles (s map [string ]string ) HTMLBase
TabIndex (v int ) HTMLBase
Target (format string , v ...any ) HTMLBase
Title (format string , v ...any ) HTMLBase
On (event string , h EventHandler , options ...EventOption ) HTMLBase
OnBlur (h EventHandler , options ...EventOption ) HTMLBase
OnChange (h EventHandler , options ...EventOption ) HTMLBase
OnClick (h EventHandler , options ...EventOption ) HTMLBase
OnContextMenu (h EventHandler , options ...EventOption ) HTMLBase
OnCopy (h EventHandler , options ...EventOption ) HTMLBase
OnCut (h EventHandler , options ...EventOption ) HTMLBase
OnDblClick (h EventHandler , options ...EventOption ) HTMLBase
OnDrag (h EventHandler , options ...EventOption ) HTMLBase
OnDragEnd (h EventHandler , options ...EventOption ) HTMLBase
OnDragEnter (h EventHandler , options ...EventOption ) HTMLBase
OnDragLeave (h EventHandler , options ...EventOption ) HTMLBase
OnDragOver (h EventHandler , options ...EventOption ) HTMLBase
OnDragStart (h EventHandler , options ...EventOption ) HTMLBase
OnDrop (h EventHandler , options ...EventOption ) HTMLBase
OnFocus (h EventHandler , options ...EventOption ) HTMLBase
OnInput (h EventHandler , options ...EventOption ) HTMLBase
OnInvalid (h EventHandler , options ...EventOption ) HTMLBase
OnKeyDown (h EventHandler , options ...EventOption ) HTMLBase
OnKeyPress (h EventHandler , options ...EventOption ) HTMLBase
OnKeyUp (h EventHandler , options ...EventOption ) HTMLBase
OnMouseDown (h EventHandler , options ...EventOption ) HTMLBase
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBase
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBase
OnMouseMove (h EventHandler , options ...EventOption ) HTMLBase
OnMouseOut (h EventHandler , options ...EventOption ) HTMLBase
OnMouseOver (h EventHandler , options ...EventOption ) HTMLBase
OnMouseUp (h EventHandler , options ...EventOption ) HTMLBase
OnPaste (h EventHandler , options ...EventOption ) HTMLBase
OnReset (h EventHandler , options ...EventOption ) HTMLBase
OnScroll (h EventHandler , options ...EventOption ) HTMLBase
OnSearch (h EventHandler , options ...EventOption ) HTMLBase
OnSelect (h EventHandler , options ...EventOption ) HTMLBase
OnSubmit (h EventHandler , options ...EventOption ) HTMLBase
OnWheel (h EventHandler , options ...EventOption ) HTMLBase
}
func Base () HTMLBase {
e := &htmlBase {
htmlElement : htmlElement {
tag : "base" ,
isSelfClosing : true ,
},
}
return e
}
type htmlBase struct {
htmlElement
}
func (e *htmlBase ) AccessKey (format string , v ...any ) HTMLBase {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) Aria (k string , v any ) HTMLBase {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBase ) Attr (n string , v any ) HTMLBase {
e .setAttr (n , v )
return e
}
func (e *htmlBase ) Class (v ...string ) HTMLBase {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlBase ) ContentEditable (v bool ) HTMLBase {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlBase ) DataSet (k string , v any ) HTMLBase {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBase ) DataSets (ds map [string ]any ) HTMLBase {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlBase ) Dir (format string , v ...any ) HTMLBase {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) Draggable (v bool ) HTMLBase {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlBase ) Hidden (v bool ) HTMLBase {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlBase ) Href (format string , v ...any ) HTMLBase {
e .setAttr ("href" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) ID (format string , v ...any ) HTMLBase {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) Lang (format string , v ...any ) HTMLBase {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) Role (format string , v ...any ) HTMLBase {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) Spellcheck (v bool ) HTMLBase {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlBase ) Style (k , format string , v ...any ) HTMLBase {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlBase ) Styles (s map [string ]string ) HTMLBase {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlBase ) TabIndex (v int ) HTMLBase {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlBase ) Target (format string , v ...any ) HTMLBase {
e .setAttr ("target" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) Title (format string , v ...any ) HTMLBase {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlBase ) On (event string , h EventHandler , options ...EventOption ) HTMLBase {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlBase ) OnBlur (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("blur" , h , options ...)
}
func (e *htmlBase ) OnChange (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("change" , h , options ...)
}
func (e *htmlBase ) OnClick (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("click" , h , options ...)
}
func (e *htmlBase ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlBase ) OnCopy (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("copy" , h , options ...)
}
func (e *htmlBase ) OnCut (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("cut" , h , options ...)
}
func (e *htmlBase ) OnDblClick (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlBase ) OnDrag (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("drag" , h , options ...)
}
func (e *htmlBase ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("dragend" , h , options ...)
}
func (e *htmlBase ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlBase ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlBase ) OnDragOver (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("dragover" , h , options ...)
}
func (e *htmlBase ) OnDragStart (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlBase ) OnDrop (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("drop" , h , options ...)
}
func (e *htmlBase ) OnFocus (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("focus" , h , options ...)
}
func (e *htmlBase ) OnInput (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("input" , h , options ...)
}
func (e *htmlBase ) OnInvalid (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("invalid" , h , options ...)
}
func (e *htmlBase ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("keydown" , h , options ...)
}
func (e *htmlBase ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("keypress" , h , options ...)
}
func (e *htmlBase ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("keyup" , h , options ...)
}
func (e *htmlBase ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlBase ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlBase ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlBase ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlBase ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlBase ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlBase ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlBase ) OnPaste (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("paste" , h , options ...)
}
func (e *htmlBase ) OnReset (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("reset" , h , options ...)
}
func (e *htmlBase ) OnScroll (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("scroll" , h , options ...)
}
func (e *htmlBase ) OnSearch (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("search" , h , options ...)
}
func (e *htmlBase ) OnSelect (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("select" , h , options ...)
}
func (e *htmlBase ) OnSubmit (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("submit" , h , options ...)
}
func (e *htmlBase ) OnWheel (h EventHandler , options ...EventOption ) HTMLBase {
return e .On ("wheel" , h , options ...)
}
func (e *htmlBase ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlBase ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlBase ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlBase ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlBase ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlBase ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLBdi interface {
HTML
Body (elems ...UI ) HTMLBdi
Text (v any ) HTMLBdi
Textf (format string , v ...any ) HTMLBdi
AccessKey (format string , v ...any ) HTMLBdi
Aria (k string , v any ) HTMLBdi
Attr (n string , v any ) HTMLBdi
Class (v ...string ) HTMLBdi
ContentEditable (v bool ) HTMLBdi
DataSet (k string , v any ) HTMLBdi
DataSets (ds map [string ]any ) HTMLBdi
Dir (format string , v ...any ) HTMLBdi
Draggable (v bool ) HTMLBdi
Hidden (v bool ) HTMLBdi
ID (format string , v ...any ) HTMLBdi
Lang (format string , v ...any ) HTMLBdi
Role (format string , v ...any ) HTMLBdi
Spellcheck (v bool ) HTMLBdi
Style (k, format string , v ...any ) HTMLBdi
Styles (s map [string ]string ) HTMLBdi
TabIndex (v int ) HTMLBdi
Title (format string , v ...any ) HTMLBdi
On (event string , h EventHandler , options ...EventOption ) HTMLBdi
OnBlur (h EventHandler , options ...EventOption ) HTMLBdi
OnChange (h EventHandler , options ...EventOption ) HTMLBdi
OnClick (h EventHandler , options ...EventOption ) HTMLBdi
OnContextMenu (h EventHandler , options ...EventOption ) HTMLBdi
OnCopy (h EventHandler , options ...EventOption ) HTMLBdi
OnCut (h EventHandler , options ...EventOption ) HTMLBdi
OnDblClick (h EventHandler , options ...EventOption ) HTMLBdi
OnDrag (h EventHandler , options ...EventOption ) HTMLBdi
OnDragEnd (h EventHandler , options ...EventOption ) HTMLBdi
OnDragEnter (h EventHandler , options ...EventOption ) HTMLBdi
OnDragLeave (h EventHandler , options ...EventOption ) HTMLBdi
OnDragOver (h EventHandler , options ...EventOption ) HTMLBdi
OnDragStart (h EventHandler , options ...EventOption ) HTMLBdi
OnDrop (h EventHandler , options ...EventOption ) HTMLBdi
OnFocus (h EventHandler , options ...EventOption ) HTMLBdi
OnInput (h EventHandler , options ...EventOption ) HTMLBdi
OnInvalid (h EventHandler , options ...EventOption ) HTMLBdi
OnKeyDown (h EventHandler , options ...EventOption ) HTMLBdi
OnKeyPress (h EventHandler , options ...EventOption ) HTMLBdi
OnKeyUp (h EventHandler , options ...EventOption ) HTMLBdi
OnMouseDown (h EventHandler , options ...EventOption ) HTMLBdi
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBdi
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBdi
OnMouseMove (h EventHandler , options ...EventOption ) HTMLBdi
OnMouseOut (h EventHandler , options ...EventOption ) HTMLBdi
OnMouseOver (h EventHandler , options ...EventOption ) HTMLBdi
OnMouseUp (h EventHandler , options ...EventOption ) HTMLBdi
OnPaste (h EventHandler , options ...EventOption ) HTMLBdi
OnReset (h EventHandler , options ...EventOption ) HTMLBdi
OnScroll (h EventHandler , options ...EventOption ) HTMLBdi
OnSearch (h EventHandler , options ...EventOption ) HTMLBdi
OnSelect (h EventHandler , options ...EventOption ) HTMLBdi
OnSubmit (h EventHandler , options ...EventOption ) HTMLBdi
OnWheel (h EventHandler , options ...EventOption ) HTMLBdi
}
func Bdi () HTMLBdi {
e := &htmlBdi {
htmlElement : htmlElement {
tag : "bdi" ,
isSelfClosing : false ,
},
}
return e
}
type htmlBdi struct {
htmlElement
}
func (e *htmlBdi ) Body (v ...UI ) HTMLBdi {
return e .setBody (FilterUIElems (v ...)).(*htmlBdi )
}
func (e *htmlBdi ) Text (v any ) HTMLBdi {
return e .Body (Text (v ))
}
func (e *htmlBdi ) Textf (format string , v ...any ) HTMLBdi {
return e .Body (Textf (format , v ...))
}
func (e *htmlBdi ) AccessKey (format string , v ...any ) HTMLBdi {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlBdi ) Aria (k string , v any ) HTMLBdi {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBdi ) Attr (n string , v any ) HTMLBdi {
e .setAttr (n , v )
return e
}
func (e *htmlBdi ) Class (v ...string ) HTMLBdi {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlBdi ) ContentEditable (v bool ) HTMLBdi {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlBdi ) DataSet (k string , v any ) HTMLBdi {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBdi ) DataSets (ds map [string ]any ) HTMLBdi {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlBdi ) Dir (format string , v ...any ) HTMLBdi {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlBdi ) Draggable (v bool ) HTMLBdi {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlBdi ) Hidden (v bool ) HTMLBdi {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlBdi ) ID (format string , v ...any ) HTMLBdi {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlBdi ) Lang (format string , v ...any ) HTMLBdi {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlBdi ) Role (format string , v ...any ) HTMLBdi {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlBdi ) Spellcheck (v bool ) HTMLBdi {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlBdi ) Style (k , format string , v ...any ) HTMLBdi {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlBdi ) Styles (s map [string ]string ) HTMLBdi {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlBdi ) TabIndex (v int ) HTMLBdi {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlBdi ) Title (format string , v ...any ) HTMLBdi {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlBdi ) On (event string , h EventHandler , options ...EventOption ) HTMLBdi {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlBdi ) OnBlur (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("blur" , h , options ...)
}
func (e *htmlBdi ) OnChange (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("change" , h , options ...)
}
func (e *htmlBdi ) OnClick (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("click" , h , options ...)
}
func (e *htmlBdi ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlBdi ) OnCopy (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("copy" , h , options ...)
}
func (e *htmlBdi ) OnCut (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("cut" , h , options ...)
}
func (e *htmlBdi ) OnDblClick (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlBdi ) OnDrag (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("drag" , h , options ...)
}
func (e *htmlBdi ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("dragend" , h , options ...)
}
func (e *htmlBdi ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlBdi ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlBdi ) OnDragOver (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("dragover" , h , options ...)
}
func (e *htmlBdi ) OnDragStart (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlBdi ) OnDrop (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("drop" , h , options ...)
}
func (e *htmlBdi ) OnFocus (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("focus" , h , options ...)
}
func (e *htmlBdi ) OnInput (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("input" , h , options ...)
}
func (e *htmlBdi ) OnInvalid (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("invalid" , h , options ...)
}
func (e *htmlBdi ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("keydown" , h , options ...)
}
func (e *htmlBdi ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("keypress" , h , options ...)
}
func (e *htmlBdi ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("keyup" , h , options ...)
}
func (e *htmlBdi ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlBdi ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlBdi ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlBdi ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlBdi ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlBdi ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlBdi ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlBdi ) OnPaste (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("paste" , h , options ...)
}
func (e *htmlBdi ) OnReset (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("reset" , h , options ...)
}
func (e *htmlBdi ) OnScroll (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("scroll" , h , options ...)
}
func (e *htmlBdi ) OnSearch (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("search" , h , options ...)
}
func (e *htmlBdi ) OnSelect (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("select" , h , options ...)
}
func (e *htmlBdi ) OnSubmit (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("submit" , h , options ...)
}
func (e *htmlBdi ) OnWheel (h EventHandler , options ...EventOption ) HTMLBdi {
return e .On ("wheel" , h , options ...)
}
func (e *htmlBdi ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlBdi ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlBdi ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlBdi ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlBdi ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlBdi ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLBdo interface {
HTML
Body (elems ...UI ) HTMLBdo
Text (v any ) HTMLBdo
Textf (format string , v ...any ) HTMLBdo
AccessKey (format string , v ...any ) HTMLBdo
Aria (k string , v any ) HTMLBdo
Attr (n string , v any ) HTMLBdo
Class (v ...string ) HTMLBdo
ContentEditable (v bool ) HTMLBdo
DataSet (k string , v any ) HTMLBdo
DataSets (ds map [string ]any ) HTMLBdo
Dir (format string , v ...any ) HTMLBdo
Draggable (v bool ) HTMLBdo
Hidden (v bool ) HTMLBdo
ID (format string , v ...any ) HTMLBdo
Lang (format string , v ...any ) HTMLBdo
Role (format string , v ...any ) HTMLBdo
Spellcheck (v bool ) HTMLBdo
Style (k, format string , v ...any ) HTMLBdo
Styles (s map [string ]string ) HTMLBdo
TabIndex (v int ) HTMLBdo
Title (format string , v ...any ) HTMLBdo
On (event string , h EventHandler , options ...EventOption ) HTMLBdo
OnBlur (h EventHandler , options ...EventOption ) HTMLBdo
OnChange (h EventHandler , options ...EventOption ) HTMLBdo
OnClick (h EventHandler , options ...EventOption ) HTMLBdo
OnContextMenu (h EventHandler , options ...EventOption ) HTMLBdo
OnCopy (h EventHandler , options ...EventOption ) HTMLBdo
OnCut (h EventHandler , options ...EventOption ) HTMLBdo
OnDblClick (h EventHandler , options ...EventOption ) HTMLBdo
OnDrag (h EventHandler , options ...EventOption ) HTMLBdo
OnDragEnd (h EventHandler , options ...EventOption ) HTMLBdo
OnDragEnter (h EventHandler , options ...EventOption ) HTMLBdo
OnDragLeave (h EventHandler , options ...EventOption ) HTMLBdo
OnDragOver (h EventHandler , options ...EventOption ) HTMLBdo
OnDragStart (h EventHandler , options ...EventOption ) HTMLBdo
OnDrop (h EventHandler , options ...EventOption ) HTMLBdo
OnFocus (h EventHandler , options ...EventOption ) HTMLBdo
OnInput (h EventHandler , options ...EventOption ) HTMLBdo
OnInvalid (h EventHandler , options ...EventOption ) HTMLBdo
OnKeyDown (h EventHandler , options ...EventOption ) HTMLBdo
OnKeyPress (h EventHandler , options ...EventOption ) HTMLBdo
OnKeyUp (h EventHandler , options ...EventOption ) HTMLBdo
OnMouseDown (h EventHandler , options ...EventOption ) HTMLBdo
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBdo
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBdo
OnMouseMove (h EventHandler , options ...EventOption ) HTMLBdo
OnMouseOut (h EventHandler , options ...EventOption ) HTMLBdo
OnMouseOver (h EventHandler , options ...EventOption ) HTMLBdo
OnMouseUp (h EventHandler , options ...EventOption ) HTMLBdo
OnPaste (h EventHandler , options ...EventOption ) HTMLBdo
OnReset (h EventHandler , options ...EventOption ) HTMLBdo
OnScroll (h EventHandler , options ...EventOption ) HTMLBdo
OnSearch (h EventHandler , options ...EventOption ) HTMLBdo
OnSelect (h EventHandler , options ...EventOption ) HTMLBdo
OnSubmit (h EventHandler , options ...EventOption ) HTMLBdo
OnWheel (h EventHandler , options ...EventOption ) HTMLBdo
}
func Bdo () HTMLBdo {
e := &htmlBdo {
htmlElement : htmlElement {
tag : "bdo" ,
isSelfClosing : false ,
},
}
return e
}
type htmlBdo struct {
htmlElement
}
func (e *htmlBdo ) Body (v ...UI ) HTMLBdo {
return e .setBody (FilterUIElems (v ...)).(*htmlBdo )
}
func (e *htmlBdo ) Text (v any ) HTMLBdo {
return e .Body (Text (v ))
}
func (e *htmlBdo ) Textf (format string , v ...any ) HTMLBdo {
return e .Body (Textf (format , v ...))
}
func (e *htmlBdo ) AccessKey (format string , v ...any ) HTMLBdo {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlBdo ) Aria (k string , v any ) HTMLBdo {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBdo ) Attr (n string , v any ) HTMLBdo {
e .setAttr (n , v )
return e
}
func (e *htmlBdo ) Class (v ...string ) HTMLBdo {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlBdo ) ContentEditable (v bool ) HTMLBdo {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlBdo ) DataSet (k string , v any ) HTMLBdo {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBdo ) DataSets (ds map [string ]any ) HTMLBdo {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlBdo ) Dir (format string , v ...any ) HTMLBdo {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlBdo ) Draggable (v bool ) HTMLBdo {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlBdo ) Hidden (v bool ) HTMLBdo {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlBdo ) ID (format string , v ...any ) HTMLBdo {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlBdo ) Lang (format string , v ...any ) HTMLBdo {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlBdo ) Role (format string , v ...any ) HTMLBdo {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlBdo ) Spellcheck (v bool ) HTMLBdo {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlBdo ) Style (k , format string , v ...any ) HTMLBdo {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlBdo ) Styles (s map [string ]string ) HTMLBdo {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlBdo ) TabIndex (v int ) HTMLBdo {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlBdo ) Title (format string , v ...any ) HTMLBdo {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlBdo ) On (event string , h EventHandler , options ...EventOption ) HTMLBdo {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlBdo ) OnBlur (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("blur" , h , options ...)
}
func (e *htmlBdo ) OnChange (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("change" , h , options ...)
}
func (e *htmlBdo ) OnClick (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("click" , h , options ...)
}
func (e *htmlBdo ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlBdo ) OnCopy (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("copy" , h , options ...)
}
func (e *htmlBdo ) OnCut (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("cut" , h , options ...)
}
func (e *htmlBdo ) OnDblClick (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlBdo ) OnDrag (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("drag" , h , options ...)
}
func (e *htmlBdo ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("dragend" , h , options ...)
}
func (e *htmlBdo ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlBdo ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlBdo ) OnDragOver (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("dragover" , h , options ...)
}
func (e *htmlBdo ) OnDragStart (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlBdo ) OnDrop (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("drop" , h , options ...)
}
func (e *htmlBdo ) OnFocus (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("focus" , h , options ...)
}
func (e *htmlBdo ) OnInput (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("input" , h , options ...)
}
func (e *htmlBdo ) OnInvalid (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("invalid" , h , options ...)
}
func (e *htmlBdo ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("keydown" , h , options ...)
}
func (e *htmlBdo ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("keypress" , h , options ...)
}
func (e *htmlBdo ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("keyup" , h , options ...)
}
func (e *htmlBdo ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlBdo ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlBdo ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlBdo ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlBdo ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlBdo ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlBdo ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlBdo ) OnPaste (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("paste" , h , options ...)
}
func (e *htmlBdo ) OnReset (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("reset" , h , options ...)
}
func (e *htmlBdo ) OnScroll (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("scroll" , h , options ...)
}
func (e *htmlBdo ) OnSearch (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("search" , h , options ...)
}
func (e *htmlBdo ) OnSelect (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("select" , h , options ...)
}
func (e *htmlBdo ) OnSubmit (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("submit" , h , options ...)
}
func (e *htmlBdo ) OnWheel (h EventHandler , options ...EventOption ) HTMLBdo {
return e .On ("wheel" , h , options ...)
}
func (e *htmlBdo ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlBdo ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlBdo ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlBdo ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlBdo ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlBdo ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLBlockquote interface {
HTML
Body (elems ...UI ) HTMLBlockquote
Text (v any ) HTMLBlockquote
Textf (format string , v ...any ) HTMLBlockquote
AccessKey (format string , v ...any ) HTMLBlockquote
Aria (k string , v any ) HTMLBlockquote
Attr (n string , v any ) HTMLBlockquote
Cite (format string , v ...any ) HTMLBlockquote
Class (v ...string ) HTMLBlockquote
ContentEditable (v bool ) HTMLBlockquote
DataSet (k string , v any ) HTMLBlockquote
DataSets (ds map [string ]any ) HTMLBlockquote
Dir (format string , v ...any ) HTMLBlockquote
Draggable (v bool ) HTMLBlockquote
Hidden (v bool ) HTMLBlockquote
ID (format string , v ...any ) HTMLBlockquote
Lang (format string , v ...any ) HTMLBlockquote
Role (format string , v ...any ) HTMLBlockquote
Spellcheck (v bool ) HTMLBlockquote
Style (k, format string , v ...any ) HTMLBlockquote
Styles (s map [string ]string ) HTMLBlockquote
TabIndex (v int ) HTMLBlockquote
Title (format string , v ...any ) HTMLBlockquote
On (event string , h EventHandler , options ...EventOption ) HTMLBlockquote
OnBlur (h EventHandler , options ...EventOption ) HTMLBlockquote
OnChange (h EventHandler , options ...EventOption ) HTMLBlockquote
OnClick (h EventHandler , options ...EventOption ) HTMLBlockquote
OnContextMenu (h EventHandler , options ...EventOption ) HTMLBlockquote
OnCopy (h EventHandler , options ...EventOption ) HTMLBlockquote
OnCut (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDblClick (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDrag (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDragEnd (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDragEnter (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDragLeave (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDragOver (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDragStart (h EventHandler , options ...EventOption ) HTMLBlockquote
OnDrop (h EventHandler , options ...EventOption ) HTMLBlockquote
OnFocus (h EventHandler , options ...EventOption ) HTMLBlockquote
OnInput (h EventHandler , options ...EventOption ) HTMLBlockquote
OnInvalid (h EventHandler , options ...EventOption ) HTMLBlockquote
OnKeyDown (h EventHandler , options ...EventOption ) HTMLBlockquote
OnKeyPress (h EventHandler , options ...EventOption ) HTMLBlockquote
OnKeyUp (h EventHandler , options ...EventOption ) HTMLBlockquote
OnMouseDown (h EventHandler , options ...EventOption ) HTMLBlockquote
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBlockquote
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBlockquote
OnMouseMove (h EventHandler , options ...EventOption ) HTMLBlockquote
OnMouseOut (h EventHandler , options ...EventOption ) HTMLBlockquote
OnMouseOver (h EventHandler , options ...EventOption ) HTMLBlockquote
OnMouseUp (h EventHandler , options ...EventOption ) HTMLBlockquote
OnPaste (h EventHandler , options ...EventOption ) HTMLBlockquote
OnReset (h EventHandler , options ...EventOption ) HTMLBlockquote
OnScroll (h EventHandler , options ...EventOption ) HTMLBlockquote
OnSearch (h EventHandler , options ...EventOption ) HTMLBlockquote
OnSelect (h EventHandler , options ...EventOption ) HTMLBlockquote
OnSubmit (h EventHandler , options ...EventOption ) HTMLBlockquote
OnWheel (h EventHandler , options ...EventOption ) HTMLBlockquote
}
func Blockquote () HTMLBlockquote {
e := &htmlBlockquote {
htmlElement : htmlElement {
tag : "blockquote" ,
isSelfClosing : false ,
},
}
return e
}
type htmlBlockquote struct {
htmlElement
}
func (e *htmlBlockquote ) Body (v ...UI ) HTMLBlockquote {
return e .setBody (FilterUIElems (v ...)).(*htmlBlockquote )
}
func (e *htmlBlockquote ) Text (v any ) HTMLBlockquote {
return e .Body (Text (v ))
}
func (e *htmlBlockquote ) Textf (format string , v ...any ) HTMLBlockquote {
return e .Body (Textf (format , v ...))
}
func (e *htmlBlockquote ) AccessKey (format string , v ...any ) HTMLBlockquote {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) Aria (k string , v any ) HTMLBlockquote {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBlockquote ) Attr (n string , v any ) HTMLBlockquote {
e .setAttr (n , v )
return e
}
func (e *htmlBlockquote ) Cite (format string , v ...any ) HTMLBlockquote {
e .setAttr ("cite" , FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) Class (v ...string ) HTMLBlockquote {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlBlockquote ) ContentEditable (v bool ) HTMLBlockquote {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlBlockquote ) DataSet (k string , v any ) HTMLBlockquote {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBlockquote ) DataSets (ds map [string ]any ) HTMLBlockquote {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlBlockquote ) Dir (format string , v ...any ) HTMLBlockquote {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) Draggable (v bool ) HTMLBlockquote {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlBlockquote ) Hidden (v bool ) HTMLBlockquote {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlBlockquote ) ID (format string , v ...any ) HTMLBlockquote {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) Lang (format string , v ...any ) HTMLBlockquote {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) Role (format string , v ...any ) HTMLBlockquote {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) Spellcheck (v bool ) HTMLBlockquote {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlBlockquote ) Style (k , format string , v ...any ) HTMLBlockquote {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) Styles (s map [string ]string ) HTMLBlockquote {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlBlockquote ) TabIndex (v int ) HTMLBlockquote {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlBlockquote ) Title (format string , v ...any ) HTMLBlockquote {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlBlockquote ) On (event string , h EventHandler , options ...EventOption ) HTMLBlockquote {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlBlockquote ) OnBlur (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("blur" , h , options ...)
}
func (e *htmlBlockquote ) OnChange (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("change" , h , options ...)
}
func (e *htmlBlockquote ) OnClick (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("click" , h , options ...)
}
func (e *htmlBlockquote ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlBlockquote ) OnCopy (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("copy" , h , options ...)
}
func (e *htmlBlockquote ) OnCut (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("cut" , h , options ...)
}
func (e *htmlBlockquote ) OnDblClick (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlBlockquote ) OnDrag (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("drag" , h , options ...)
}
func (e *htmlBlockquote ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("dragend" , h , options ...)
}
func (e *htmlBlockquote ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlBlockquote ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlBlockquote ) OnDragOver (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("dragover" , h , options ...)
}
func (e *htmlBlockquote ) OnDragStart (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlBlockquote ) OnDrop (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("drop" , h , options ...)
}
func (e *htmlBlockquote ) OnFocus (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("focus" , h , options ...)
}
func (e *htmlBlockquote ) OnInput (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("input" , h , options ...)
}
func (e *htmlBlockquote ) OnInvalid (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("invalid" , h , options ...)
}
func (e *htmlBlockquote ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("keydown" , h , options ...)
}
func (e *htmlBlockquote ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("keypress" , h , options ...)
}
func (e *htmlBlockquote ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("keyup" , h , options ...)
}
func (e *htmlBlockquote ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlBlockquote ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlBlockquote ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlBlockquote ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlBlockquote ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlBlockquote ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlBlockquote ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlBlockquote ) OnPaste (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("paste" , h , options ...)
}
func (e *htmlBlockquote ) OnReset (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("reset" , h , options ...)
}
func (e *htmlBlockquote ) OnScroll (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("scroll" , h , options ...)
}
func (e *htmlBlockquote ) OnSearch (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("search" , h , options ...)
}
func (e *htmlBlockquote ) OnSelect (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("select" , h , options ...)
}
func (e *htmlBlockquote ) OnSubmit (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("submit" , h , options ...)
}
func (e *htmlBlockquote ) OnWheel (h EventHandler , options ...EventOption ) HTMLBlockquote {
return e .On ("wheel" , h , options ...)
}
func (e *htmlBlockquote ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlBlockquote ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlBlockquote ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlBlockquote ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlBlockquote ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlBlockquote ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLBody interface {
HTML
privateBody(elems ...UI ) HTMLBody
AccessKey (format string , v ...any ) HTMLBody
Aria (k string , v any ) HTMLBody
Attr (n string , v any ) HTMLBody
Class (v ...string ) HTMLBody
ContentEditable (v bool ) HTMLBody
DataSet (k string , v any ) HTMLBody
DataSets (ds map [string ]any ) HTMLBody
Dir (format string , v ...any ) HTMLBody
Draggable (v bool ) HTMLBody
Hidden (v bool ) HTMLBody
ID (format string , v ...any ) HTMLBody
Lang (format string , v ...any ) HTMLBody
Role (format string , v ...any ) HTMLBody
Spellcheck (v bool ) HTMLBody
Style (k, format string , v ...any ) HTMLBody
Styles (s map [string ]string ) HTMLBody
TabIndex (v int ) HTMLBody
Title (format string , v ...any ) HTMLBody
On (event string , h EventHandler , options ...EventOption ) HTMLBody
OnAfterPrint (h EventHandler , options ...EventOption ) HTMLBody
OnBeforePrint (h EventHandler , options ...EventOption ) HTMLBody
OnBeforeUnload (h EventHandler , options ...EventOption ) HTMLBody
OnBlur (h EventHandler , options ...EventOption ) HTMLBody
OnChange (h EventHandler , options ...EventOption ) HTMLBody
OnClick (h EventHandler , options ...EventOption ) HTMLBody
OnContextMenu (h EventHandler , options ...EventOption ) HTMLBody
OnCopy (h EventHandler , options ...EventOption ) HTMLBody
OnCut (h EventHandler , options ...EventOption ) HTMLBody
OnDblClick (h EventHandler , options ...EventOption ) HTMLBody
OnDrag (h EventHandler , options ...EventOption ) HTMLBody
OnDragEnd (h EventHandler , options ...EventOption ) HTMLBody
OnDragEnter (h EventHandler , options ...EventOption ) HTMLBody
OnDragLeave (h EventHandler , options ...EventOption ) HTMLBody
OnDragOver (h EventHandler , options ...EventOption ) HTMLBody
OnDragStart (h EventHandler , options ...EventOption ) HTMLBody
OnDrop (h EventHandler , options ...EventOption ) HTMLBody
OnError (h EventHandler , options ...EventOption ) HTMLBody
OnFocus (h EventHandler , options ...EventOption ) HTMLBody
OnHashChange (h EventHandler , options ...EventOption ) HTMLBody
OnInput (h EventHandler , options ...EventOption ) HTMLBody
OnInvalid (h EventHandler , options ...EventOption ) HTMLBody
OnKeyDown (h EventHandler , options ...EventOption ) HTMLBody
OnKeyPress (h EventHandler , options ...EventOption ) HTMLBody
OnKeyUp (h EventHandler , options ...EventOption ) HTMLBody
OnLoad (h EventHandler , options ...EventOption ) HTMLBody
OnMessage (h EventHandler , options ...EventOption ) HTMLBody
OnMouseDown (h EventHandler , options ...EventOption ) HTMLBody
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBody
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBody
OnMouseMove (h EventHandler , options ...EventOption ) HTMLBody
OnMouseOut (h EventHandler , options ...EventOption ) HTMLBody
OnMouseOver (h EventHandler , options ...EventOption ) HTMLBody
OnMouseUp (h EventHandler , options ...EventOption ) HTMLBody
OnOffline (h EventHandler , options ...EventOption ) HTMLBody
OnOnline (h EventHandler , options ...EventOption ) HTMLBody
OnPageHide (h EventHandler , options ...EventOption ) HTMLBody
OnPageShow (h EventHandler , options ...EventOption ) HTMLBody
OnPaste (h EventHandler , options ...EventOption ) HTMLBody
OnPopState (h EventHandler , options ...EventOption ) HTMLBody
OnReset (h EventHandler , options ...EventOption ) HTMLBody
OnResize (h EventHandler , options ...EventOption ) HTMLBody
OnScroll (h EventHandler , options ...EventOption ) HTMLBody
OnSearch (h EventHandler , options ...EventOption ) HTMLBody
OnSelect (h EventHandler , options ...EventOption ) HTMLBody
OnStorage (h EventHandler , options ...EventOption ) HTMLBody
OnSubmit (h EventHandler , options ...EventOption ) HTMLBody
OnUnload (h EventHandler , options ...EventOption ) HTMLBody
OnWheel (h EventHandler , options ...EventOption ) HTMLBody
}
func Body () HTMLBody {
e := &htmlBody {
htmlElement : htmlElement {
tag : "body" ,
isSelfClosing : false ,
},
}
return e
}
type htmlBody struct {
htmlElement
}
func (e *htmlBody ) privateBody (v ...UI ) HTMLBody {
return e .setBody (FilterUIElems (v ...)).(*htmlBody )
}
func (e *htmlBody ) AccessKey (format string , v ...any ) HTMLBody {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlBody ) Aria (k string , v any ) HTMLBody {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBody ) Attr (n string , v any ) HTMLBody {
e .setAttr (n , v )
return e
}
func (e *htmlBody ) Class (v ...string ) HTMLBody {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlBody ) ContentEditable (v bool ) HTMLBody {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlBody ) DataSet (k string , v any ) HTMLBody {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBody ) DataSets (ds map [string ]any ) HTMLBody {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlBody ) Dir (format string , v ...any ) HTMLBody {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlBody ) Draggable (v bool ) HTMLBody {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlBody ) Hidden (v bool ) HTMLBody {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlBody ) ID (format string , v ...any ) HTMLBody {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlBody ) Lang (format string , v ...any ) HTMLBody {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlBody ) Role (format string , v ...any ) HTMLBody {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlBody ) Spellcheck (v bool ) HTMLBody {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlBody ) Style (k , format string , v ...any ) HTMLBody {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlBody ) Styles (s map [string ]string ) HTMLBody {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlBody ) TabIndex (v int ) HTMLBody {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlBody ) Title (format string , v ...any ) HTMLBody {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlBody ) On (event string , h EventHandler , options ...EventOption ) HTMLBody {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlBody ) OnAfterPrint (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("afterprint" , h , options ...)
}
func (e *htmlBody ) OnBeforePrint (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("beforeprint" , h , options ...)
}
func (e *htmlBody ) OnBeforeUnload (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("beforeunload" , h , options ...)
}
func (e *htmlBody ) OnBlur (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("blur" , h , options ...)
}
func (e *htmlBody ) OnChange (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("change" , h , options ...)
}
func (e *htmlBody ) OnClick (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("click" , h , options ...)
}
func (e *htmlBody ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlBody ) OnCopy (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("copy" , h , options ...)
}
func (e *htmlBody ) OnCut (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("cut" , h , options ...)
}
func (e *htmlBody ) OnDblClick (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlBody ) OnDrag (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("drag" , h , options ...)
}
func (e *htmlBody ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("dragend" , h , options ...)
}
func (e *htmlBody ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlBody ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlBody ) OnDragOver (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("dragover" , h , options ...)
}
func (e *htmlBody ) OnDragStart (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlBody ) OnDrop (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("drop" , h , options ...)
}
func (e *htmlBody ) OnError (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("error" , h , options ...)
}
func (e *htmlBody ) OnFocus (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("focus" , h , options ...)
}
func (e *htmlBody ) OnHashChange (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("hashchange" , h , options ...)
}
func (e *htmlBody ) OnInput (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("input" , h , options ...)
}
func (e *htmlBody ) OnInvalid (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("invalid" , h , options ...)
}
func (e *htmlBody ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("keydown" , h , options ...)
}
func (e *htmlBody ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("keypress" , h , options ...)
}
func (e *htmlBody ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("keyup" , h , options ...)
}
func (e *htmlBody ) OnLoad (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("load" , h , options ...)
}
func (e *htmlBody ) OnMessage (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("message" , h , options ...)
}
func (e *htmlBody ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlBody ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlBody ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlBody ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlBody ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlBody ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlBody ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlBody ) OnOffline (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("offline" , h , options ...)
}
func (e *htmlBody ) OnOnline (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("online" , h , options ...)
}
func (e *htmlBody ) OnPageHide (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("pagehide" , h , options ...)
}
func (e *htmlBody ) OnPageShow (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("pageshow" , h , options ...)
}
func (e *htmlBody ) OnPaste (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("paste" , h , options ...)
}
func (e *htmlBody ) OnPopState (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("popstate" , h , options ...)
}
func (e *htmlBody ) OnReset (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("reset" , h , options ...)
}
func (e *htmlBody ) OnResize (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("resize" , h , options ...)
}
func (e *htmlBody ) OnScroll (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("scroll" , h , options ...)
}
func (e *htmlBody ) OnSearch (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("search" , h , options ...)
}
func (e *htmlBody ) OnSelect (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("select" , h , options ...)
}
func (e *htmlBody ) OnStorage (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("storage" , h , options ...)
}
func (e *htmlBody ) OnSubmit (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("submit" , h , options ...)
}
func (e *htmlBody ) OnUnload (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("unload" , h , options ...)
}
func (e *htmlBody ) OnWheel (h EventHandler , options ...EventOption ) HTMLBody {
return e .On ("wheel" , h , options ...)
}
func (e *htmlBody ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlBody ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlBody ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlBody ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlBody ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlBody ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLBr interface {
HTML
AccessKey (format string , v ...any ) HTMLBr
Aria (k string , v any ) HTMLBr
Attr (n string , v any ) HTMLBr
Class (v ...string ) HTMLBr
ContentEditable (v bool ) HTMLBr
DataSet (k string , v any ) HTMLBr
DataSets (ds map [string ]any ) HTMLBr
Dir (format string , v ...any ) HTMLBr
Draggable (v bool ) HTMLBr
Hidden (v bool ) HTMLBr
ID (format string , v ...any ) HTMLBr
Lang (format string , v ...any ) HTMLBr
Role (format string , v ...any ) HTMLBr
Spellcheck (v bool ) HTMLBr
Style (k, format string , v ...any ) HTMLBr
Styles (s map [string ]string ) HTMLBr
TabIndex (v int ) HTMLBr
Title (format string , v ...any ) HTMLBr
On (event string , h EventHandler , options ...EventOption ) HTMLBr
OnBlur (h EventHandler , options ...EventOption ) HTMLBr
OnChange (h EventHandler , options ...EventOption ) HTMLBr
OnClick (h EventHandler , options ...EventOption ) HTMLBr
OnContextMenu (h EventHandler , options ...EventOption ) HTMLBr
OnCopy (h EventHandler , options ...EventOption ) HTMLBr
OnCut (h EventHandler , options ...EventOption ) HTMLBr
OnDblClick (h EventHandler , options ...EventOption ) HTMLBr
OnDrag (h EventHandler , options ...EventOption ) HTMLBr
OnDragEnd (h EventHandler , options ...EventOption ) HTMLBr
OnDragEnter (h EventHandler , options ...EventOption ) HTMLBr
OnDragLeave (h EventHandler , options ...EventOption ) HTMLBr
OnDragOver (h EventHandler , options ...EventOption ) HTMLBr
OnDragStart (h EventHandler , options ...EventOption ) HTMLBr
OnDrop (h EventHandler , options ...EventOption ) HTMLBr
OnFocus (h EventHandler , options ...EventOption ) HTMLBr
OnInput (h EventHandler , options ...EventOption ) HTMLBr
OnInvalid (h EventHandler , options ...EventOption ) HTMLBr
OnKeyDown (h EventHandler , options ...EventOption ) HTMLBr
OnKeyPress (h EventHandler , options ...EventOption ) HTMLBr
OnKeyUp (h EventHandler , options ...EventOption ) HTMLBr
OnMouseDown (h EventHandler , options ...EventOption ) HTMLBr
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBr
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBr
OnMouseMove (h EventHandler , options ...EventOption ) HTMLBr
OnMouseOut (h EventHandler , options ...EventOption ) HTMLBr
OnMouseOver (h EventHandler , options ...EventOption ) HTMLBr
OnMouseUp (h EventHandler , options ...EventOption ) HTMLBr
OnPaste (h EventHandler , options ...EventOption ) HTMLBr
OnReset (h EventHandler , options ...EventOption ) HTMLBr
OnScroll (h EventHandler , options ...EventOption ) HTMLBr
OnSearch (h EventHandler , options ...EventOption ) HTMLBr
OnSelect (h EventHandler , options ...EventOption ) HTMLBr
OnSubmit (h EventHandler , options ...EventOption ) HTMLBr
OnWheel (h EventHandler , options ...EventOption ) HTMLBr
}
func Br () HTMLBr {
e := &htmlBr {
htmlElement : htmlElement {
tag : "br" ,
isSelfClosing : true ,
},
}
return e
}
type htmlBr struct {
htmlElement
}
func (e *htmlBr ) AccessKey (format string , v ...any ) HTMLBr {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlBr ) Aria (k string , v any ) HTMLBr {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBr ) Attr (n string , v any ) HTMLBr {
e .setAttr (n , v )
return e
}
func (e *htmlBr ) Class (v ...string ) HTMLBr {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlBr ) ContentEditable (v bool ) HTMLBr {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlBr ) DataSet (k string , v any ) HTMLBr {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlBr ) DataSets (ds map [string ]any ) HTMLBr {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlBr ) Dir (format string , v ...any ) HTMLBr {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlBr ) Draggable (v bool ) HTMLBr {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlBr ) Hidden (v bool ) HTMLBr {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlBr ) ID (format string , v ...any ) HTMLBr {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlBr ) Lang (format string , v ...any ) HTMLBr {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlBr ) Role (format string , v ...any ) HTMLBr {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlBr ) Spellcheck (v bool ) HTMLBr {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlBr ) Style (k , format string , v ...any ) HTMLBr {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlBr ) Styles (s map [string ]string ) HTMLBr {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlBr ) TabIndex (v int ) HTMLBr {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlBr ) Title (format string , v ...any ) HTMLBr {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlBr ) On (event string , h EventHandler , options ...EventOption ) HTMLBr {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlBr ) OnBlur (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("blur" , h , options ...)
}
func (e *htmlBr ) OnChange (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("change" , h , options ...)
}
func (e *htmlBr ) OnClick (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("click" , h , options ...)
}
func (e *htmlBr ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlBr ) OnCopy (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("copy" , h , options ...)
}
func (e *htmlBr ) OnCut (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("cut" , h , options ...)
}
func (e *htmlBr ) OnDblClick (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlBr ) OnDrag (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("drag" , h , options ...)
}
func (e *htmlBr ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("dragend" , h , options ...)
}
func (e *htmlBr ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlBr ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlBr ) OnDragOver (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("dragover" , h , options ...)
}
func (e *htmlBr ) OnDragStart (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlBr ) OnDrop (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("drop" , h , options ...)
}
func (e *htmlBr ) OnFocus (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("focus" , h , options ...)
}
func (e *htmlBr ) OnInput (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("input" , h , options ...)
}
func (e *htmlBr ) OnInvalid (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("invalid" , h , options ...)
}
func (e *htmlBr ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("keydown" , h , options ...)
}
func (e *htmlBr ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("keypress" , h , options ...)
}
func (e *htmlBr ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("keyup" , h , options ...)
}
func (e *htmlBr ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlBr ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlBr ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlBr ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlBr ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlBr ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlBr ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlBr ) OnPaste (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("paste" , h , options ...)
}
func (e *htmlBr ) OnReset (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("reset" , h , options ...)
}
func (e *htmlBr ) OnScroll (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("scroll" , h , options ...)
}
func (e *htmlBr ) OnSearch (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("search" , h , options ...)
}
func (e *htmlBr ) OnSelect (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("select" , h , options ...)
}
func (e *htmlBr ) OnSubmit (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("submit" , h , options ...)
}
func (e *htmlBr ) OnWheel (h EventHandler , options ...EventOption ) HTMLBr {
return e .On ("wheel" , h , options ...)
}
func (e *htmlBr ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlBr ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlBr ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlBr ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlBr ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlBr ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLButton interface {
HTML
Body (elems ...UI ) HTMLButton
Text (v any ) HTMLButton
Textf (format string , v ...any ) HTMLButton
AccessKey (format string , v ...any ) HTMLButton
Aria (k string , v any ) HTMLButton
Attr (n string , v any ) HTMLButton
AutoFocus (v bool ) HTMLButton
Class (v ...string ) HTMLButton
ContentEditable (v bool ) HTMLButton
DataSet (k string , v any ) HTMLButton
DataSets (ds map [string ]any ) HTMLButton
Dir (format string , v ...any ) HTMLButton
Disabled (v bool ) HTMLButton
Draggable (v bool ) HTMLButton
Form (format string , v ...any ) HTMLButton
FormAction (format string , v ...any ) HTMLButton
FormEncType (format string , v ...any ) HTMLButton
FormMethod (format string , v ...any ) HTMLButton
FormNoValidate (v bool ) HTMLButton
FormTarget (format string , v ...any ) HTMLButton
Hidden (v bool ) HTMLButton
ID (format string , v ...any ) HTMLButton
Lang (format string , v ...any ) HTMLButton
Name (format string , v ...any ) HTMLButton
Role (format string , v ...any ) HTMLButton
Spellcheck (v bool ) HTMLButton
Style (k, format string , v ...any ) HTMLButton
Styles (s map [string ]string ) HTMLButton
TabIndex (v int ) HTMLButton
Title (format string , v ...any ) HTMLButton
Type (format string , v ...any ) HTMLButton
Value (v any ) HTMLButton
On (event string , h EventHandler , options ...EventOption ) HTMLButton
OnBlur (h EventHandler , options ...EventOption ) HTMLButton
OnChange (h EventHandler , options ...EventOption ) HTMLButton
OnClick (h EventHandler , options ...EventOption ) HTMLButton
OnContextMenu (h EventHandler , options ...EventOption ) HTMLButton
OnCopy (h EventHandler , options ...EventOption ) HTMLButton
OnCut (h EventHandler , options ...EventOption ) HTMLButton
OnDblClick (h EventHandler , options ...EventOption ) HTMLButton
OnDrag (h EventHandler , options ...EventOption ) HTMLButton
OnDragEnd (h EventHandler , options ...EventOption ) HTMLButton
OnDragEnter (h EventHandler , options ...EventOption ) HTMLButton
OnDragLeave (h EventHandler , options ...EventOption ) HTMLButton
OnDragOver (h EventHandler , options ...EventOption ) HTMLButton
OnDragStart (h EventHandler , options ...EventOption ) HTMLButton
OnDrop (h EventHandler , options ...EventOption ) HTMLButton
OnFocus (h EventHandler , options ...EventOption ) HTMLButton
OnInput (h EventHandler , options ...EventOption ) HTMLButton
OnInvalid (h EventHandler , options ...EventOption ) HTMLButton
OnKeyDown (h EventHandler , options ...EventOption ) HTMLButton
OnKeyPress (h EventHandler , options ...EventOption ) HTMLButton
OnKeyUp (h EventHandler , options ...EventOption ) HTMLButton
OnMouseDown (h EventHandler , options ...EventOption ) HTMLButton
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLButton
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLButton
OnMouseMove (h EventHandler , options ...EventOption ) HTMLButton
OnMouseOut (h EventHandler , options ...EventOption ) HTMLButton
OnMouseOver (h EventHandler , options ...EventOption ) HTMLButton
OnMouseUp (h EventHandler , options ...EventOption ) HTMLButton
OnPaste (h EventHandler , options ...EventOption ) HTMLButton
OnReset (h EventHandler , options ...EventOption ) HTMLButton
OnScroll (h EventHandler , options ...EventOption ) HTMLButton
OnSearch (h EventHandler , options ...EventOption ) HTMLButton
OnSelect (h EventHandler , options ...EventOption ) HTMLButton
OnSubmit (h EventHandler , options ...EventOption ) HTMLButton
OnWheel (h EventHandler , options ...EventOption ) HTMLButton
}
func Button () HTMLButton {
e := &htmlButton {
htmlElement : htmlElement {
tag : "button" ,
isSelfClosing : false ,
},
}
return e
}
type htmlButton struct {
htmlElement
}
func (e *htmlButton ) Body (v ...UI ) HTMLButton {
return e .setBody (FilterUIElems (v ...)).(*htmlButton )
}
func (e *htmlButton ) Text (v any ) HTMLButton {
return e .Body (Text (v ))
}
func (e *htmlButton ) Textf (format string , v ...any ) HTMLButton {
return e .Body (Textf (format , v ...))
}
func (e *htmlButton ) AccessKey (format string , v ...any ) HTMLButton {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Aria (k string , v any ) HTMLButton {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlButton ) Attr (n string , v any ) HTMLButton {
e .setAttr (n , v )
return e
}
func (e *htmlButton ) AutoFocus (v bool ) HTMLButton {
e .setAttr ("autofocus" , v )
return e
}
func (e *htmlButton ) Class (v ...string ) HTMLButton {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlButton ) ContentEditable (v bool ) HTMLButton {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlButton ) DataSet (k string , v any ) HTMLButton {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlButton ) DataSets (ds map [string ]any ) HTMLButton {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlButton ) Dir (format string , v ...any ) HTMLButton {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Disabled (v bool ) HTMLButton {
e .setAttr ("disabled" , v )
return e
}
func (e *htmlButton ) Draggable (v bool ) HTMLButton {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlButton ) Form (format string , v ...any ) HTMLButton {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) FormAction (format string , v ...any ) HTMLButton {
e .setAttr ("formaction" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) FormEncType (format string , v ...any ) HTMLButton {
e .setAttr ("formenctype" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) FormMethod (format string , v ...any ) HTMLButton {
e .setAttr ("formmethod" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) FormNoValidate (v bool ) HTMLButton {
e .setAttr ("formnovalidate" , v )
return e
}
func (e *htmlButton ) FormTarget (format string , v ...any ) HTMLButton {
e .setAttr ("formtarget" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Hidden (v bool ) HTMLButton {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlButton ) ID (format string , v ...any ) HTMLButton {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Lang (format string , v ...any ) HTMLButton {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Name (format string , v ...any ) HTMLButton {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Role (format string , v ...any ) HTMLButton {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Spellcheck (v bool ) HTMLButton {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlButton ) Style (k , format string , v ...any ) HTMLButton {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlButton ) Styles (s map [string ]string ) HTMLButton {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlButton ) TabIndex (v int ) HTMLButton {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlButton ) Title (format string , v ...any ) HTMLButton {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Type (format string , v ...any ) HTMLButton {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlButton ) Value (v any ) HTMLButton {
e .setAttr ("value" , v )
return e
}
func (e *htmlButton ) On (event string , h EventHandler , options ...EventOption ) HTMLButton {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlButton ) OnBlur (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("blur" , h , options ...)
}
func (e *htmlButton ) OnChange (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("change" , h , options ...)
}
func (e *htmlButton ) OnClick (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("click" , h , options ...)
}
func (e *htmlButton ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlButton ) OnCopy (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("copy" , h , options ...)
}
func (e *htmlButton ) OnCut (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("cut" , h , options ...)
}
func (e *htmlButton ) OnDblClick (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlButton ) OnDrag (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("drag" , h , options ...)
}
func (e *htmlButton ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("dragend" , h , options ...)
}
func (e *htmlButton ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlButton ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlButton ) OnDragOver (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("dragover" , h , options ...)
}
func (e *htmlButton ) OnDragStart (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlButton ) OnDrop (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("drop" , h , options ...)
}
func (e *htmlButton ) OnFocus (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("focus" , h , options ...)
}
func (e *htmlButton ) OnInput (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("input" , h , options ...)
}
func (e *htmlButton ) OnInvalid (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("invalid" , h , options ...)
}
func (e *htmlButton ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("keydown" , h , options ...)
}
func (e *htmlButton ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("keypress" , h , options ...)
}
func (e *htmlButton ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("keyup" , h , options ...)
}
func (e *htmlButton ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlButton ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlButton ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlButton ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlButton ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlButton ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlButton ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlButton ) OnPaste (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("paste" , h , options ...)
}
func (e *htmlButton ) OnReset (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("reset" , h , options ...)
}
func (e *htmlButton ) OnScroll (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("scroll" , h , options ...)
}
func (e *htmlButton ) OnSearch (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("search" , h , options ...)
}
func (e *htmlButton ) OnSelect (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("select" , h , options ...)
}
func (e *htmlButton ) OnSubmit (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("submit" , h , options ...)
}
func (e *htmlButton ) OnWheel (h EventHandler , options ...EventOption ) HTMLButton {
return e .On ("wheel" , h , options ...)
}
func (e *htmlButton ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlButton ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlButton ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlButton ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlButton ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlButton ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLCanvas interface {
HTML
Body (elems ...UI ) HTMLCanvas
Text (v any ) HTMLCanvas
Textf (format string , v ...any ) HTMLCanvas
AccessKey (format string , v ...any ) HTMLCanvas
Aria (k string , v any ) HTMLCanvas
Attr (n string , v any ) HTMLCanvas
Class (v ...string ) HTMLCanvas
ContentEditable (v bool ) HTMLCanvas
DataSet (k string , v any ) HTMLCanvas
DataSets (ds map [string ]any ) HTMLCanvas
Dir (format string , v ...any ) HTMLCanvas
Draggable (v bool ) HTMLCanvas
Height (v int ) HTMLCanvas
Hidden (v bool ) HTMLCanvas
ID (format string , v ...any ) HTMLCanvas
Lang (format string , v ...any ) HTMLCanvas
Role (format string , v ...any ) HTMLCanvas
Spellcheck (v bool ) HTMLCanvas
Style (k, format string , v ...any ) HTMLCanvas
Styles (s map [string ]string ) HTMLCanvas
TabIndex (v int ) HTMLCanvas
Title (format string , v ...any ) HTMLCanvas
Width (v int ) HTMLCanvas
On (event string , h EventHandler , options ...EventOption ) HTMLCanvas
OnBlur (h EventHandler , options ...EventOption ) HTMLCanvas
OnChange (h EventHandler , options ...EventOption ) HTMLCanvas
OnClick (h EventHandler , options ...EventOption ) HTMLCanvas
OnContextMenu (h EventHandler , options ...EventOption ) HTMLCanvas
OnCopy (h EventHandler , options ...EventOption ) HTMLCanvas
OnCut (h EventHandler , options ...EventOption ) HTMLCanvas
OnDblClick (h EventHandler , options ...EventOption ) HTMLCanvas
OnDrag (h EventHandler , options ...EventOption ) HTMLCanvas
OnDragEnd (h EventHandler , options ...EventOption ) HTMLCanvas
OnDragEnter (h EventHandler , options ...EventOption ) HTMLCanvas
OnDragLeave (h EventHandler , options ...EventOption ) HTMLCanvas
OnDragOver (h EventHandler , options ...EventOption ) HTMLCanvas
OnDragStart (h EventHandler , options ...EventOption ) HTMLCanvas
OnDrop (h EventHandler , options ...EventOption ) HTMLCanvas
OnFocus (h EventHandler , options ...EventOption ) HTMLCanvas
OnInput (h EventHandler , options ...EventOption ) HTMLCanvas
OnInvalid (h EventHandler , options ...EventOption ) HTMLCanvas
OnKeyDown (h EventHandler , options ...EventOption ) HTMLCanvas
OnKeyPress (h EventHandler , options ...EventOption ) HTMLCanvas
OnKeyUp (h EventHandler , options ...EventOption ) HTMLCanvas
OnMouseDown (h EventHandler , options ...EventOption ) HTMLCanvas
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCanvas
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCanvas
OnMouseMove (h EventHandler , options ...EventOption ) HTMLCanvas
OnMouseOut (h EventHandler , options ...EventOption ) HTMLCanvas
OnMouseOver (h EventHandler , options ...EventOption ) HTMLCanvas
OnMouseUp (h EventHandler , options ...EventOption ) HTMLCanvas
OnPaste (h EventHandler , options ...EventOption ) HTMLCanvas
OnReset (h EventHandler , options ...EventOption ) HTMLCanvas
OnScroll (h EventHandler , options ...EventOption ) HTMLCanvas
OnSearch (h EventHandler , options ...EventOption ) HTMLCanvas
OnSelect (h EventHandler , options ...EventOption ) HTMLCanvas
OnSubmit (h EventHandler , options ...EventOption ) HTMLCanvas
OnWheel (h EventHandler , options ...EventOption ) HTMLCanvas
}
func Canvas () HTMLCanvas {
e := &htmlCanvas {
htmlElement : htmlElement {
tag : "canvas" ,
isSelfClosing : false ,
},
}
return e
}
type htmlCanvas struct {
htmlElement
}
func (e *htmlCanvas ) Body (v ...UI ) HTMLCanvas {
return e .setBody (FilterUIElems (v ...)).(*htmlCanvas )
}
func (e *htmlCanvas ) Text (v any ) HTMLCanvas {
return e .Body (Text (v ))
}
func (e *htmlCanvas ) Textf (format string , v ...any ) HTMLCanvas {
return e .Body (Textf (format , v ...))
}
func (e *htmlCanvas ) AccessKey (format string , v ...any ) HTMLCanvas {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlCanvas ) Aria (k string , v any ) HTMLCanvas {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCanvas ) Attr (n string , v any ) HTMLCanvas {
e .setAttr (n , v )
return e
}
func (e *htmlCanvas ) Class (v ...string ) HTMLCanvas {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlCanvas ) ContentEditable (v bool ) HTMLCanvas {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlCanvas ) DataSet (k string , v any ) HTMLCanvas {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCanvas ) DataSets (ds map [string ]any ) HTMLCanvas {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlCanvas ) Dir (format string , v ...any ) HTMLCanvas {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlCanvas ) Draggable (v bool ) HTMLCanvas {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlCanvas ) Height (v int ) HTMLCanvas {
e .setAttr ("height" , v )
return e
}
func (e *htmlCanvas ) Hidden (v bool ) HTMLCanvas {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlCanvas ) ID (format string , v ...any ) HTMLCanvas {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlCanvas ) Lang (format string , v ...any ) HTMLCanvas {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlCanvas ) Role (format string , v ...any ) HTMLCanvas {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlCanvas ) Spellcheck (v bool ) HTMLCanvas {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlCanvas ) Style (k , format string , v ...any ) HTMLCanvas {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlCanvas ) Styles (s map [string ]string ) HTMLCanvas {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlCanvas ) TabIndex (v int ) HTMLCanvas {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlCanvas ) Title (format string , v ...any ) HTMLCanvas {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlCanvas ) Width (v int ) HTMLCanvas {
e .setAttr ("width" , v )
return e
}
func (e *htmlCanvas ) On (event string , h EventHandler , options ...EventOption ) HTMLCanvas {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlCanvas ) OnBlur (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("blur" , h , options ...)
}
func (e *htmlCanvas ) OnChange (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("change" , h , options ...)
}
func (e *htmlCanvas ) OnClick (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("click" , h , options ...)
}
func (e *htmlCanvas ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlCanvas ) OnCopy (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("copy" , h , options ...)
}
func (e *htmlCanvas ) OnCut (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("cut" , h , options ...)
}
func (e *htmlCanvas ) OnDblClick (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlCanvas ) OnDrag (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("drag" , h , options ...)
}
func (e *htmlCanvas ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("dragend" , h , options ...)
}
func (e *htmlCanvas ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlCanvas ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlCanvas ) OnDragOver (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("dragover" , h , options ...)
}
func (e *htmlCanvas ) OnDragStart (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlCanvas ) OnDrop (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("drop" , h , options ...)
}
func (e *htmlCanvas ) OnFocus (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("focus" , h , options ...)
}
func (e *htmlCanvas ) OnInput (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("input" , h , options ...)
}
func (e *htmlCanvas ) OnInvalid (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("invalid" , h , options ...)
}
func (e *htmlCanvas ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("keydown" , h , options ...)
}
func (e *htmlCanvas ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("keypress" , h , options ...)
}
func (e *htmlCanvas ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("keyup" , h , options ...)
}
func (e *htmlCanvas ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlCanvas ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlCanvas ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlCanvas ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlCanvas ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlCanvas ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlCanvas ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlCanvas ) OnPaste (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("paste" , h , options ...)
}
func (e *htmlCanvas ) OnReset (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("reset" , h , options ...)
}
func (e *htmlCanvas ) OnScroll (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("scroll" , h , options ...)
}
func (e *htmlCanvas ) OnSearch (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("search" , h , options ...)
}
func (e *htmlCanvas ) OnSelect (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("select" , h , options ...)
}
func (e *htmlCanvas ) OnSubmit (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("submit" , h , options ...)
}
func (e *htmlCanvas ) OnWheel (h EventHandler , options ...EventOption ) HTMLCanvas {
return e .On ("wheel" , h , options ...)
}
func (e *htmlCanvas ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlCanvas ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlCanvas ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlCanvas ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlCanvas ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlCanvas ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLCaption interface {
HTML
Body (elems ...UI ) HTMLCaption
Text (v any ) HTMLCaption
Textf (format string , v ...any ) HTMLCaption
AccessKey (format string , v ...any ) HTMLCaption
Aria (k string , v any ) HTMLCaption
Attr (n string , v any ) HTMLCaption
Class (v ...string ) HTMLCaption
ContentEditable (v bool ) HTMLCaption
DataSet (k string , v any ) HTMLCaption
DataSets (ds map [string ]any ) HTMLCaption
Dir (format string , v ...any ) HTMLCaption
Draggable (v bool ) HTMLCaption
Hidden (v bool ) HTMLCaption
ID (format string , v ...any ) HTMLCaption
Lang (format string , v ...any ) HTMLCaption
Role (format string , v ...any ) HTMLCaption
Spellcheck (v bool ) HTMLCaption
Style (k, format string , v ...any ) HTMLCaption
Styles (s map [string ]string ) HTMLCaption
TabIndex (v int ) HTMLCaption
Title (format string , v ...any ) HTMLCaption
On (event string , h EventHandler , options ...EventOption ) HTMLCaption
OnBlur (h EventHandler , options ...EventOption ) HTMLCaption
OnChange (h EventHandler , options ...EventOption ) HTMLCaption
OnClick (h EventHandler , options ...EventOption ) HTMLCaption
OnContextMenu (h EventHandler , options ...EventOption ) HTMLCaption
OnCopy (h EventHandler , options ...EventOption ) HTMLCaption
OnCut (h EventHandler , options ...EventOption ) HTMLCaption
OnDblClick (h EventHandler , options ...EventOption ) HTMLCaption
OnDrag (h EventHandler , options ...EventOption ) HTMLCaption
OnDragEnd (h EventHandler , options ...EventOption ) HTMLCaption
OnDragEnter (h EventHandler , options ...EventOption ) HTMLCaption
OnDragLeave (h EventHandler , options ...EventOption ) HTMLCaption
OnDragOver (h EventHandler , options ...EventOption ) HTMLCaption
OnDragStart (h EventHandler , options ...EventOption ) HTMLCaption
OnDrop (h EventHandler , options ...EventOption ) HTMLCaption
OnFocus (h EventHandler , options ...EventOption ) HTMLCaption
OnInput (h EventHandler , options ...EventOption ) HTMLCaption
OnInvalid (h EventHandler , options ...EventOption ) HTMLCaption
OnKeyDown (h EventHandler , options ...EventOption ) HTMLCaption
OnKeyPress (h EventHandler , options ...EventOption ) HTMLCaption
OnKeyUp (h EventHandler , options ...EventOption ) HTMLCaption
OnMouseDown (h EventHandler , options ...EventOption ) HTMLCaption
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCaption
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCaption
OnMouseMove (h EventHandler , options ...EventOption ) HTMLCaption
OnMouseOut (h EventHandler , options ...EventOption ) HTMLCaption
OnMouseOver (h EventHandler , options ...EventOption ) HTMLCaption
OnMouseUp (h EventHandler , options ...EventOption ) HTMLCaption
OnPaste (h EventHandler , options ...EventOption ) HTMLCaption
OnReset (h EventHandler , options ...EventOption ) HTMLCaption
OnScroll (h EventHandler , options ...EventOption ) HTMLCaption
OnSearch (h EventHandler , options ...EventOption ) HTMLCaption
OnSelect (h EventHandler , options ...EventOption ) HTMLCaption
OnSubmit (h EventHandler , options ...EventOption ) HTMLCaption
OnWheel (h EventHandler , options ...EventOption ) HTMLCaption
}
func Caption () HTMLCaption {
e := &htmlCaption {
htmlElement : htmlElement {
tag : "caption" ,
isSelfClosing : false ,
},
}
return e
}
type htmlCaption struct {
htmlElement
}
func (e *htmlCaption ) Body (v ...UI ) HTMLCaption {
return e .setBody (FilterUIElems (v ...)).(*htmlCaption )
}
func (e *htmlCaption ) Text (v any ) HTMLCaption {
return e .Body (Text (v ))
}
func (e *htmlCaption ) Textf (format string , v ...any ) HTMLCaption {
return e .Body (Textf (format , v ...))
}
func (e *htmlCaption ) AccessKey (format string , v ...any ) HTMLCaption {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlCaption ) Aria (k string , v any ) HTMLCaption {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCaption ) Attr (n string , v any ) HTMLCaption {
e .setAttr (n , v )
return e
}
func (e *htmlCaption ) Class (v ...string ) HTMLCaption {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlCaption ) ContentEditable (v bool ) HTMLCaption {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlCaption ) DataSet (k string , v any ) HTMLCaption {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCaption ) DataSets (ds map [string ]any ) HTMLCaption {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlCaption ) Dir (format string , v ...any ) HTMLCaption {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlCaption ) Draggable (v bool ) HTMLCaption {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlCaption ) Hidden (v bool ) HTMLCaption {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlCaption ) ID (format string , v ...any ) HTMLCaption {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlCaption ) Lang (format string , v ...any ) HTMLCaption {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlCaption ) Role (format string , v ...any ) HTMLCaption {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlCaption ) Spellcheck (v bool ) HTMLCaption {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlCaption ) Style (k , format string , v ...any ) HTMLCaption {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlCaption ) Styles (s map [string ]string ) HTMLCaption {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlCaption ) TabIndex (v int ) HTMLCaption {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlCaption ) Title (format string , v ...any ) HTMLCaption {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlCaption ) On (event string , h EventHandler , options ...EventOption ) HTMLCaption {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlCaption ) OnBlur (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("blur" , h , options ...)
}
func (e *htmlCaption ) OnChange (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("change" , h , options ...)
}
func (e *htmlCaption ) OnClick (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("click" , h , options ...)
}
func (e *htmlCaption ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlCaption ) OnCopy (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("copy" , h , options ...)
}
func (e *htmlCaption ) OnCut (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("cut" , h , options ...)
}
func (e *htmlCaption ) OnDblClick (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlCaption ) OnDrag (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("drag" , h , options ...)
}
func (e *htmlCaption ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("dragend" , h , options ...)
}
func (e *htmlCaption ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlCaption ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlCaption ) OnDragOver (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("dragover" , h , options ...)
}
func (e *htmlCaption ) OnDragStart (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlCaption ) OnDrop (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("drop" , h , options ...)
}
func (e *htmlCaption ) OnFocus (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("focus" , h , options ...)
}
func (e *htmlCaption ) OnInput (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("input" , h , options ...)
}
func (e *htmlCaption ) OnInvalid (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("invalid" , h , options ...)
}
func (e *htmlCaption ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("keydown" , h , options ...)
}
func (e *htmlCaption ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("keypress" , h , options ...)
}
func (e *htmlCaption ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("keyup" , h , options ...)
}
func (e *htmlCaption ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlCaption ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlCaption ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlCaption ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlCaption ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlCaption ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlCaption ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlCaption ) OnPaste (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("paste" , h , options ...)
}
func (e *htmlCaption ) OnReset (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("reset" , h , options ...)
}
func (e *htmlCaption ) OnScroll (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("scroll" , h , options ...)
}
func (e *htmlCaption ) OnSearch (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("search" , h , options ...)
}
func (e *htmlCaption ) OnSelect (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("select" , h , options ...)
}
func (e *htmlCaption ) OnSubmit (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("submit" , h , options ...)
}
func (e *htmlCaption ) OnWheel (h EventHandler , options ...EventOption ) HTMLCaption {
return e .On ("wheel" , h , options ...)
}
func (e *htmlCaption ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlCaption ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlCaption ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlCaption ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlCaption ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlCaption ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLCite interface {
HTML
Body (elems ...UI ) HTMLCite
Text (v any ) HTMLCite
Textf (format string , v ...any ) HTMLCite
AccessKey (format string , v ...any ) HTMLCite
Aria (k string , v any ) HTMLCite
Attr (n string , v any ) HTMLCite
Class (v ...string ) HTMLCite
ContentEditable (v bool ) HTMLCite
DataSet (k string , v any ) HTMLCite
DataSets (ds map [string ]any ) HTMLCite
Dir (format string , v ...any ) HTMLCite
Draggable (v bool ) HTMLCite
Hidden (v bool ) HTMLCite
ID (format string , v ...any ) HTMLCite
Lang (format string , v ...any ) HTMLCite
Role (format string , v ...any ) HTMLCite
Spellcheck (v bool ) HTMLCite
Style (k, format string , v ...any ) HTMLCite
Styles (s map [string ]string ) HTMLCite
TabIndex (v int ) HTMLCite
Title (format string , v ...any ) HTMLCite
On (event string , h EventHandler , options ...EventOption ) HTMLCite
OnBlur (h EventHandler , options ...EventOption ) HTMLCite
OnChange (h EventHandler , options ...EventOption ) HTMLCite
OnClick (h EventHandler , options ...EventOption ) HTMLCite
OnContextMenu (h EventHandler , options ...EventOption ) HTMLCite
OnCopy (h EventHandler , options ...EventOption ) HTMLCite
OnCut (h EventHandler , options ...EventOption ) HTMLCite
OnDblClick (h EventHandler , options ...EventOption ) HTMLCite
OnDrag (h EventHandler , options ...EventOption ) HTMLCite
OnDragEnd (h EventHandler , options ...EventOption ) HTMLCite
OnDragEnter (h EventHandler , options ...EventOption ) HTMLCite
OnDragLeave (h EventHandler , options ...EventOption ) HTMLCite
OnDragOver (h EventHandler , options ...EventOption ) HTMLCite
OnDragStart (h EventHandler , options ...EventOption ) HTMLCite
OnDrop (h EventHandler , options ...EventOption ) HTMLCite
OnFocus (h EventHandler , options ...EventOption ) HTMLCite
OnInput (h EventHandler , options ...EventOption ) HTMLCite
OnInvalid (h EventHandler , options ...EventOption ) HTMLCite
OnKeyDown (h EventHandler , options ...EventOption ) HTMLCite
OnKeyPress (h EventHandler , options ...EventOption ) HTMLCite
OnKeyUp (h EventHandler , options ...EventOption ) HTMLCite
OnMouseDown (h EventHandler , options ...EventOption ) HTMLCite
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCite
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCite
OnMouseMove (h EventHandler , options ...EventOption ) HTMLCite
OnMouseOut (h EventHandler , options ...EventOption ) HTMLCite
OnMouseOver (h EventHandler , options ...EventOption ) HTMLCite
OnMouseUp (h EventHandler , options ...EventOption ) HTMLCite
OnPaste (h EventHandler , options ...EventOption ) HTMLCite
OnReset (h EventHandler , options ...EventOption ) HTMLCite
OnScroll (h EventHandler , options ...EventOption ) HTMLCite
OnSearch (h EventHandler , options ...EventOption ) HTMLCite
OnSelect (h EventHandler , options ...EventOption ) HTMLCite
OnSubmit (h EventHandler , options ...EventOption ) HTMLCite
OnWheel (h EventHandler , options ...EventOption ) HTMLCite
}
func Cite () HTMLCite {
e := &htmlCite {
htmlElement : htmlElement {
tag : "cite" ,
isSelfClosing : false ,
},
}
return e
}
type htmlCite struct {
htmlElement
}
func (e *htmlCite ) Body (v ...UI ) HTMLCite {
return e .setBody (FilterUIElems (v ...)).(*htmlCite )
}
func (e *htmlCite ) Text (v any ) HTMLCite {
return e .Body (Text (v ))
}
func (e *htmlCite ) Textf (format string , v ...any ) HTMLCite {
return e .Body (Textf (format , v ...))
}
func (e *htmlCite ) AccessKey (format string , v ...any ) HTMLCite {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlCite ) Aria (k string , v any ) HTMLCite {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCite ) Attr (n string , v any ) HTMLCite {
e .setAttr (n , v )
return e
}
func (e *htmlCite ) Class (v ...string ) HTMLCite {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlCite ) ContentEditable (v bool ) HTMLCite {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlCite ) DataSet (k string , v any ) HTMLCite {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCite ) DataSets (ds map [string ]any ) HTMLCite {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlCite ) Dir (format string , v ...any ) HTMLCite {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlCite ) Draggable (v bool ) HTMLCite {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlCite ) Hidden (v bool ) HTMLCite {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlCite ) ID (format string , v ...any ) HTMLCite {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlCite ) Lang (format string , v ...any ) HTMLCite {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlCite ) Role (format string , v ...any ) HTMLCite {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlCite ) Spellcheck (v bool ) HTMLCite {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlCite ) Style (k , format string , v ...any ) HTMLCite {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlCite ) Styles (s map [string ]string ) HTMLCite {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlCite ) TabIndex (v int ) HTMLCite {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlCite ) Title (format string , v ...any ) HTMLCite {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlCite ) On (event string , h EventHandler , options ...EventOption ) HTMLCite {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlCite ) OnBlur (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("blur" , h , options ...)
}
func (e *htmlCite ) OnChange (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("change" , h , options ...)
}
func (e *htmlCite ) OnClick (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("click" , h , options ...)
}
func (e *htmlCite ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlCite ) OnCopy (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("copy" , h , options ...)
}
func (e *htmlCite ) OnCut (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("cut" , h , options ...)
}
func (e *htmlCite ) OnDblClick (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlCite ) OnDrag (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("drag" , h , options ...)
}
func (e *htmlCite ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("dragend" , h , options ...)
}
func (e *htmlCite ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlCite ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlCite ) OnDragOver (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("dragover" , h , options ...)
}
func (e *htmlCite ) OnDragStart (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlCite ) OnDrop (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("drop" , h , options ...)
}
func (e *htmlCite ) OnFocus (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("focus" , h , options ...)
}
func (e *htmlCite ) OnInput (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("input" , h , options ...)
}
func (e *htmlCite ) OnInvalid (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("invalid" , h , options ...)
}
func (e *htmlCite ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("keydown" , h , options ...)
}
func (e *htmlCite ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("keypress" , h , options ...)
}
func (e *htmlCite ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("keyup" , h , options ...)
}
func (e *htmlCite ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlCite ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlCite ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlCite ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlCite ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlCite ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlCite ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlCite ) OnPaste (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("paste" , h , options ...)
}
func (e *htmlCite ) OnReset (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("reset" , h , options ...)
}
func (e *htmlCite ) OnScroll (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("scroll" , h , options ...)
}
func (e *htmlCite ) OnSearch (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("search" , h , options ...)
}
func (e *htmlCite ) OnSelect (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("select" , h , options ...)
}
func (e *htmlCite ) OnSubmit (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("submit" , h , options ...)
}
func (e *htmlCite ) OnWheel (h EventHandler , options ...EventOption ) HTMLCite {
return e .On ("wheel" , h , options ...)
}
func (e *htmlCite ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlCite ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlCite ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlCite ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlCite ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlCite ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLCode interface {
HTML
Body (elems ...UI ) HTMLCode
Text (v any ) HTMLCode
Textf (format string , v ...any ) HTMLCode
AccessKey (format string , v ...any ) HTMLCode
Aria (k string , v any ) HTMLCode
Attr (n string , v any ) HTMLCode
Class (v ...string ) HTMLCode
ContentEditable (v bool ) HTMLCode
DataSet (k string , v any ) HTMLCode
DataSets (ds map [string ]any ) HTMLCode
Dir (format string , v ...any ) HTMLCode
Draggable (v bool ) HTMLCode
Hidden (v bool ) HTMLCode
ID (format string , v ...any ) HTMLCode
Lang (format string , v ...any ) HTMLCode
Role (format string , v ...any ) HTMLCode
Spellcheck (v bool ) HTMLCode
Style (k, format string , v ...any ) HTMLCode
Styles (s map [string ]string ) HTMLCode
TabIndex (v int ) HTMLCode
Title (format string , v ...any ) HTMLCode
On (event string , h EventHandler , options ...EventOption ) HTMLCode
OnBlur (h EventHandler , options ...EventOption ) HTMLCode
OnChange (h EventHandler , options ...EventOption ) HTMLCode
OnClick (h EventHandler , options ...EventOption ) HTMLCode
OnContextMenu (h EventHandler , options ...EventOption ) HTMLCode
OnCopy (h EventHandler , options ...EventOption ) HTMLCode
OnCut (h EventHandler , options ...EventOption ) HTMLCode
OnDblClick (h EventHandler , options ...EventOption ) HTMLCode
OnDrag (h EventHandler , options ...EventOption ) HTMLCode
OnDragEnd (h EventHandler , options ...EventOption ) HTMLCode
OnDragEnter (h EventHandler , options ...EventOption ) HTMLCode
OnDragLeave (h EventHandler , options ...EventOption ) HTMLCode
OnDragOver (h EventHandler , options ...EventOption ) HTMLCode
OnDragStart (h EventHandler , options ...EventOption ) HTMLCode
OnDrop (h EventHandler , options ...EventOption ) HTMLCode
OnFocus (h EventHandler , options ...EventOption ) HTMLCode
OnInput (h EventHandler , options ...EventOption ) HTMLCode
OnInvalid (h EventHandler , options ...EventOption ) HTMLCode
OnKeyDown (h EventHandler , options ...EventOption ) HTMLCode
OnKeyPress (h EventHandler , options ...EventOption ) HTMLCode
OnKeyUp (h EventHandler , options ...EventOption ) HTMLCode
OnMouseDown (h EventHandler , options ...EventOption ) HTMLCode
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCode
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCode
OnMouseMove (h EventHandler , options ...EventOption ) HTMLCode
OnMouseOut (h EventHandler , options ...EventOption ) HTMLCode
OnMouseOver (h EventHandler , options ...EventOption ) HTMLCode
OnMouseUp (h EventHandler , options ...EventOption ) HTMLCode
OnPaste (h EventHandler , options ...EventOption ) HTMLCode
OnReset (h EventHandler , options ...EventOption ) HTMLCode
OnScroll (h EventHandler , options ...EventOption ) HTMLCode
OnSearch (h EventHandler , options ...EventOption ) HTMLCode
OnSelect (h EventHandler , options ...EventOption ) HTMLCode
OnSubmit (h EventHandler , options ...EventOption ) HTMLCode
OnWheel (h EventHandler , options ...EventOption ) HTMLCode
}
func Code () HTMLCode {
e := &htmlCode {
htmlElement : htmlElement {
tag : "code" ,
isSelfClosing : false ,
},
}
return e
}
type htmlCode struct {
htmlElement
}
func (e *htmlCode ) Body (v ...UI ) HTMLCode {
return e .setBody (FilterUIElems (v ...)).(*htmlCode )
}
func (e *htmlCode ) Text (v any ) HTMLCode {
return e .Body (Text (v ))
}
func (e *htmlCode ) Textf (format string , v ...any ) HTMLCode {
return e .Body (Textf (format , v ...))
}
func (e *htmlCode ) AccessKey (format string , v ...any ) HTMLCode {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlCode ) Aria (k string , v any ) HTMLCode {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCode ) Attr (n string , v any ) HTMLCode {
e .setAttr (n , v )
return e
}
func (e *htmlCode ) Class (v ...string ) HTMLCode {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlCode ) ContentEditable (v bool ) HTMLCode {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlCode ) DataSet (k string , v any ) HTMLCode {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCode ) DataSets (ds map [string ]any ) HTMLCode {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlCode ) Dir (format string , v ...any ) HTMLCode {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlCode ) Draggable (v bool ) HTMLCode {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlCode ) Hidden (v bool ) HTMLCode {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlCode ) ID (format string , v ...any ) HTMLCode {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlCode ) Lang (format string , v ...any ) HTMLCode {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlCode ) Role (format string , v ...any ) HTMLCode {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlCode ) Spellcheck (v bool ) HTMLCode {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlCode ) Style (k , format string , v ...any ) HTMLCode {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlCode ) Styles (s map [string ]string ) HTMLCode {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlCode ) TabIndex (v int ) HTMLCode {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlCode ) Title (format string , v ...any ) HTMLCode {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlCode ) On (event string , h EventHandler , options ...EventOption ) HTMLCode {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlCode ) OnBlur (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("blur" , h , options ...)
}
func (e *htmlCode ) OnChange (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("change" , h , options ...)
}
func (e *htmlCode ) OnClick (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("click" , h , options ...)
}
func (e *htmlCode ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlCode ) OnCopy (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("copy" , h , options ...)
}
func (e *htmlCode ) OnCut (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("cut" , h , options ...)
}
func (e *htmlCode ) OnDblClick (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlCode ) OnDrag (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("drag" , h , options ...)
}
func (e *htmlCode ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("dragend" , h , options ...)
}
func (e *htmlCode ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlCode ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlCode ) OnDragOver (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("dragover" , h , options ...)
}
func (e *htmlCode ) OnDragStart (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlCode ) OnDrop (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("drop" , h , options ...)
}
func (e *htmlCode ) OnFocus (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("focus" , h , options ...)
}
func (e *htmlCode ) OnInput (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("input" , h , options ...)
}
func (e *htmlCode ) OnInvalid (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("invalid" , h , options ...)
}
func (e *htmlCode ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("keydown" , h , options ...)
}
func (e *htmlCode ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("keypress" , h , options ...)
}
func (e *htmlCode ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("keyup" , h , options ...)
}
func (e *htmlCode ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlCode ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlCode ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlCode ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlCode ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlCode ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlCode ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlCode ) OnPaste (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("paste" , h , options ...)
}
func (e *htmlCode ) OnReset (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("reset" , h , options ...)
}
func (e *htmlCode ) OnScroll (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("scroll" , h , options ...)
}
func (e *htmlCode ) OnSearch (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("search" , h , options ...)
}
func (e *htmlCode ) OnSelect (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("select" , h , options ...)
}
func (e *htmlCode ) OnSubmit (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("submit" , h , options ...)
}
func (e *htmlCode ) OnWheel (h EventHandler , options ...EventOption ) HTMLCode {
return e .On ("wheel" , h , options ...)
}
func (e *htmlCode ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlCode ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlCode ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlCode ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlCode ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlCode ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLCol interface {
HTML
AccessKey (format string , v ...any ) HTMLCol
Aria (k string , v any ) HTMLCol
Attr (n string , v any ) HTMLCol
Class (v ...string ) HTMLCol
ContentEditable (v bool ) HTMLCol
DataSet (k string , v any ) HTMLCol
DataSets (ds map [string ]any ) HTMLCol
Dir (format string , v ...any ) HTMLCol
Draggable (v bool ) HTMLCol
Hidden (v bool ) HTMLCol
ID (format string , v ...any ) HTMLCol
Lang (format string , v ...any ) HTMLCol
Role (format string , v ...any ) HTMLCol
Span (v int ) HTMLCol
Spellcheck (v bool ) HTMLCol
Style (k, format string , v ...any ) HTMLCol
Styles (s map [string ]string ) HTMLCol
TabIndex (v int ) HTMLCol
Title (format string , v ...any ) HTMLCol
On (event string , h EventHandler , options ...EventOption ) HTMLCol
OnBlur (h EventHandler , options ...EventOption ) HTMLCol
OnChange (h EventHandler , options ...EventOption ) HTMLCol
OnClick (h EventHandler , options ...EventOption ) HTMLCol
OnContextMenu (h EventHandler , options ...EventOption ) HTMLCol
OnCopy (h EventHandler , options ...EventOption ) HTMLCol
OnCut (h EventHandler , options ...EventOption ) HTMLCol
OnDblClick (h EventHandler , options ...EventOption ) HTMLCol
OnDrag (h EventHandler , options ...EventOption ) HTMLCol
OnDragEnd (h EventHandler , options ...EventOption ) HTMLCol
OnDragEnter (h EventHandler , options ...EventOption ) HTMLCol
OnDragLeave (h EventHandler , options ...EventOption ) HTMLCol
OnDragOver (h EventHandler , options ...EventOption ) HTMLCol
OnDragStart (h EventHandler , options ...EventOption ) HTMLCol
OnDrop (h EventHandler , options ...EventOption ) HTMLCol
OnFocus (h EventHandler , options ...EventOption ) HTMLCol
OnInput (h EventHandler , options ...EventOption ) HTMLCol
OnInvalid (h EventHandler , options ...EventOption ) HTMLCol
OnKeyDown (h EventHandler , options ...EventOption ) HTMLCol
OnKeyPress (h EventHandler , options ...EventOption ) HTMLCol
OnKeyUp (h EventHandler , options ...EventOption ) HTMLCol
OnMouseDown (h EventHandler , options ...EventOption ) HTMLCol
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCol
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCol
OnMouseMove (h EventHandler , options ...EventOption ) HTMLCol
OnMouseOut (h EventHandler , options ...EventOption ) HTMLCol
OnMouseOver (h EventHandler , options ...EventOption ) HTMLCol
OnMouseUp (h EventHandler , options ...EventOption ) HTMLCol
OnPaste (h EventHandler , options ...EventOption ) HTMLCol
OnReset (h EventHandler , options ...EventOption ) HTMLCol
OnScroll (h EventHandler , options ...EventOption ) HTMLCol
OnSearch (h EventHandler , options ...EventOption ) HTMLCol
OnSelect (h EventHandler , options ...EventOption ) HTMLCol
OnSubmit (h EventHandler , options ...EventOption ) HTMLCol
OnWheel (h EventHandler , options ...EventOption ) HTMLCol
}
func Col () HTMLCol {
e := &htmlCol {
htmlElement : htmlElement {
tag : "col" ,
isSelfClosing : true ,
},
}
return e
}
type htmlCol struct {
htmlElement
}
func (e *htmlCol ) AccessKey (format string , v ...any ) HTMLCol {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlCol ) Aria (k string , v any ) HTMLCol {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCol ) Attr (n string , v any ) HTMLCol {
e .setAttr (n , v )
return e
}
func (e *htmlCol ) Class (v ...string ) HTMLCol {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlCol ) ContentEditable (v bool ) HTMLCol {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlCol ) DataSet (k string , v any ) HTMLCol {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlCol ) DataSets (ds map [string ]any ) HTMLCol {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlCol ) Dir (format string , v ...any ) HTMLCol {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlCol ) Draggable (v bool ) HTMLCol {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlCol ) Hidden (v bool ) HTMLCol {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlCol ) ID (format string , v ...any ) HTMLCol {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlCol ) Lang (format string , v ...any ) HTMLCol {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlCol ) Role (format string , v ...any ) HTMLCol {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlCol ) Span (v int ) HTMLCol {
e .setAttr ("span" , v )
return e
}
func (e *htmlCol ) Spellcheck (v bool ) HTMLCol {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlCol ) Style (k , format string , v ...any ) HTMLCol {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlCol ) Styles (s map [string ]string ) HTMLCol {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlCol ) TabIndex (v int ) HTMLCol {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlCol ) Title (format string , v ...any ) HTMLCol {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlCol ) On (event string , h EventHandler , options ...EventOption ) HTMLCol {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlCol ) OnBlur (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("blur" , h , options ...)
}
func (e *htmlCol ) OnChange (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("change" , h , options ...)
}
func (e *htmlCol ) OnClick (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("click" , h , options ...)
}
func (e *htmlCol ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlCol ) OnCopy (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("copy" , h , options ...)
}
func (e *htmlCol ) OnCut (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("cut" , h , options ...)
}
func (e *htmlCol ) OnDblClick (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlCol ) OnDrag (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("drag" , h , options ...)
}
func (e *htmlCol ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("dragend" , h , options ...)
}
func (e *htmlCol ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlCol ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlCol ) OnDragOver (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("dragover" , h , options ...)
}
func (e *htmlCol ) OnDragStart (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlCol ) OnDrop (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("drop" , h , options ...)
}
func (e *htmlCol ) OnFocus (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("focus" , h , options ...)
}
func (e *htmlCol ) OnInput (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("input" , h , options ...)
}
func (e *htmlCol ) OnInvalid (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("invalid" , h , options ...)
}
func (e *htmlCol ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("keydown" , h , options ...)
}
func (e *htmlCol ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("keypress" , h , options ...)
}
func (e *htmlCol ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("keyup" , h , options ...)
}
func (e *htmlCol ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlCol ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlCol ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlCol ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlCol ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlCol ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlCol ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlCol ) OnPaste (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("paste" , h , options ...)
}
func (e *htmlCol ) OnReset (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("reset" , h , options ...)
}
func (e *htmlCol ) OnScroll (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("scroll" , h , options ...)
}
func (e *htmlCol ) OnSearch (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("search" , h , options ...)
}
func (e *htmlCol ) OnSelect (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("select" , h , options ...)
}
func (e *htmlCol ) OnSubmit (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("submit" , h , options ...)
}
func (e *htmlCol ) OnWheel (h EventHandler , options ...EventOption ) HTMLCol {
return e .On ("wheel" , h , options ...)
}
func (e *htmlCol ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlCol ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlCol ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlCol ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlCol ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlCol ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLColGroup interface {
HTML
Body (elems ...UI ) HTMLColGroup
Text (v any ) HTMLColGroup
Textf (format string , v ...any ) HTMLColGroup
AccessKey (format string , v ...any ) HTMLColGroup
Aria (k string , v any ) HTMLColGroup
Attr (n string , v any ) HTMLColGroup
Class (v ...string ) HTMLColGroup
ContentEditable (v bool ) HTMLColGroup
DataSet (k string , v any ) HTMLColGroup
DataSets (ds map [string ]any ) HTMLColGroup
Dir (format string , v ...any ) HTMLColGroup
Draggable (v bool ) HTMLColGroup
Hidden (v bool ) HTMLColGroup
ID (format string , v ...any ) HTMLColGroup
Lang (format string , v ...any ) HTMLColGroup
Role (format string , v ...any ) HTMLColGroup
Span (v int ) HTMLColGroup
Spellcheck (v bool ) HTMLColGroup
Style (k, format string , v ...any ) HTMLColGroup
Styles (s map [string ]string ) HTMLColGroup
TabIndex (v int ) HTMLColGroup
Title (format string , v ...any ) HTMLColGroup
On (event string , h EventHandler , options ...EventOption ) HTMLColGroup
OnBlur (h EventHandler , options ...EventOption ) HTMLColGroup
OnChange (h EventHandler , options ...EventOption ) HTMLColGroup
OnClick (h EventHandler , options ...EventOption ) HTMLColGroup
OnContextMenu (h EventHandler , options ...EventOption ) HTMLColGroup
OnCopy (h EventHandler , options ...EventOption ) HTMLColGroup
OnCut (h EventHandler , options ...EventOption ) HTMLColGroup
OnDblClick (h EventHandler , options ...EventOption ) HTMLColGroup
OnDrag (h EventHandler , options ...EventOption ) HTMLColGroup
OnDragEnd (h EventHandler , options ...EventOption ) HTMLColGroup
OnDragEnter (h EventHandler , options ...EventOption ) HTMLColGroup
OnDragLeave (h EventHandler , options ...EventOption ) HTMLColGroup
OnDragOver (h EventHandler , options ...EventOption ) HTMLColGroup
OnDragStart (h EventHandler , options ...EventOption ) HTMLColGroup
OnDrop (h EventHandler , options ...EventOption ) HTMLColGroup
OnFocus (h EventHandler , options ...EventOption ) HTMLColGroup
OnInput (h EventHandler , options ...EventOption ) HTMLColGroup
OnInvalid (h EventHandler , options ...EventOption ) HTMLColGroup
OnKeyDown (h EventHandler , options ...EventOption ) HTMLColGroup
OnKeyPress (h EventHandler , options ...EventOption ) HTMLColGroup
OnKeyUp (h EventHandler , options ...EventOption ) HTMLColGroup
OnMouseDown (h EventHandler , options ...EventOption ) HTMLColGroup
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLColGroup
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLColGroup
OnMouseMove (h EventHandler , options ...EventOption ) HTMLColGroup
OnMouseOut (h EventHandler , options ...EventOption ) HTMLColGroup
OnMouseOver (h EventHandler , options ...EventOption ) HTMLColGroup
OnMouseUp (h EventHandler , options ...EventOption ) HTMLColGroup
OnPaste (h EventHandler , options ...EventOption ) HTMLColGroup
OnReset (h EventHandler , options ...EventOption ) HTMLColGroup
OnScroll (h EventHandler , options ...EventOption ) HTMLColGroup
OnSearch (h EventHandler , options ...EventOption ) HTMLColGroup
OnSelect (h EventHandler , options ...EventOption ) HTMLColGroup
OnSubmit (h EventHandler , options ...EventOption ) HTMLColGroup
OnWheel (h EventHandler , options ...EventOption ) HTMLColGroup
}
func ColGroup () HTMLColGroup {
e := &htmlColGroup {
htmlElement : htmlElement {
tag : "colgroup" ,
isSelfClosing : false ,
},
}
return e
}
type htmlColGroup struct {
htmlElement
}
func (e *htmlColGroup ) Body (v ...UI ) HTMLColGroup {
return e .setBody (FilterUIElems (v ...)).(*htmlColGroup )
}
func (e *htmlColGroup ) Text (v any ) HTMLColGroup {
return e .Body (Text (v ))
}
func (e *htmlColGroup ) Textf (format string , v ...any ) HTMLColGroup {
return e .Body (Textf (format , v ...))
}
func (e *htmlColGroup ) AccessKey (format string , v ...any ) HTMLColGroup {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlColGroup ) Aria (k string , v any ) HTMLColGroup {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlColGroup ) Attr (n string , v any ) HTMLColGroup {
e .setAttr (n , v )
return e
}
func (e *htmlColGroup ) Class (v ...string ) HTMLColGroup {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlColGroup ) ContentEditable (v bool ) HTMLColGroup {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlColGroup ) DataSet (k string , v any ) HTMLColGroup {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlColGroup ) DataSets (ds map [string ]any ) HTMLColGroup {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlColGroup ) Dir (format string , v ...any ) HTMLColGroup {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlColGroup ) Draggable (v bool ) HTMLColGroup {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlColGroup ) Hidden (v bool ) HTMLColGroup {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlColGroup ) ID (format string , v ...any ) HTMLColGroup {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlColGroup ) Lang (format string , v ...any ) HTMLColGroup {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlColGroup ) Role (format string , v ...any ) HTMLColGroup {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlColGroup ) Span (v int ) HTMLColGroup {
e .setAttr ("span" , v )
return e
}
func (e *htmlColGroup ) Spellcheck (v bool ) HTMLColGroup {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlColGroup ) Style (k , format string , v ...any ) HTMLColGroup {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlColGroup ) Styles (s map [string ]string ) HTMLColGroup {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlColGroup ) TabIndex (v int ) HTMLColGroup {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlColGroup ) Title (format string , v ...any ) HTMLColGroup {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlColGroup ) On (event string , h EventHandler , options ...EventOption ) HTMLColGroup {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlColGroup ) OnBlur (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("blur" , h , options ...)
}
func (e *htmlColGroup ) OnChange (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("change" , h , options ...)
}
func (e *htmlColGroup ) OnClick (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("click" , h , options ...)
}
func (e *htmlColGroup ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlColGroup ) OnCopy (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("copy" , h , options ...)
}
func (e *htmlColGroup ) OnCut (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("cut" , h , options ...)
}
func (e *htmlColGroup ) OnDblClick (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlColGroup ) OnDrag (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("drag" , h , options ...)
}
func (e *htmlColGroup ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("dragend" , h , options ...)
}
func (e *htmlColGroup ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlColGroup ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlColGroup ) OnDragOver (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("dragover" , h , options ...)
}
func (e *htmlColGroup ) OnDragStart (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlColGroup ) OnDrop (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("drop" , h , options ...)
}
func (e *htmlColGroup ) OnFocus (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("focus" , h , options ...)
}
func (e *htmlColGroup ) OnInput (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("input" , h , options ...)
}
func (e *htmlColGroup ) OnInvalid (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("invalid" , h , options ...)
}
func (e *htmlColGroup ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("keydown" , h , options ...)
}
func (e *htmlColGroup ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("keypress" , h , options ...)
}
func (e *htmlColGroup ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("keyup" , h , options ...)
}
func (e *htmlColGroup ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlColGroup ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlColGroup ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlColGroup ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlColGroup ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlColGroup ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlColGroup ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlColGroup ) OnPaste (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("paste" , h , options ...)
}
func (e *htmlColGroup ) OnReset (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("reset" , h , options ...)
}
func (e *htmlColGroup ) OnScroll (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("scroll" , h , options ...)
}
func (e *htmlColGroup ) OnSearch (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("search" , h , options ...)
}
func (e *htmlColGroup ) OnSelect (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("select" , h , options ...)
}
func (e *htmlColGroup ) OnSubmit (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("submit" , h , options ...)
}
func (e *htmlColGroup ) OnWheel (h EventHandler , options ...EventOption ) HTMLColGroup {
return e .On ("wheel" , h , options ...)
}
func (e *htmlColGroup ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlColGroup ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlColGroup ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlColGroup ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlColGroup ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlColGroup ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLData interface {
HTML
Body (elems ...UI ) HTMLData
Text (v any ) HTMLData
Textf (format string , v ...any ) HTMLData
AccessKey (format string , v ...any ) HTMLData
Aria (k string , v any ) HTMLData
Attr (n string , v any ) HTMLData
Class (v ...string ) HTMLData
ContentEditable (v bool ) HTMLData
DataSet (k string , v any ) HTMLData
DataSets (ds map [string ]any ) HTMLData
Dir (format string , v ...any ) HTMLData
Draggable (v bool ) HTMLData
Hidden (v bool ) HTMLData
ID (format string , v ...any ) HTMLData
Lang (format string , v ...any ) HTMLData
Role (format string , v ...any ) HTMLData
Spellcheck (v bool ) HTMLData
Style (k, format string , v ...any ) HTMLData
Styles (s map [string ]string ) HTMLData
TabIndex (v int ) HTMLData
Title (format string , v ...any ) HTMLData
Value (v any ) HTMLData
On (event string , h EventHandler , options ...EventOption ) HTMLData
}
func Data () HTMLData {
e := &htmlData {
htmlElement : htmlElement {
tag : "data" ,
isSelfClosing : false ,
},
}
return e
}
type htmlData struct {
htmlElement
}
func (e *htmlData ) Body (v ...UI ) HTMLData {
return e .setBody (FilterUIElems (v ...)).(*htmlData )
}
func (e *htmlData ) Text (v any ) HTMLData {
return e .Body (Text (v ))
}
func (e *htmlData ) Textf (format string , v ...any ) HTMLData {
return e .Body (Textf (format , v ...))
}
func (e *htmlData ) AccessKey (format string , v ...any ) HTMLData {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlData ) Aria (k string , v any ) HTMLData {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlData ) Attr (n string , v any ) HTMLData {
e .setAttr (n , v )
return e
}
func (e *htmlData ) Class (v ...string ) HTMLData {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlData ) ContentEditable (v bool ) HTMLData {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlData ) DataSet (k string , v any ) HTMLData {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlData ) DataSets (ds map [string ]any ) HTMLData {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlData ) Dir (format string , v ...any ) HTMLData {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlData ) Draggable (v bool ) HTMLData {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlData ) Hidden (v bool ) HTMLData {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlData ) ID (format string , v ...any ) HTMLData {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlData ) Lang (format string , v ...any ) HTMLData {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlData ) Role (format string , v ...any ) HTMLData {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlData ) Spellcheck (v bool ) HTMLData {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlData ) Style (k , format string , v ...any ) HTMLData {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlData ) Styles (s map [string ]string ) HTMLData {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlData ) TabIndex (v int ) HTMLData {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlData ) Title (format string , v ...any ) HTMLData {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlData ) Value (v any ) HTMLData {
e .setAttr ("value" , v )
return e
}
func (e *htmlData ) On (event string , h EventHandler , options ...EventOption ) HTMLData {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlData ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlData ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlData ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlData ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlData ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlData ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDataList interface {
HTML
Body (elems ...UI ) HTMLDataList
Text (v any ) HTMLDataList
Textf (format string , v ...any ) HTMLDataList
AccessKey (format string , v ...any ) HTMLDataList
Aria (k string , v any ) HTMLDataList
Attr (n string , v any ) HTMLDataList
Class (v ...string ) HTMLDataList
ContentEditable (v bool ) HTMLDataList
DataSet (k string , v any ) HTMLDataList
DataSets (ds map [string ]any ) HTMLDataList
Dir (format string , v ...any ) HTMLDataList
Draggable (v bool ) HTMLDataList
Hidden (v bool ) HTMLDataList
ID (format string , v ...any ) HTMLDataList
Lang (format string , v ...any ) HTMLDataList
Role (format string , v ...any ) HTMLDataList
Spellcheck (v bool ) HTMLDataList
Style (k, format string , v ...any ) HTMLDataList
Styles (s map [string ]string ) HTMLDataList
TabIndex (v int ) HTMLDataList
Title (format string , v ...any ) HTMLDataList
On (event string , h EventHandler , options ...EventOption ) HTMLDataList
OnBlur (h EventHandler , options ...EventOption ) HTMLDataList
OnChange (h EventHandler , options ...EventOption ) HTMLDataList
OnClick (h EventHandler , options ...EventOption ) HTMLDataList
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDataList
OnCopy (h EventHandler , options ...EventOption ) HTMLDataList
OnCut (h EventHandler , options ...EventOption ) HTMLDataList
OnDblClick (h EventHandler , options ...EventOption ) HTMLDataList
OnDrag (h EventHandler , options ...EventOption ) HTMLDataList
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDataList
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDataList
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDataList
OnDragOver (h EventHandler , options ...EventOption ) HTMLDataList
OnDragStart (h EventHandler , options ...EventOption ) HTMLDataList
OnDrop (h EventHandler , options ...EventOption ) HTMLDataList
OnFocus (h EventHandler , options ...EventOption ) HTMLDataList
OnInput (h EventHandler , options ...EventOption ) HTMLDataList
OnInvalid (h EventHandler , options ...EventOption ) HTMLDataList
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDataList
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDataList
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDataList
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDataList
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDataList
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDataList
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDataList
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDataList
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDataList
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDataList
OnPaste (h EventHandler , options ...EventOption ) HTMLDataList
OnReset (h EventHandler , options ...EventOption ) HTMLDataList
OnScroll (h EventHandler , options ...EventOption ) HTMLDataList
OnSearch (h EventHandler , options ...EventOption ) HTMLDataList
OnSelect (h EventHandler , options ...EventOption ) HTMLDataList
OnSubmit (h EventHandler , options ...EventOption ) HTMLDataList
OnWheel (h EventHandler , options ...EventOption ) HTMLDataList
}
func DataList () HTMLDataList {
e := &htmlDataList {
htmlElement : htmlElement {
tag : "datalist" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDataList struct {
htmlElement
}
func (e *htmlDataList ) Body (v ...UI ) HTMLDataList {
return e .setBody (FilterUIElems (v ...)).(*htmlDataList )
}
func (e *htmlDataList ) Text (v any ) HTMLDataList {
return e .Body (Text (v ))
}
func (e *htmlDataList ) Textf (format string , v ...any ) HTMLDataList {
return e .Body (Textf (format , v ...))
}
func (e *htmlDataList ) AccessKey (format string , v ...any ) HTMLDataList {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDataList ) Aria (k string , v any ) HTMLDataList {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDataList ) Attr (n string , v any ) HTMLDataList {
e .setAttr (n , v )
return e
}
func (e *htmlDataList ) Class (v ...string ) HTMLDataList {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDataList ) ContentEditable (v bool ) HTMLDataList {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDataList ) DataSet (k string , v any ) HTMLDataList {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDataList ) DataSets (ds map [string ]any ) HTMLDataList {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDataList ) Dir (format string , v ...any ) HTMLDataList {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDataList ) Draggable (v bool ) HTMLDataList {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDataList ) Hidden (v bool ) HTMLDataList {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDataList ) ID (format string , v ...any ) HTMLDataList {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDataList ) Lang (format string , v ...any ) HTMLDataList {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDataList ) Role (format string , v ...any ) HTMLDataList {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDataList ) Spellcheck (v bool ) HTMLDataList {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDataList ) Style (k , format string , v ...any ) HTMLDataList {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDataList ) Styles (s map [string ]string ) HTMLDataList {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDataList ) TabIndex (v int ) HTMLDataList {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDataList ) Title (format string , v ...any ) HTMLDataList {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDataList ) On (event string , h EventHandler , options ...EventOption ) HTMLDataList {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDataList ) OnBlur (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("blur" , h , options ...)
}
func (e *htmlDataList ) OnChange (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("change" , h , options ...)
}
func (e *htmlDataList ) OnClick (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("click" , h , options ...)
}
func (e *htmlDataList ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDataList ) OnCopy (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("copy" , h , options ...)
}
func (e *htmlDataList ) OnCut (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("cut" , h , options ...)
}
func (e *htmlDataList ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDataList ) OnDrag (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("drag" , h , options ...)
}
func (e *htmlDataList ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDataList ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDataList ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDataList ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDataList ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDataList ) OnDrop (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("drop" , h , options ...)
}
func (e *htmlDataList ) OnFocus (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("focus" , h , options ...)
}
func (e *htmlDataList ) OnInput (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("input" , h , options ...)
}
func (e *htmlDataList ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDataList ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDataList ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDataList ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDataList ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDataList ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDataList ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDataList ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDataList ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDataList ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDataList ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDataList ) OnPaste (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("paste" , h , options ...)
}
func (e *htmlDataList ) OnReset (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("reset" , h , options ...)
}
func (e *htmlDataList ) OnScroll (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDataList ) OnSearch (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("search" , h , options ...)
}
func (e *htmlDataList ) OnSelect (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("select" , h , options ...)
}
func (e *htmlDataList ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("submit" , h , options ...)
}
func (e *htmlDataList ) OnWheel (h EventHandler , options ...EventOption ) HTMLDataList {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDataList ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDataList ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDataList ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDataList ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDataList ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDataList ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDd interface {
HTML
Body (elems ...UI ) HTMLDd
Text (v any ) HTMLDd
Textf (format string , v ...any ) HTMLDd
AccessKey (format string , v ...any ) HTMLDd
Aria (k string , v any ) HTMLDd
Attr (n string , v any ) HTMLDd
Class (v ...string ) HTMLDd
ContentEditable (v bool ) HTMLDd
DataSet (k string , v any ) HTMLDd
DataSets (ds map [string ]any ) HTMLDd
Dir (format string , v ...any ) HTMLDd
Draggable (v bool ) HTMLDd
Hidden (v bool ) HTMLDd
ID (format string , v ...any ) HTMLDd
Lang (format string , v ...any ) HTMLDd
Role (format string , v ...any ) HTMLDd
Spellcheck (v bool ) HTMLDd
Style (k, format string , v ...any ) HTMLDd
Styles (s map [string ]string ) HTMLDd
TabIndex (v int ) HTMLDd
Title (format string , v ...any ) HTMLDd
On (event string , h EventHandler , options ...EventOption ) HTMLDd
OnBlur (h EventHandler , options ...EventOption ) HTMLDd
OnChange (h EventHandler , options ...EventOption ) HTMLDd
OnClick (h EventHandler , options ...EventOption ) HTMLDd
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDd
OnCopy (h EventHandler , options ...EventOption ) HTMLDd
OnCut (h EventHandler , options ...EventOption ) HTMLDd
OnDblClick (h EventHandler , options ...EventOption ) HTMLDd
OnDrag (h EventHandler , options ...EventOption ) HTMLDd
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDd
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDd
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDd
OnDragOver (h EventHandler , options ...EventOption ) HTMLDd
OnDragStart (h EventHandler , options ...EventOption ) HTMLDd
OnDrop (h EventHandler , options ...EventOption ) HTMLDd
OnFocus (h EventHandler , options ...EventOption ) HTMLDd
OnInput (h EventHandler , options ...EventOption ) HTMLDd
OnInvalid (h EventHandler , options ...EventOption ) HTMLDd
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDd
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDd
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDd
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDd
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDd
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDd
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDd
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDd
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDd
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDd
OnPaste (h EventHandler , options ...EventOption ) HTMLDd
OnReset (h EventHandler , options ...EventOption ) HTMLDd
OnScroll (h EventHandler , options ...EventOption ) HTMLDd
OnSearch (h EventHandler , options ...EventOption ) HTMLDd
OnSelect (h EventHandler , options ...EventOption ) HTMLDd
OnSubmit (h EventHandler , options ...EventOption ) HTMLDd
OnWheel (h EventHandler , options ...EventOption ) HTMLDd
}
func Dd () HTMLDd {
e := &htmlDd {
htmlElement : htmlElement {
tag : "dd" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDd struct {
htmlElement
}
func (e *htmlDd ) Body (v ...UI ) HTMLDd {
return e .setBody (FilterUIElems (v ...)).(*htmlDd )
}
func (e *htmlDd ) Text (v any ) HTMLDd {
return e .Body (Text (v ))
}
func (e *htmlDd ) Textf (format string , v ...any ) HTMLDd {
return e .Body (Textf (format , v ...))
}
func (e *htmlDd ) AccessKey (format string , v ...any ) HTMLDd {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDd ) Aria (k string , v any ) HTMLDd {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDd ) Attr (n string , v any ) HTMLDd {
e .setAttr (n , v )
return e
}
func (e *htmlDd ) Class (v ...string ) HTMLDd {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDd ) ContentEditable (v bool ) HTMLDd {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDd ) DataSet (k string , v any ) HTMLDd {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDd ) DataSets (ds map [string ]any ) HTMLDd {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDd ) Dir (format string , v ...any ) HTMLDd {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDd ) Draggable (v bool ) HTMLDd {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDd ) Hidden (v bool ) HTMLDd {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDd ) ID (format string , v ...any ) HTMLDd {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDd ) Lang (format string , v ...any ) HTMLDd {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDd ) Role (format string , v ...any ) HTMLDd {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDd ) Spellcheck (v bool ) HTMLDd {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDd ) Style (k , format string , v ...any ) HTMLDd {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDd ) Styles (s map [string ]string ) HTMLDd {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDd ) TabIndex (v int ) HTMLDd {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDd ) Title (format string , v ...any ) HTMLDd {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDd ) On (event string , h EventHandler , options ...EventOption ) HTMLDd {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDd ) OnBlur (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("blur" , h , options ...)
}
func (e *htmlDd ) OnChange (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("change" , h , options ...)
}
func (e *htmlDd ) OnClick (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("click" , h , options ...)
}
func (e *htmlDd ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDd ) OnCopy (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("copy" , h , options ...)
}
func (e *htmlDd ) OnCut (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("cut" , h , options ...)
}
func (e *htmlDd ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDd ) OnDrag (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("drag" , h , options ...)
}
func (e *htmlDd ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDd ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDd ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDd ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDd ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDd ) OnDrop (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("drop" , h , options ...)
}
func (e *htmlDd ) OnFocus (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("focus" , h , options ...)
}
func (e *htmlDd ) OnInput (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("input" , h , options ...)
}
func (e *htmlDd ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDd ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDd ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDd ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDd ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDd ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDd ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDd ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDd ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDd ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDd ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDd ) OnPaste (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("paste" , h , options ...)
}
func (e *htmlDd ) OnReset (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("reset" , h , options ...)
}
func (e *htmlDd ) OnScroll (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDd ) OnSearch (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("search" , h , options ...)
}
func (e *htmlDd ) OnSelect (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("select" , h , options ...)
}
func (e *htmlDd ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("submit" , h , options ...)
}
func (e *htmlDd ) OnWheel (h EventHandler , options ...EventOption ) HTMLDd {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDd ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDd ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDd ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDd ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDd ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDd ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDel interface {
HTML
Body (elems ...UI ) HTMLDel
Text (v any ) HTMLDel
Textf (format string , v ...any ) HTMLDel
AccessKey (format string , v ...any ) HTMLDel
Aria (k string , v any ) HTMLDel
Attr (n string , v any ) HTMLDel
Cite (format string , v ...any ) HTMLDel
Class (v ...string ) HTMLDel
ContentEditable (v bool ) HTMLDel
DataSet (k string , v any ) HTMLDel
DataSets (ds map [string ]any ) HTMLDel
DateTime (format string , v ...any ) HTMLDel
Dir (format string , v ...any ) HTMLDel
Draggable (v bool ) HTMLDel
Hidden (v bool ) HTMLDel
ID (format string , v ...any ) HTMLDel
Lang (format string , v ...any ) HTMLDel
Role (format string , v ...any ) HTMLDel
Spellcheck (v bool ) HTMLDel
Style (k, format string , v ...any ) HTMLDel
Styles (s map [string ]string ) HTMLDel
TabIndex (v int ) HTMLDel
Title (format string , v ...any ) HTMLDel
On (event string , h EventHandler , options ...EventOption ) HTMLDel
OnBlur (h EventHandler , options ...EventOption ) HTMLDel
OnChange (h EventHandler , options ...EventOption ) HTMLDel
OnClick (h EventHandler , options ...EventOption ) HTMLDel
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDel
OnCopy (h EventHandler , options ...EventOption ) HTMLDel
OnCut (h EventHandler , options ...EventOption ) HTMLDel
OnDblClick (h EventHandler , options ...EventOption ) HTMLDel
OnDrag (h EventHandler , options ...EventOption ) HTMLDel
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDel
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDel
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDel
OnDragOver (h EventHandler , options ...EventOption ) HTMLDel
OnDragStart (h EventHandler , options ...EventOption ) HTMLDel
OnDrop (h EventHandler , options ...EventOption ) HTMLDel
OnFocus (h EventHandler , options ...EventOption ) HTMLDel
OnInput (h EventHandler , options ...EventOption ) HTMLDel
OnInvalid (h EventHandler , options ...EventOption ) HTMLDel
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDel
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDel
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDel
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDel
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDel
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDel
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDel
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDel
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDel
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDel
OnPaste (h EventHandler , options ...EventOption ) HTMLDel
OnReset (h EventHandler , options ...EventOption ) HTMLDel
OnScroll (h EventHandler , options ...EventOption ) HTMLDel
OnSearch (h EventHandler , options ...EventOption ) HTMLDel
OnSelect (h EventHandler , options ...EventOption ) HTMLDel
OnSubmit (h EventHandler , options ...EventOption ) HTMLDel
OnWheel (h EventHandler , options ...EventOption ) HTMLDel
}
func Del () HTMLDel {
e := &htmlDel {
htmlElement : htmlElement {
tag : "del" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDel struct {
htmlElement
}
func (e *htmlDel ) Body (v ...UI ) HTMLDel {
return e .setBody (FilterUIElems (v ...)).(*htmlDel )
}
func (e *htmlDel ) Text (v any ) HTMLDel {
return e .Body (Text (v ))
}
func (e *htmlDel ) Textf (format string , v ...any ) HTMLDel {
return e .Body (Textf (format , v ...))
}
func (e *htmlDel ) AccessKey (format string , v ...any ) HTMLDel {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) Aria (k string , v any ) HTMLDel {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDel ) Attr (n string , v any ) HTMLDel {
e .setAttr (n , v )
return e
}
func (e *htmlDel ) Cite (format string , v ...any ) HTMLDel {
e .setAttr ("cite" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) Class (v ...string ) HTMLDel {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDel ) ContentEditable (v bool ) HTMLDel {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDel ) DataSet (k string , v any ) HTMLDel {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDel ) DataSets (ds map [string ]any ) HTMLDel {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDel ) DateTime (format string , v ...any ) HTMLDel {
e .setAttr ("datetime" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) Dir (format string , v ...any ) HTMLDel {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) Draggable (v bool ) HTMLDel {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDel ) Hidden (v bool ) HTMLDel {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDel ) ID (format string , v ...any ) HTMLDel {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) Lang (format string , v ...any ) HTMLDel {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) Role (format string , v ...any ) HTMLDel {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) Spellcheck (v bool ) HTMLDel {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDel ) Style (k , format string , v ...any ) HTMLDel {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDel ) Styles (s map [string ]string ) HTMLDel {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDel ) TabIndex (v int ) HTMLDel {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDel ) Title (format string , v ...any ) HTMLDel {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDel ) On (event string , h EventHandler , options ...EventOption ) HTMLDel {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDel ) OnBlur (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("blur" , h , options ...)
}
func (e *htmlDel ) OnChange (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("change" , h , options ...)
}
func (e *htmlDel ) OnClick (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("click" , h , options ...)
}
func (e *htmlDel ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDel ) OnCopy (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("copy" , h , options ...)
}
func (e *htmlDel ) OnCut (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("cut" , h , options ...)
}
func (e *htmlDel ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDel ) OnDrag (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("drag" , h , options ...)
}
func (e *htmlDel ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDel ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDel ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDel ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDel ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDel ) OnDrop (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("drop" , h , options ...)
}
func (e *htmlDel ) OnFocus (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("focus" , h , options ...)
}
func (e *htmlDel ) OnInput (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("input" , h , options ...)
}
func (e *htmlDel ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDel ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDel ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDel ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDel ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDel ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDel ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDel ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDel ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDel ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDel ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDel ) OnPaste (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("paste" , h , options ...)
}
func (e *htmlDel ) OnReset (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("reset" , h , options ...)
}
func (e *htmlDel ) OnScroll (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDel ) OnSearch (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("search" , h , options ...)
}
func (e *htmlDel ) OnSelect (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("select" , h , options ...)
}
func (e *htmlDel ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("submit" , h , options ...)
}
func (e *htmlDel ) OnWheel (h EventHandler , options ...EventOption ) HTMLDel {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDel ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDel ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDel ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDel ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDel ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDel ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDetails interface {
HTML
Body (elems ...UI ) HTMLDetails
Text (v any ) HTMLDetails
Textf (format string , v ...any ) HTMLDetails
AccessKey (format string , v ...any ) HTMLDetails
Aria (k string , v any ) HTMLDetails
Attr (n string , v any ) HTMLDetails
Class (v ...string ) HTMLDetails
ContentEditable (v bool ) HTMLDetails
DataSet (k string , v any ) HTMLDetails
DataSets (ds map [string ]any ) HTMLDetails
Dir (format string , v ...any ) HTMLDetails
Draggable (v bool ) HTMLDetails
Hidden (v bool ) HTMLDetails
ID (format string , v ...any ) HTMLDetails
Lang (format string , v ...any ) HTMLDetails
Open (v bool ) HTMLDetails
Role (format string , v ...any ) HTMLDetails
Spellcheck (v bool ) HTMLDetails
Style (k, format string , v ...any ) HTMLDetails
Styles (s map [string ]string ) HTMLDetails
TabIndex (v int ) HTMLDetails
Title (format string , v ...any ) HTMLDetails
On (event string , h EventHandler , options ...EventOption ) HTMLDetails
OnBlur (h EventHandler , options ...EventOption ) HTMLDetails
OnChange (h EventHandler , options ...EventOption ) HTMLDetails
OnClick (h EventHandler , options ...EventOption ) HTMLDetails
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDetails
OnCopy (h EventHandler , options ...EventOption ) HTMLDetails
OnCut (h EventHandler , options ...EventOption ) HTMLDetails
OnDblClick (h EventHandler , options ...EventOption ) HTMLDetails
OnDrag (h EventHandler , options ...EventOption ) HTMLDetails
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDetails
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDetails
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDetails
OnDragOver (h EventHandler , options ...EventOption ) HTMLDetails
OnDragStart (h EventHandler , options ...EventOption ) HTMLDetails
OnDrop (h EventHandler , options ...EventOption ) HTMLDetails
OnFocus (h EventHandler , options ...EventOption ) HTMLDetails
OnInput (h EventHandler , options ...EventOption ) HTMLDetails
OnInvalid (h EventHandler , options ...EventOption ) HTMLDetails
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDetails
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDetails
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDetails
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDetails
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDetails
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDetails
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDetails
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDetails
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDetails
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDetails
OnPaste (h EventHandler , options ...EventOption ) HTMLDetails
OnReset (h EventHandler , options ...EventOption ) HTMLDetails
OnScroll (h EventHandler , options ...EventOption ) HTMLDetails
OnSearch (h EventHandler , options ...EventOption ) HTMLDetails
OnSelect (h EventHandler , options ...EventOption ) HTMLDetails
OnSubmit (h EventHandler , options ...EventOption ) HTMLDetails
OnToggle (h EventHandler , options ...EventOption ) HTMLDetails
OnWheel (h EventHandler , options ...EventOption ) HTMLDetails
}
func Details () HTMLDetails {
e := &htmlDetails {
htmlElement : htmlElement {
tag : "details" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDetails struct {
htmlElement
}
func (e *htmlDetails ) Body (v ...UI ) HTMLDetails {
return e .setBody (FilterUIElems (v ...)).(*htmlDetails )
}
func (e *htmlDetails ) Text (v any ) HTMLDetails {
return e .Body (Text (v ))
}
func (e *htmlDetails ) Textf (format string , v ...any ) HTMLDetails {
return e .Body (Textf (format , v ...))
}
func (e *htmlDetails ) AccessKey (format string , v ...any ) HTMLDetails {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDetails ) Aria (k string , v any ) HTMLDetails {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDetails ) Attr (n string , v any ) HTMLDetails {
e .setAttr (n , v )
return e
}
func (e *htmlDetails ) Class (v ...string ) HTMLDetails {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDetails ) ContentEditable (v bool ) HTMLDetails {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDetails ) DataSet (k string , v any ) HTMLDetails {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDetails ) DataSets (ds map [string ]any ) HTMLDetails {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDetails ) Dir (format string , v ...any ) HTMLDetails {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDetails ) Draggable (v bool ) HTMLDetails {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDetails ) Hidden (v bool ) HTMLDetails {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDetails ) ID (format string , v ...any ) HTMLDetails {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDetails ) Lang (format string , v ...any ) HTMLDetails {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDetails ) Open (v bool ) HTMLDetails {
e .setAttr ("open" , v )
return e
}
func (e *htmlDetails ) Role (format string , v ...any ) HTMLDetails {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDetails ) Spellcheck (v bool ) HTMLDetails {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDetails ) Style (k , format string , v ...any ) HTMLDetails {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDetails ) Styles (s map [string ]string ) HTMLDetails {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDetails ) TabIndex (v int ) HTMLDetails {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDetails ) Title (format string , v ...any ) HTMLDetails {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDetails ) On (event string , h EventHandler , options ...EventOption ) HTMLDetails {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDetails ) OnBlur (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("blur" , h , options ...)
}
func (e *htmlDetails ) OnChange (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("change" , h , options ...)
}
func (e *htmlDetails ) OnClick (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("click" , h , options ...)
}
func (e *htmlDetails ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDetails ) OnCopy (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("copy" , h , options ...)
}
func (e *htmlDetails ) OnCut (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("cut" , h , options ...)
}
func (e *htmlDetails ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDetails ) OnDrag (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("drag" , h , options ...)
}
func (e *htmlDetails ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDetails ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDetails ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDetails ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDetails ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDetails ) OnDrop (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("drop" , h , options ...)
}
func (e *htmlDetails ) OnFocus (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("focus" , h , options ...)
}
func (e *htmlDetails ) OnInput (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("input" , h , options ...)
}
func (e *htmlDetails ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDetails ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDetails ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDetails ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDetails ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDetails ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDetails ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDetails ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDetails ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDetails ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDetails ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDetails ) OnPaste (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("paste" , h , options ...)
}
func (e *htmlDetails ) OnReset (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("reset" , h , options ...)
}
func (e *htmlDetails ) OnScroll (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDetails ) OnSearch (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("search" , h , options ...)
}
func (e *htmlDetails ) OnSelect (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("select" , h , options ...)
}
func (e *htmlDetails ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("submit" , h , options ...)
}
func (e *htmlDetails ) OnToggle (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("toggle" , h , options ...)
}
func (e *htmlDetails ) OnWheel (h EventHandler , options ...EventOption ) HTMLDetails {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDetails ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDetails ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDetails ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDetails ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDetails ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDetails ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDfn interface {
HTML
Body (elems ...UI ) HTMLDfn
Text (v any ) HTMLDfn
Textf (format string , v ...any ) HTMLDfn
AccessKey (format string , v ...any ) HTMLDfn
Aria (k string , v any ) HTMLDfn
Attr (n string , v any ) HTMLDfn
Class (v ...string ) HTMLDfn
ContentEditable (v bool ) HTMLDfn
DataSet (k string , v any ) HTMLDfn
DataSets (ds map [string ]any ) HTMLDfn
Dir (format string , v ...any ) HTMLDfn
Draggable (v bool ) HTMLDfn
Hidden (v bool ) HTMLDfn
ID (format string , v ...any ) HTMLDfn
Lang (format string , v ...any ) HTMLDfn
Role (format string , v ...any ) HTMLDfn
Spellcheck (v bool ) HTMLDfn
Style (k, format string , v ...any ) HTMLDfn
Styles (s map [string ]string ) HTMLDfn
TabIndex (v int ) HTMLDfn
Title (format string , v ...any ) HTMLDfn
On (event string , h EventHandler , options ...EventOption ) HTMLDfn
OnBlur (h EventHandler , options ...EventOption ) HTMLDfn
OnChange (h EventHandler , options ...EventOption ) HTMLDfn
OnClick (h EventHandler , options ...EventOption ) HTMLDfn
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDfn
OnCopy (h EventHandler , options ...EventOption ) HTMLDfn
OnCut (h EventHandler , options ...EventOption ) HTMLDfn
OnDblClick (h EventHandler , options ...EventOption ) HTMLDfn
OnDrag (h EventHandler , options ...EventOption ) HTMLDfn
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDfn
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDfn
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDfn
OnDragOver (h EventHandler , options ...EventOption ) HTMLDfn
OnDragStart (h EventHandler , options ...EventOption ) HTMLDfn
OnDrop (h EventHandler , options ...EventOption ) HTMLDfn
OnFocus (h EventHandler , options ...EventOption ) HTMLDfn
OnInput (h EventHandler , options ...EventOption ) HTMLDfn
OnInvalid (h EventHandler , options ...EventOption ) HTMLDfn
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDfn
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDfn
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDfn
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDfn
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDfn
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDfn
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDfn
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDfn
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDfn
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDfn
OnPaste (h EventHandler , options ...EventOption ) HTMLDfn
OnReset (h EventHandler , options ...EventOption ) HTMLDfn
OnScroll (h EventHandler , options ...EventOption ) HTMLDfn
OnSearch (h EventHandler , options ...EventOption ) HTMLDfn
OnSelect (h EventHandler , options ...EventOption ) HTMLDfn
OnSubmit (h EventHandler , options ...EventOption ) HTMLDfn
OnWheel (h EventHandler , options ...EventOption ) HTMLDfn
}
func Dfn () HTMLDfn {
e := &htmlDfn {
htmlElement : htmlElement {
tag : "dfn" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDfn struct {
htmlElement
}
func (e *htmlDfn ) Body (v ...UI ) HTMLDfn {
return e .setBody (FilterUIElems (v ...)).(*htmlDfn )
}
func (e *htmlDfn ) Text (v any ) HTMLDfn {
return e .Body (Text (v ))
}
func (e *htmlDfn ) Textf (format string , v ...any ) HTMLDfn {
return e .Body (Textf (format , v ...))
}
func (e *htmlDfn ) AccessKey (format string , v ...any ) HTMLDfn {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDfn ) Aria (k string , v any ) HTMLDfn {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDfn ) Attr (n string , v any ) HTMLDfn {
e .setAttr (n , v )
return e
}
func (e *htmlDfn ) Class (v ...string ) HTMLDfn {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDfn ) ContentEditable (v bool ) HTMLDfn {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDfn ) DataSet (k string , v any ) HTMLDfn {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDfn ) DataSets (ds map [string ]any ) HTMLDfn {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDfn ) Dir (format string , v ...any ) HTMLDfn {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDfn ) Draggable (v bool ) HTMLDfn {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDfn ) Hidden (v bool ) HTMLDfn {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDfn ) ID (format string , v ...any ) HTMLDfn {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDfn ) Lang (format string , v ...any ) HTMLDfn {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDfn ) Role (format string , v ...any ) HTMLDfn {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDfn ) Spellcheck (v bool ) HTMLDfn {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDfn ) Style (k , format string , v ...any ) HTMLDfn {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDfn ) Styles (s map [string ]string ) HTMLDfn {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDfn ) TabIndex (v int ) HTMLDfn {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDfn ) Title (format string , v ...any ) HTMLDfn {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDfn ) On (event string , h EventHandler , options ...EventOption ) HTMLDfn {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDfn ) OnBlur (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("blur" , h , options ...)
}
func (e *htmlDfn ) OnChange (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("change" , h , options ...)
}
func (e *htmlDfn ) OnClick (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("click" , h , options ...)
}
func (e *htmlDfn ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDfn ) OnCopy (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("copy" , h , options ...)
}
func (e *htmlDfn ) OnCut (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("cut" , h , options ...)
}
func (e *htmlDfn ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDfn ) OnDrag (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("drag" , h , options ...)
}
func (e *htmlDfn ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDfn ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDfn ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDfn ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDfn ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDfn ) OnDrop (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("drop" , h , options ...)
}
func (e *htmlDfn ) OnFocus (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("focus" , h , options ...)
}
func (e *htmlDfn ) OnInput (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("input" , h , options ...)
}
func (e *htmlDfn ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDfn ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDfn ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDfn ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDfn ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDfn ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDfn ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDfn ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDfn ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDfn ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDfn ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDfn ) OnPaste (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("paste" , h , options ...)
}
func (e *htmlDfn ) OnReset (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("reset" , h , options ...)
}
func (e *htmlDfn ) OnScroll (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDfn ) OnSearch (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("search" , h , options ...)
}
func (e *htmlDfn ) OnSelect (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("select" , h , options ...)
}
func (e *htmlDfn ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("submit" , h , options ...)
}
func (e *htmlDfn ) OnWheel (h EventHandler , options ...EventOption ) HTMLDfn {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDfn ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDfn ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDfn ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDfn ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDfn ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDfn ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDialog interface {
HTML
Body (elems ...UI ) HTMLDialog
Text (v any ) HTMLDialog
Textf (format string , v ...any ) HTMLDialog
AccessKey (format string , v ...any ) HTMLDialog
Aria (k string , v any ) HTMLDialog
Attr (n string , v any ) HTMLDialog
Class (v ...string ) HTMLDialog
ContentEditable (v bool ) HTMLDialog
DataSet (k string , v any ) HTMLDialog
DataSets (ds map [string ]any ) HTMLDialog
Dir (format string , v ...any ) HTMLDialog
Draggable (v bool ) HTMLDialog
Hidden (v bool ) HTMLDialog
ID (format string , v ...any ) HTMLDialog
Lang (format string , v ...any ) HTMLDialog
Open (v bool ) HTMLDialog
Role (format string , v ...any ) HTMLDialog
Spellcheck (v bool ) HTMLDialog
Style (k, format string , v ...any ) HTMLDialog
Styles (s map [string ]string ) HTMLDialog
TabIndex (v int ) HTMLDialog
Title (format string , v ...any ) HTMLDialog
On (event string , h EventHandler , options ...EventOption ) HTMLDialog
OnBlur (h EventHandler , options ...EventOption ) HTMLDialog
OnChange (h EventHandler , options ...EventOption ) HTMLDialog
OnClick (h EventHandler , options ...EventOption ) HTMLDialog
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDialog
OnCopy (h EventHandler , options ...EventOption ) HTMLDialog
OnCut (h EventHandler , options ...EventOption ) HTMLDialog
OnDblClick (h EventHandler , options ...EventOption ) HTMLDialog
OnDrag (h EventHandler , options ...EventOption ) HTMLDialog
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDialog
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDialog
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDialog
OnDragOver (h EventHandler , options ...EventOption ) HTMLDialog
OnDragStart (h EventHandler , options ...EventOption ) HTMLDialog
OnDrop (h EventHandler , options ...EventOption ) HTMLDialog
OnFocus (h EventHandler , options ...EventOption ) HTMLDialog
OnInput (h EventHandler , options ...EventOption ) HTMLDialog
OnInvalid (h EventHandler , options ...EventOption ) HTMLDialog
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDialog
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDialog
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDialog
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDialog
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDialog
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDialog
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDialog
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDialog
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDialog
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDialog
OnPaste (h EventHandler , options ...EventOption ) HTMLDialog
OnReset (h EventHandler , options ...EventOption ) HTMLDialog
OnScroll (h EventHandler , options ...EventOption ) HTMLDialog
OnSearch (h EventHandler , options ...EventOption ) HTMLDialog
OnSelect (h EventHandler , options ...EventOption ) HTMLDialog
OnSubmit (h EventHandler , options ...EventOption ) HTMLDialog
OnWheel (h EventHandler , options ...EventOption ) HTMLDialog
}
func Dialog () HTMLDialog {
e := &htmlDialog {
htmlElement : htmlElement {
tag : "dialog" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDialog struct {
htmlElement
}
func (e *htmlDialog ) Body (v ...UI ) HTMLDialog {
return e .setBody (FilterUIElems (v ...)).(*htmlDialog )
}
func (e *htmlDialog ) Text (v any ) HTMLDialog {
return e .Body (Text (v ))
}
func (e *htmlDialog ) Textf (format string , v ...any ) HTMLDialog {
return e .Body (Textf (format , v ...))
}
func (e *htmlDialog ) AccessKey (format string , v ...any ) HTMLDialog {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDialog ) Aria (k string , v any ) HTMLDialog {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDialog ) Attr (n string , v any ) HTMLDialog {
e .setAttr (n , v )
return e
}
func (e *htmlDialog ) Class (v ...string ) HTMLDialog {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDialog ) ContentEditable (v bool ) HTMLDialog {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDialog ) DataSet (k string , v any ) HTMLDialog {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDialog ) DataSets (ds map [string ]any ) HTMLDialog {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDialog ) Dir (format string , v ...any ) HTMLDialog {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDialog ) Draggable (v bool ) HTMLDialog {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDialog ) Hidden (v bool ) HTMLDialog {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDialog ) ID (format string , v ...any ) HTMLDialog {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDialog ) Lang (format string , v ...any ) HTMLDialog {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDialog ) Open (v bool ) HTMLDialog {
e .setAttr ("open" , v )
return e
}
func (e *htmlDialog ) Role (format string , v ...any ) HTMLDialog {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDialog ) Spellcheck (v bool ) HTMLDialog {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDialog ) Style (k , format string , v ...any ) HTMLDialog {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDialog ) Styles (s map [string ]string ) HTMLDialog {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDialog ) TabIndex (v int ) HTMLDialog {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDialog ) Title (format string , v ...any ) HTMLDialog {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDialog ) On (event string , h EventHandler , options ...EventOption ) HTMLDialog {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDialog ) OnBlur (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("blur" , h , options ...)
}
func (e *htmlDialog ) OnChange (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("change" , h , options ...)
}
func (e *htmlDialog ) OnClick (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("click" , h , options ...)
}
func (e *htmlDialog ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDialog ) OnCopy (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("copy" , h , options ...)
}
func (e *htmlDialog ) OnCut (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("cut" , h , options ...)
}
func (e *htmlDialog ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDialog ) OnDrag (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("drag" , h , options ...)
}
func (e *htmlDialog ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDialog ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDialog ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDialog ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDialog ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDialog ) OnDrop (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("drop" , h , options ...)
}
func (e *htmlDialog ) OnFocus (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("focus" , h , options ...)
}
func (e *htmlDialog ) OnInput (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("input" , h , options ...)
}
func (e *htmlDialog ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDialog ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDialog ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDialog ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDialog ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDialog ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDialog ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDialog ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDialog ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDialog ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDialog ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDialog ) OnPaste (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("paste" , h , options ...)
}
func (e *htmlDialog ) OnReset (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("reset" , h , options ...)
}
func (e *htmlDialog ) OnScroll (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDialog ) OnSearch (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("search" , h , options ...)
}
func (e *htmlDialog ) OnSelect (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("select" , h , options ...)
}
func (e *htmlDialog ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("submit" , h , options ...)
}
func (e *htmlDialog ) OnWheel (h EventHandler , options ...EventOption ) HTMLDialog {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDialog ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDialog ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDialog ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDialog ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDialog ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDialog ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDiv interface {
HTML
Body (elems ...UI ) HTMLDiv
Text (v any ) HTMLDiv
Textf (format string , v ...any ) HTMLDiv
AccessKey (format string , v ...any ) HTMLDiv
Aria (k string , v any ) HTMLDiv
Attr (n string , v any ) HTMLDiv
Class (v ...string ) HTMLDiv
ContentEditable (v bool ) HTMLDiv
DataSet (k string , v any ) HTMLDiv
DataSets (ds map [string ]any ) HTMLDiv
Dir (format string , v ...any ) HTMLDiv
Draggable (v bool ) HTMLDiv
Hidden (v bool ) HTMLDiv
ID (format string , v ...any ) HTMLDiv
Lang (format string , v ...any ) HTMLDiv
Role (format string , v ...any ) HTMLDiv
Spellcheck (v bool ) HTMLDiv
Style (k, format string , v ...any ) HTMLDiv
Styles (s map [string ]string ) HTMLDiv
TabIndex (v int ) HTMLDiv
Title (format string , v ...any ) HTMLDiv
On (event string , h EventHandler , options ...EventOption ) HTMLDiv
OnBlur (h EventHandler , options ...EventOption ) HTMLDiv
OnChange (h EventHandler , options ...EventOption ) HTMLDiv
OnClick (h EventHandler , options ...EventOption ) HTMLDiv
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDiv
OnCopy (h EventHandler , options ...EventOption ) HTMLDiv
OnCut (h EventHandler , options ...EventOption ) HTMLDiv
OnDblClick (h EventHandler , options ...EventOption ) HTMLDiv
OnDrag (h EventHandler , options ...EventOption ) HTMLDiv
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDiv
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDiv
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDiv
OnDragOver (h EventHandler , options ...EventOption ) HTMLDiv
OnDragStart (h EventHandler , options ...EventOption ) HTMLDiv
OnDrop (h EventHandler , options ...EventOption ) HTMLDiv
OnFocus (h EventHandler , options ...EventOption ) HTMLDiv
OnInput (h EventHandler , options ...EventOption ) HTMLDiv
OnInvalid (h EventHandler , options ...EventOption ) HTMLDiv
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDiv
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDiv
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDiv
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDiv
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDiv
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDiv
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDiv
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDiv
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDiv
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDiv
OnPaste (h EventHandler , options ...EventOption ) HTMLDiv
OnReset (h EventHandler , options ...EventOption ) HTMLDiv
OnScroll (h EventHandler , options ...EventOption ) HTMLDiv
OnSearch (h EventHandler , options ...EventOption ) HTMLDiv
OnSelect (h EventHandler , options ...EventOption ) HTMLDiv
OnSubmit (h EventHandler , options ...EventOption ) HTMLDiv
OnWheel (h EventHandler , options ...EventOption ) HTMLDiv
}
func Div () HTMLDiv {
e := &htmlDiv {
htmlElement : htmlElement {
tag : "div" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDiv struct {
htmlElement
}
func (e *htmlDiv ) Body (v ...UI ) HTMLDiv {
return e .setBody (FilterUIElems (v ...)).(*htmlDiv )
}
func (e *htmlDiv ) Text (v any ) HTMLDiv {
return e .Body (Text (v ))
}
func (e *htmlDiv ) Textf (format string , v ...any ) HTMLDiv {
return e .Body (Textf (format , v ...))
}
func (e *htmlDiv ) AccessKey (format string , v ...any ) HTMLDiv {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDiv ) Aria (k string , v any ) HTMLDiv {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDiv ) Attr (n string , v any ) HTMLDiv {
e .setAttr (n , v )
return e
}
func (e *htmlDiv ) Class (v ...string ) HTMLDiv {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDiv ) ContentEditable (v bool ) HTMLDiv {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDiv ) DataSet (k string , v any ) HTMLDiv {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDiv ) DataSets (ds map [string ]any ) HTMLDiv {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDiv ) Dir (format string , v ...any ) HTMLDiv {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDiv ) Draggable (v bool ) HTMLDiv {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDiv ) Hidden (v bool ) HTMLDiv {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDiv ) ID (format string , v ...any ) HTMLDiv {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDiv ) Lang (format string , v ...any ) HTMLDiv {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDiv ) Role (format string , v ...any ) HTMLDiv {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDiv ) Spellcheck (v bool ) HTMLDiv {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDiv ) Style (k , format string , v ...any ) HTMLDiv {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDiv ) Styles (s map [string ]string ) HTMLDiv {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDiv ) TabIndex (v int ) HTMLDiv {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDiv ) Title (format string , v ...any ) HTMLDiv {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDiv ) On (event string , h EventHandler , options ...EventOption ) HTMLDiv {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDiv ) OnBlur (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("blur" , h , options ...)
}
func (e *htmlDiv ) OnChange (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("change" , h , options ...)
}
func (e *htmlDiv ) OnClick (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("click" , h , options ...)
}
func (e *htmlDiv ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDiv ) OnCopy (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("copy" , h , options ...)
}
func (e *htmlDiv ) OnCut (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("cut" , h , options ...)
}
func (e *htmlDiv ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDiv ) OnDrag (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("drag" , h , options ...)
}
func (e *htmlDiv ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDiv ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDiv ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDiv ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDiv ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDiv ) OnDrop (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("drop" , h , options ...)
}
func (e *htmlDiv ) OnFocus (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("focus" , h , options ...)
}
func (e *htmlDiv ) OnInput (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("input" , h , options ...)
}
func (e *htmlDiv ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDiv ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDiv ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDiv ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDiv ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDiv ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDiv ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDiv ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDiv ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDiv ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDiv ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDiv ) OnPaste (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("paste" , h , options ...)
}
func (e *htmlDiv ) OnReset (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("reset" , h , options ...)
}
func (e *htmlDiv ) OnScroll (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDiv ) OnSearch (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("search" , h , options ...)
}
func (e *htmlDiv ) OnSelect (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("select" , h , options ...)
}
func (e *htmlDiv ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("submit" , h , options ...)
}
func (e *htmlDiv ) OnWheel (h EventHandler , options ...EventOption ) HTMLDiv {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDiv ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDiv ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDiv ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDiv ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDiv ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDiv ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDl interface {
HTML
Body (elems ...UI ) HTMLDl
Text (v any ) HTMLDl
Textf (format string , v ...any ) HTMLDl
AccessKey (format string , v ...any ) HTMLDl
Aria (k string , v any ) HTMLDl
Attr (n string , v any ) HTMLDl
Class (v ...string ) HTMLDl
ContentEditable (v bool ) HTMLDl
DataSet (k string , v any ) HTMLDl
DataSets (ds map [string ]any ) HTMLDl
Dir (format string , v ...any ) HTMLDl
Draggable (v bool ) HTMLDl
Hidden (v bool ) HTMLDl
ID (format string , v ...any ) HTMLDl
Lang (format string , v ...any ) HTMLDl
Role (format string , v ...any ) HTMLDl
Spellcheck (v bool ) HTMLDl
Style (k, format string , v ...any ) HTMLDl
Styles (s map [string ]string ) HTMLDl
TabIndex (v int ) HTMLDl
Title (format string , v ...any ) HTMLDl
On (event string , h EventHandler , options ...EventOption ) HTMLDl
OnBlur (h EventHandler , options ...EventOption ) HTMLDl
OnChange (h EventHandler , options ...EventOption ) HTMLDl
OnClick (h EventHandler , options ...EventOption ) HTMLDl
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDl
OnCopy (h EventHandler , options ...EventOption ) HTMLDl
OnCut (h EventHandler , options ...EventOption ) HTMLDl
OnDblClick (h EventHandler , options ...EventOption ) HTMLDl
OnDrag (h EventHandler , options ...EventOption ) HTMLDl
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDl
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDl
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDl
OnDragOver (h EventHandler , options ...EventOption ) HTMLDl
OnDragStart (h EventHandler , options ...EventOption ) HTMLDl
OnDrop (h EventHandler , options ...EventOption ) HTMLDl
OnFocus (h EventHandler , options ...EventOption ) HTMLDl
OnInput (h EventHandler , options ...EventOption ) HTMLDl
OnInvalid (h EventHandler , options ...EventOption ) HTMLDl
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDl
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDl
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDl
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDl
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDl
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDl
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDl
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDl
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDl
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDl
OnPaste (h EventHandler , options ...EventOption ) HTMLDl
OnReset (h EventHandler , options ...EventOption ) HTMLDl
OnScroll (h EventHandler , options ...EventOption ) HTMLDl
OnSearch (h EventHandler , options ...EventOption ) HTMLDl
OnSelect (h EventHandler , options ...EventOption ) HTMLDl
OnSubmit (h EventHandler , options ...EventOption ) HTMLDl
OnWheel (h EventHandler , options ...EventOption ) HTMLDl
}
func Dl () HTMLDl {
e := &htmlDl {
htmlElement : htmlElement {
tag : "dl" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDl struct {
htmlElement
}
func (e *htmlDl ) Body (v ...UI ) HTMLDl {
return e .setBody (FilterUIElems (v ...)).(*htmlDl )
}
func (e *htmlDl ) Text (v any ) HTMLDl {
return e .Body (Text (v ))
}
func (e *htmlDl ) Textf (format string , v ...any ) HTMLDl {
return e .Body (Textf (format , v ...))
}
func (e *htmlDl ) AccessKey (format string , v ...any ) HTMLDl {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDl ) Aria (k string , v any ) HTMLDl {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDl ) Attr (n string , v any ) HTMLDl {
e .setAttr (n , v )
return e
}
func (e *htmlDl ) Class (v ...string ) HTMLDl {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDl ) ContentEditable (v bool ) HTMLDl {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDl ) DataSet (k string , v any ) HTMLDl {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDl ) DataSets (ds map [string ]any ) HTMLDl {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDl ) Dir (format string , v ...any ) HTMLDl {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDl ) Draggable (v bool ) HTMLDl {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDl ) Hidden (v bool ) HTMLDl {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDl ) ID (format string , v ...any ) HTMLDl {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDl ) Lang (format string , v ...any ) HTMLDl {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDl ) Role (format string , v ...any ) HTMLDl {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDl ) Spellcheck (v bool ) HTMLDl {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDl ) Style (k , format string , v ...any ) HTMLDl {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDl ) Styles (s map [string ]string ) HTMLDl {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDl ) TabIndex (v int ) HTMLDl {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDl ) Title (format string , v ...any ) HTMLDl {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDl ) On (event string , h EventHandler , options ...EventOption ) HTMLDl {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDl ) OnBlur (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("blur" , h , options ...)
}
func (e *htmlDl ) OnChange (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("change" , h , options ...)
}
func (e *htmlDl ) OnClick (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("click" , h , options ...)
}
func (e *htmlDl ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDl ) OnCopy (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("copy" , h , options ...)
}
func (e *htmlDl ) OnCut (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("cut" , h , options ...)
}
func (e *htmlDl ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDl ) OnDrag (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("drag" , h , options ...)
}
func (e *htmlDl ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDl ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDl ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDl ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDl ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDl ) OnDrop (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("drop" , h , options ...)
}
func (e *htmlDl ) OnFocus (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("focus" , h , options ...)
}
func (e *htmlDl ) OnInput (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("input" , h , options ...)
}
func (e *htmlDl ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDl ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDl ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDl ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDl ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDl ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDl ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDl ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDl ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDl ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDl ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDl ) OnPaste (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("paste" , h , options ...)
}
func (e *htmlDl ) OnReset (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("reset" , h , options ...)
}
func (e *htmlDl ) OnScroll (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDl ) OnSearch (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("search" , h , options ...)
}
func (e *htmlDl ) OnSelect (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("select" , h , options ...)
}
func (e *htmlDl ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("submit" , h , options ...)
}
func (e *htmlDl ) OnWheel (h EventHandler , options ...EventOption ) HTMLDl {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDl ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDl ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDl ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDl ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDl ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDl ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLDt interface {
HTML
Body (elems ...UI ) HTMLDt
Text (v any ) HTMLDt
Textf (format string , v ...any ) HTMLDt
AccessKey (format string , v ...any ) HTMLDt
Aria (k string , v any ) HTMLDt
Attr (n string , v any ) HTMLDt
Class (v ...string ) HTMLDt
ContentEditable (v bool ) HTMLDt
DataSet (k string , v any ) HTMLDt
DataSets (ds map [string ]any ) HTMLDt
Dir (format string , v ...any ) HTMLDt
Draggable (v bool ) HTMLDt
Hidden (v bool ) HTMLDt
ID (format string , v ...any ) HTMLDt
Lang (format string , v ...any ) HTMLDt
Role (format string , v ...any ) HTMLDt
Spellcheck (v bool ) HTMLDt
Style (k, format string , v ...any ) HTMLDt
Styles (s map [string ]string ) HTMLDt
TabIndex (v int ) HTMLDt
Title (format string , v ...any ) HTMLDt
On (event string , h EventHandler , options ...EventOption ) HTMLDt
OnBlur (h EventHandler , options ...EventOption ) HTMLDt
OnChange (h EventHandler , options ...EventOption ) HTMLDt
OnClick (h EventHandler , options ...EventOption ) HTMLDt
OnContextMenu (h EventHandler , options ...EventOption ) HTMLDt
OnCopy (h EventHandler , options ...EventOption ) HTMLDt
OnCut (h EventHandler , options ...EventOption ) HTMLDt
OnDblClick (h EventHandler , options ...EventOption ) HTMLDt
OnDrag (h EventHandler , options ...EventOption ) HTMLDt
OnDragEnd (h EventHandler , options ...EventOption ) HTMLDt
OnDragEnter (h EventHandler , options ...EventOption ) HTMLDt
OnDragLeave (h EventHandler , options ...EventOption ) HTMLDt
OnDragOver (h EventHandler , options ...EventOption ) HTMLDt
OnDragStart (h EventHandler , options ...EventOption ) HTMLDt
OnDrop (h EventHandler , options ...EventOption ) HTMLDt
OnFocus (h EventHandler , options ...EventOption ) HTMLDt
OnInput (h EventHandler , options ...EventOption ) HTMLDt
OnInvalid (h EventHandler , options ...EventOption ) HTMLDt
OnKeyDown (h EventHandler , options ...EventOption ) HTMLDt
OnKeyPress (h EventHandler , options ...EventOption ) HTMLDt
OnKeyUp (h EventHandler , options ...EventOption ) HTMLDt
OnMouseDown (h EventHandler , options ...EventOption ) HTMLDt
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDt
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDt
OnMouseMove (h EventHandler , options ...EventOption ) HTMLDt
OnMouseOut (h EventHandler , options ...EventOption ) HTMLDt
OnMouseOver (h EventHandler , options ...EventOption ) HTMLDt
OnMouseUp (h EventHandler , options ...EventOption ) HTMLDt
OnPaste (h EventHandler , options ...EventOption ) HTMLDt
OnReset (h EventHandler , options ...EventOption ) HTMLDt
OnScroll (h EventHandler , options ...EventOption ) HTMLDt
OnSearch (h EventHandler , options ...EventOption ) HTMLDt
OnSelect (h EventHandler , options ...EventOption ) HTMLDt
OnSubmit (h EventHandler , options ...EventOption ) HTMLDt
OnWheel (h EventHandler , options ...EventOption ) HTMLDt
}
func Dt () HTMLDt {
e := &htmlDt {
htmlElement : htmlElement {
tag : "dt" ,
isSelfClosing : false ,
},
}
return e
}
type htmlDt struct {
htmlElement
}
func (e *htmlDt ) Body (v ...UI ) HTMLDt {
return e .setBody (FilterUIElems (v ...)).(*htmlDt )
}
func (e *htmlDt ) Text (v any ) HTMLDt {
return e .Body (Text (v ))
}
func (e *htmlDt ) Textf (format string , v ...any ) HTMLDt {
return e .Body (Textf (format , v ...))
}
func (e *htmlDt ) AccessKey (format string , v ...any ) HTMLDt {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlDt ) Aria (k string , v any ) HTMLDt {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDt ) Attr (n string , v any ) HTMLDt {
e .setAttr (n , v )
return e
}
func (e *htmlDt ) Class (v ...string ) HTMLDt {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlDt ) ContentEditable (v bool ) HTMLDt {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlDt ) DataSet (k string , v any ) HTMLDt {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlDt ) DataSets (ds map [string ]any ) HTMLDt {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlDt ) Dir (format string , v ...any ) HTMLDt {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlDt ) Draggable (v bool ) HTMLDt {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlDt ) Hidden (v bool ) HTMLDt {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlDt ) ID (format string , v ...any ) HTMLDt {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlDt ) Lang (format string , v ...any ) HTMLDt {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlDt ) Role (format string , v ...any ) HTMLDt {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlDt ) Spellcheck (v bool ) HTMLDt {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlDt ) Style (k , format string , v ...any ) HTMLDt {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlDt ) Styles (s map [string ]string ) HTMLDt {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlDt ) TabIndex (v int ) HTMLDt {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlDt ) Title (format string , v ...any ) HTMLDt {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlDt ) On (event string , h EventHandler , options ...EventOption ) HTMLDt {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlDt ) OnBlur (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("blur" , h , options ...)
}
func (e *htmlDt ) OnChange (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("change" , h , options ...)
}
func (e *htmlDt ) OnClick (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("click" , h , options ...)
}
func (e *htmlDt ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlDt ) OnCopy (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("copy" , h , options ...)
}
func (e *htmlDt ) OnCut (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("cut" , h , options ...)
}
func (e *htmlDt ) OnDblClick (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlDt ) OnDrag (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("drag" , h , options ...)
}
func (e *htmlDt ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("dragend" , h , options ...)
}
func (e *htmlDt ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlDt ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlDt ) OnDragOver (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("dragover" , h , options ...)
}
func (e *htmlDt ) OnDragStart (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlDt ) OnDrop (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("drop" , h , options ...)
}
func (e *htmlDt ) OnFocus (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("focus" , h , options ...)
}
func (e *htmlDt ) OnInput (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("input" , h , options ...)
}
func (e *htmlDt ) OnInvalid (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("invalid" , h , options ...)
}
func (e *htmlDt ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("keydown" , h , options ...)
}
func (e *htmlDt ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("keypress" , h , options ...)
}
func (e *htmlDt ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("keyup" , h , options ...)
}
func (e *htmlDt ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlDt ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlDt ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlDt ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlDt ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlDt ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlDt ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlDt ) OnPaste (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("paste" , h , options ...)
}
func (e *htmlDt ) OnReset (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("reset" , h , options ...)
}
func (e *htmlDt ) OnScroll (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("scroll" , h , options ...)
}
func (e *htmlDt ) OnSearch (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("search" , h , options ...)
}
func (e *htmlDt ) OnSelect (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("select" , h , options ...)
}
func (e *htmlDt ) OnSubmit (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("submit" , h , options ...)
}
func (e *htmlDt ) OnWheel (h EventHandler , options ...EventOption ) HTMLDt {
return e .On ("wheel" , h , options ...)
}
func (e *htmlDt ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlDt ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlDt ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlDt ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlDt ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlDt ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLElem interface {
HTML
Body (elems ...UI ) HTMLElem
Text (v any ) HTMLElem
Textf (format string , v ...any ) HTMLElem
AccessKey (format string , v ...any ) HTMLElem
Aria (k string , v any ) HTMLElem
Attr (n string , v any ) HTMLElem
Class (v ...string ) HTMLElem
ContentEditable (v bool ) HTMLElem
DataSet (k string , v any ) HTMLElem
DataSets (ds map [string ]any ) HTMLElem
Dir (format string , v ...any ) HTMLElem
Draggable (v bool ) HTMLElem
Hidden (v bool ) HTMLElem
ID (format string , v ...any ) HTMLElem
Lang (format string , v ...any ) HTMLElem
Role (format string , v ...any ) HTMLElem
Spellcheck (v bool ) HTMLElem
Style (k, format string , v ...any ) HTMLElem
Styles (s map [string ]string ) HTMLElem
TabIndex (v int ) HTMLElem
Title (format string , v ...any ) HTMLElem
XMLNS (v string ) HTMLElem
On (event string , h EventHandler , options ...EventOption ) HTMLElem
OnBlur (h EventHandler , options ...EventOption ) HTMLElem
OnChange (h EventHandler , options ...EventOption ) HTMLElem
OnClick (h EventHandler , options ...EventOption ) HTMLElem
OnContextMenu (h EventHandler , options ...EventOption ) HTMLElem
OnCopy (h EventHandler , options ...EventOption ) HTMLElem
OnCut (h EventHandler , options ...EventOption ) HTMLElem
OnDblClick (h EventHandler , options ...EventOption ) HTMLElem
OnDrag (h EventHandler , options ...EventOption ) HTMLElem
OnDragEnd (h EventHandler , options ...EventOption ) HTMLElem
OnDragEnter (h EventHandler , options ...EventOption ) HTMLElem
OnDragLeave (h EventHandler , options ...EventOption ) HTMLElem
OnDragOver (h EventHandler , options ...EventOption ) HTMLElem
OnDragStart (h EventHandler , options ...EventOption ) HTMLElem
OnDrop (h EventHandler , options ...EventOption ) HTMLElem
OnFocus (h EventHandler , options ...EventOption ) HTMLElem
OnInput (h EventHandler , options ...EventOption ) HTMLElem
OnInvalid (h EventHandler , options ...EventOption ) HTMLElem
OnKeyDown (h EventHandler , options ...EventOption ) HTMLElem
OnKeyPress (h EventHandler , options ...EventOption ) HTMLElem
OnKeyUp (h EventHandler , options ...EventOption ) HTMLElem
OnMouseDown (h EventHandler , options ...EventOption ) HTMLElem
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLElem
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLElem
OnMouseMove (h EventHandler , options ...EventOption ) HTMLElem
OnMouseOut (h EventHandler , options ...EventOption ) HTMLElem
OnMouseOver (h EventHandler , options ...EventOption ) HTMLElem
OnMouseUp (h EventHandler , options ...EventOption ) HTMLElem
OnPaste (h EventHandler , options ...EventOption ) HTMLElem
OnReset (h EventHandler , options ...EventOption ) HTMLElem
OnScroll (h EventHandler , options ...EventOption ) HTMLElem
OnSearch (h EventHandler , options ...EventOption ) HTMLElem
OnSelect (h EventHandler , options ...EventOption ) HTMLElem
OnSubmit (h EventHandler , options ...EventOption ) HTMLElem
OnWheel (h EventHandler , options ...EventOption ) HTMLElem
}
func Elem (tag string ) HTMLElem {
e := &htmlElem {
htmlElement : htmlElement {
tag : tag ,
isSelfClosing : false ,
},
}
return e
}
type htmlElem struct {
htmlElement
}
func (e *htmlElem ) Body (v ...UI ) HTMLElem {
return e .setBody (FilterUIElems (v ...)).(*htmlElem )
}
func (e *htmlElem ) Text (v any ) HTMLElem {
return e .Body (Text (v ))
}
func (e *htmlElem ) Textf (format string , v ...any ) HTMLElem {
return e .Body (Textf (format , v ...))
}
func (e *htmlElem ) AccessKey (format string , v ...any ) HTMLElem {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlElem ) Aria (k string , v any ) HTMLElem {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlElem ) Attr (n string , v any ) HTMLElem {
e .setAttr (n , v )
return e
}
func (e *htmlElem ) Class (v ...string ) HTMLElem {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlElem ) ContentEditable (v bool ) HTMLElem {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlElem ) DataSet (k string , v any ) HTMLElem {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlElem ) DataSets (ds map [string ]any ) HTMLElem {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlElem ) Dir (format string , v ...any ) HTMLElem {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlElem ) Draggable (v bool ) HTMLElem {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlElem ) Hidden (v bool ) HTMLElem {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlElem ) ID (format string , v ...any ) HTMLElem {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlElem ) Lang (format string , v ...any ) HTMLElem {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlElem ) Role (format string , v ...any ) HTMLElem {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlElem ) Spellcheck (v bool ) HTMLElem {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlElem ) Style (k , format string , v ...any ) HTMLElem {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlElem ) Styles (s map [string ]string ) HTMLElem {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlElem ) TabIndex (v int ) HTMLElem {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlElem ) Title (format string , v ...any ) HTMLElem {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlElem ) XMLNS (v string ) HTMLElem {
e .xmlns = v
return e
}
func (e *htmlElem ) On (event string , h EventHandler , options ...EventOption ) HTMLElem {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlElem ) OnBlur (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("blur" , h , options ...)
}
func (e *htmlElem ) OnChange (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("change" , h , options ...)
}
func (e *htmlElem ) OnClick (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("click" , h , options ...)
}
func (e *htmlElem ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlElem ) OnCopy (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("copy" , h , options ...)
}
func (e *htmlElem ) OnCut (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("cut" , h , options ...)
}
func (e *htmlElem ) OnDblClick (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlElem ) OnDrag (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("drag" , h , options ...)
}
func (e *htmlElem ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("dragend" , h , options ...)
}
func (e *htmlElem ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlElem ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlElem ) OnDragOver (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("dragover" , h , options ...)
}
func (e *htmlElem ) OnDragStart (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlElem ) OnDrop (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("drop" , h , options ...)
}
func (e *htmlElem ) OnFocus (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("focus" , h , options ...)
}
func (e *htmlElem ) OnInput (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("input" , h , options ...)
}
func (e *htmlElem ) OnInvalid (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("invalid" , h , options ...)
}
func (e *htmlElem ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("keydown" , h , options ...)
}
func (e *htmlElem ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("keypress" , h , options ...)
}
func (e *htmlElem ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("keyup" , h , options ...)
}
func (e *htmlElem ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlElem ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlElem ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlElem ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlElem ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlElem ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlElem ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlElem ) OnPaste (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("paste" , h , options ...)
}
func (e *htmlElem ) OnReset (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("reset" , h , options ...)
}
func (e *htmlElem ) OnScroll (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("scroll" , h , options ...)
}
func (e *htmlElem ) OnSearch (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("search" , h , options ...)
}
func (e *htmlElem ) OnSelect (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("select" , h , options ...)
}
func (e *htmlElem ) OnSubmit (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("submit" , h , options ...)
}
func (e *htmlElem ) OnWheel (h EventHandler , options ...EventOption ) HTMLElem {
return e .On ("wheel" , h , options ...)
}
func (e *htmlElem ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlElem ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlElem ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlElem ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlElem ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlElem ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLElemSelfClosing interface {
HTML
AccessKey (format string , v ...any ) HTMLElemSelfClosing
Aria (k string , v any ) HTMLElemSelfClosing
Attr (n string , v any ) HTMLElemSelfClosing
Class (v ...string ) HTMLElemSelfClosing
ContentEditable (v bool ) HTMLElemSelfClosing
DataSet (k string , v any ) HTMLElemSelfClosing
DataSets (ds map [string ]any ) HTMLElemSelfClosing
Dir (format string , v ...any ) HTMLElemSelfClosing
Draggable (v bool ) HTMLElemSelfClosing
Hidden (v bool ) HTMLElemSelfClosing
ID (format string , v ...any ) HTMLElemSelfClosing
Lang (format string , v ...any ) HTMLElemSelfClosing
Role (format string , v ...any ) HTMLElemSelfClosing
Spellcheck (v bool ) HTMLElemSelfClosing
Style (k, format string , v ...any ) HTMLElemSelfClosing
Styles (s map [string ]string ) HTMLElemSelfClosing
TabIndex (v int ) HTMLElemSelfClosing
Title (format string , v ...any ) HTMLElemSelfClosing
XMLNS (v string ) HTMLElemSelfClosing
On (event string , h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnBlur (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnChange (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnClick (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnContextMenu (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnCopy (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnCut (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDblClick (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDrag (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDragEnd (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDragEnter (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDragLeave (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDragOver (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDragStart (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnDrop (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnFocus (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnInput (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnInvalid (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnKeyDown (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnKeyPress (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnKeyUp (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnMouseDown (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnMouseMove (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnMouseOut (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnMouseOver (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnMouseUp (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnPaste (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnReset (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnScroll (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnSearch (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnSelect (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnSubmit (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
OnWheel (h EventHandler , options ...EventOption ) HTMLElemSelfClosing
}
func ElemSelfClosing (tag string ) HTMLElemSelfClosing {
e := &htmlElemSelfClosing {
htmlElement : htmlElement {
tag : tag ,
isSelfClosing : true ,
},
}
return e
}
type htmlElemSelfClosing struct {
htmlElement
}
func (e *htmlElemSelfClosing ) AccessKey (format string , v ...any ) HTMLElemSelfClosing {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlElemSelfClosing ) Aria (k string , v any ) HTMLElemSelfClosing {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlElemSelfClosing ) Attr (n string , v any ) HTMLElemSelfClosing {
e .setAttr (n , v )
return e
}
func (e *htmlElemSelfClosing ) Class (v ...string ) HTMLElemSelfClosing {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlElemSelfClosing ) ContentEditable (v bool ) HTMLElemSelfClosing {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlElemSelfClosing ) DataSet (k string , v any ) HTMLElemSelfClosing {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlElemSelfClosing ) DataSets (ds map [string ]any ) HTMLElemSelfClosing {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlElemSelfClosing ) Dir (format string , v ...any ) HTMLElemSelfClosing {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlElemSelfClosing ) Draggable (v bool ) HTMLElemSelfClosing {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlElemSelfClosing ) Hidden (v bool ) HTMLElemSelfClosing {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlElemSelfClosing ) ID (format string , v ...any ) HTMLElemSelfClosing {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlElemSelfClosing ) Lang (format string , v ...any ) HTMLElemSelfClosing {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlElemSelfClosing ) Role (format string , v ...any ) HTMLElemSelfClosing {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlElemSelfClosing ) Spellcheck (v bool ) HTMLElemSelfClosing {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlElemSelfClosing ) Style (k , format string , v ...any ) HTMLElemSelfClosing {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlElemSelfClosing ) Styles (s map [string ]string ) HTMLElemSelfClosing {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlElemSelfClosing ) TabIndex (v int ) HTMLElemSelfClosing {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlElemSelfClosing ) Title (format string , v ...any ) HTMLElemSelfClosing {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlElemSelfClosing ) XMLNS (v string ) HTMLElemSelfClosing {
e .xmlns = v
return e
}
func (e *htmlElemSelfClosing ) On (event string , h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlElemSelfClosing ) OnBlur (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("blur" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnChange (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("change" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnClick (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("click" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnCopy (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("copy" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnCut (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("cut" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDblClick (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDrag (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("drag" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("dragend" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDragOver (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("dragover" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDragStart (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnDrop (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("drop" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnFocus (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("focus" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnInput (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("input" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnInvalid (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("invalid" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("keydown" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("keypress" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("keyup" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnPaste (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("paste" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnReset (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("reset" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnScroll (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("scroll" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnSearch (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("search" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnSelect (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("select" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnSubmit (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("submit" , h , options ...)
}
func (e *htmlElemSelfClosing ) OnWheel (h EventHandler , options ...EventOption ) HTMLElemSelfClosing {
return e .On ("wheel" , h , options ...)
}
func (e *htmlElemSelfClosing ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlElemSelfClosing ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlElemSelfClosing ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlElemSelfClosing ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlElemSelfClosing ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlElemSelfClosing ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLEm interface {
HTML
Body (elems ...UI ) HTMLEm
Text (v any ) HTMLEm
Textf (format string , v ...any ) HTMLEm
AccessKey (format string , v ...any ) HTMLEm
Aria (k string , v any ) HTMLEm
Attr (n string , v any ) HTMLEm
Class (v ...string ) HTMLEm
ContentEditable (v bool ) HTMLEm
DataSet (k string , v any ) HTMLEm
DataSets (ds map [string ]any ) HTMLEm
Dir (format string , v ...any ) HTMLEm
Draggable (v bool ) HTMLEm
Hidden (v bool ) HTMLEm
ID (format string , v ...any ) HTMLEm
Lang (format string , v ...any ) HTMLEm
Role (format string , v ...any ) HTMLEm
Spellcheck (v bool ) HTMLEm
Style (k, format string , v ...any ) HTMLEm
Styles (s map [string ]string ) HTMLEm
TabIndex (v int ) HTMLEm
Title (format string , v ...any ) HTMLEm
On (event string , h EventHandler , options ...EventOption ) HTMLEm
OnBlur (h EventHandler , options ...EventOption ) HTMLEm
OnChange (h EventHandler , options ...EventOption ) HTMLEm
OnClick (h EventHandler , options ...EventOption ) HTMLEm
OnContextMenu (h EventHandler , options ...EventOption ) HTMLEm
OnCopy (h EventHandler , options ...EventOption ) HTMLEm
OnCut (h EventHandler , options ...EventOption ) HTMLEm
OnDblClick (h EventHandler , options ...EventOption ) HTMLEm
OnDrag (h EventHandler , options ...EventOption ) HTMLEm
OnDragEnd (h EventHandler , options ...EventOption ) HTMLEm
OnDragEnter (h EventHandler , options ...EventOption ) HTMLEm
OnDragLeave (h EventHandler , options ...EventOption ) HTMLEm
OnDragOver (h EventHandler , options ...EventOption ) HTMLEm
OnDragStart (h EventHandler , options ...EventOption ) HTMLEm
OnDrop (h EventHandler , options ...EventOption ) HTMLEm
OnFocus (h EventHandler , options ...EventOption ) HTMLEm
OnInput (h EventHandler , options ...EventOption ) HTMLEm
OnInvalid (h EventHandler , options ...EventOption ) HTMLEm
OnKeyDown (h EventHandler , options ...EventOption ) HTMLEm
OnKeyPress (h EventHandler , options ...EventOption ) HTMLEm
OnKeyUp (h EventHandler , options ...EventOption ) HTMLEm
OnMouseDown (h EventHandler , options ...EventOption ) HTMLEm
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLEm
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLEm
OnMouseMove (h EventHandler , options ...EventOption ) HTMLEm
OnMouseOut (h EventHandler , options ...EventOption ) HTMLEm
OnMouseOver (h EventHandler , options ...EventOption ) HTMLEm
OnMouseUp (h EventHandler , options ...EventOption ) HTMLEm
OnPaste (h EventHandler , options ...EventOption ) HTMLEm
OnReset (h EventHandler , options ...EventOption ) HTMLEm
OnScroll (h EventHandler , options ...EventOption ) HTMLEm
OnSearch (h EventHandler , options ...EventOption ) HTMLEm
OnSelect (h EventHandler , options ...EventOption ) HTMLEm
OnSubmit (h EventHandler , options ...EventOption ) HTMLEm
OnWheel (h EventHandler , options ...EventOption ) HTMLEm
}
func Em () HTMLEm {
e := &htmlEm {
htmlElement : htmlElement {
tag : "em" ,
isSelfClosing : false ,
},
}
return e
}
type htmlEm struct {
htmlElement
}
func (e *htmlEm ) Body (v ...UI ) HTMLEm {
return e .setBody (FilterUIElems (v ...)).(*htmlEm )
}
func (e *htmlEm ) Text (v any ) HTMLEm {
return e .Body (Text (v ))
}
func (e *htmlEm ) Textf (format string , v ...any ) HTMLEm {
return e .Body (Textf (format , v ...))
}
func (e *htmlEm ) AccessKey (format string , v ...any ) HTMLEm {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlEm ) Aria (k string , v any ) HTMLEm {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlEm ) Attr (n string , v any ) HTMLEm {
e .setAttr (n , v )
return e
}
func (e *htmlEm ) Class (v ...string ) HTMLEm {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlEm ) ContentEditable (v bool ) HTMLEm {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlEm ) DataSet (k string , v any ) HTMLEm {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlEm ) DataSets (ds map [string ]any ) HTMLEm {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlEm ) Dir (format string , v ...any ) HTMLEm {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlEm ) Draggable (v bool ) HTMLEm {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlEm ) Hidden (v bool ) HTMLEm {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlEm ) ID (format string , v ...any ) HTMLEm {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlEm ) Lang (format string , v ...any ) HTMLEm {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlEm ) Role (format string , v ...any ) HTMLEm {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlEm ) Spellcheck (v bool ) HTMLEm {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlEm ) Style (k , format string , v ...any ) HTMLEm {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlEm ) Styles (s map [string ]string ) HTMLEm {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlEm ) TabIndex (v int ) HTMLEm {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlEm ) Title (format string , v ...any ) HTMLEm {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlEm ) On (event string , h EventHandler , options ...EventOption ) HTMLEm {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlEm ) OnBlur (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("blur" , h , options ...)
}
func (e *htmlEm ) OnChange (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("change" , h , options ...)
}
func (e *htmlEm ) OnClick (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("click" , h , options ...)
}
func (e *htmlEm ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlEm ) OnCopy (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("copy" , h , options ...)
}
func (e *htmlEm ) OnCut (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("cut" , h , options ...)
}
func (e *htmlEm ) OnDblClick (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlEm ) OnDrag (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("drag" , h , options ...)
}
func (e *htmlEm ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("dragend" , h , options ...)
}
func (e *htmlEm ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlEm ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlEm ) OnDragOver (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("dragover" , h , options ...)
}
func (e *htmlEm ) OnDragStart (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlEm ) OnDrop (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("drop" , h , options ...)
}
func (e *htmlEm ) OnFocus (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("focus" , h , options ...)
}
func (e *htmlEm ) OnInput (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("input" , h , options ...)
}
func (e *htmlEm ) OnInvalid (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("invalid" , h , options ...)
}
func (e *htmlEm ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("keydown" , h , options ...)
}
func (e *htmlEm ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("keypress" , h , options ...)
}
func (e *htmlEm ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("keyup" , h , options ...)
}
func (e *htmlEm ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlEm ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlEm ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlEm ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlEm ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlEm ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlEm ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlEm ) OnPaste (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("paste" , h , options ...)
}
func (e *htmlEm ) OnReset (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("reset" , h , options ...)
}
func (e *htmlEm ) OnScroll (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("scroll" , h , options ...)
}
func (e *htmlEm ) OnSearch (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("search" , h , options ...)
}
func (e *htmlEm ) OnSelect (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("select" , h , options ...)
}
func (e *htmlEm ) OnSubmit (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("submit" , h , options ...)
}
func (e *htmlEm ) OnWheel (h EventHandler , options ...EventOption ) HTMLEm {
return e .On ("wheel" , h , options ...)
}
func (e *htmlEm ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlEm ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlEm ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlEm ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlEm ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlEm ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLEmbed interface {
HTML
AccessKey (format string , v ...any ) HTMLEmbed
Aria (k string , v any ) HTMLEmbed
Attr (n string , v any ) HTMLEmbed
Class (v ...string ) HTMLEmbed
ContentEditable (v bool ) HTMLEmbed
DataSet (k string , v any ) HTMLEmbed
DataSets (ds map [string ]any ) HTMLEmbed
Dir (format string , v ...any ) HTMLEmbed
Draggable (v bool ) HTMLEmbed
Height (v int ) HTMLEmbed
Hidden (v bool ) HTMLEmbed
ID (format string , v ...any ) HTMLEmbed
Lang (format string , v ...any ) HTMLEmbed
Role (format string , v ...any ) HTMLEmbed
Spellcheck (v bool ) HTMLEmbed
Src (format string , v ...any ) HTMLEmbed
Style (k, format string , v ...any ) HTMLEmbed
Styles (s map [string ]string ) HTMLEmbed
TabIndex (v int ) HTMLEmbed
Title (format string , v ...any ) HTMLEmbed
Type (format string , v ...any ) HTMLEmbed
Width (v int ) HTMLEmbed
On (event string , h EventHandler , options ...EventOption ) HTMLEmbed
OnAbort (h EventHandler , options ...EventOption ) HTMLEmbed
OnBlur (h EventHandler , options ...EventOption ) HTMLEmbed
OnCanPlay (h EventHandler , options ...EventOption ) HTMLEmbed
OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLEmbed
OnChange (h EventHandler , options ...EventOption ) HTMLEmbed
OnClick (h EventHandler , options ...EventOption ) HTMLEmbed
OnContextMenu (h EventHandler , options ...EventOption ) HTMLEmbed
OnCopy (h EventHandler , options ...EventOption ) HTMLEmbed
OnCueChange (h EventHandler , options ...EventOption ) HTMLEmbed
OnCut (h EventHandler , options ...EventOption ) HTMLEmbed
OnDblClick (h EventHandler , options ...EventOption ) HTMLEmbed
OnDrag (h EventHandler , options ...EventOption ) HTMLEmbed
OnDragEnd (h EventHandler , options ...EventOption ) HTMLEmbed
OnDragEnter (h EventHandler , options ...EventOption ) HTMLEmbed
OnDragLeave (h EventHandler , options ...EventOption ) HTMLEmbed
OnDragOver (h EventHandler , options ...EventOption ) HTMLEmbed
OnDragStart (h EventHandler , options ...EventOption ) HTMLEmbed
OnDrop (h EventHandler , options ...EventOption ) HTMLEmbed
OnDurationChange (h EventHandler , options ...EventOption ) HTMLEmbed
OnEmptied (h EventHandler , options ...EventOption ) HTMLEmbed
OnEnded (h EventHandler , options ...EventOption ) HTMLEmbed
OnError (h EventHandler , options ...EventOption ) HTMLEmbed
OnFocus (h EventHandler , options ...EventOption ) HTMLEmbed
OnInput (h EventHandler , options ...EventOption ) HTMLEmbed
OnInvalid (h EventHandler , options ...EventOption ) HTMLEmbed
OnKeyDown (h EventHandler , options ...EventOption ) HTMLEmbed
OnKeyPress (h EventHandler , options ...EventOption ) HTMLEmbed
OnKeyUp (h EventHandler , options ...EventOption ) HTMLEmbed
OnLoadStart (h EventHandler , options ...EventOption ) HTMLEmbed
OnLoadedData (h EventHandler , options ...EventOption ) HTMLEmbed
OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLEmbed
OnMouseDown (h EventHandler , options ...EventOption ) HTMLEmbed
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLEmbed
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLEmbed
OnMouseMove (h EventHandler , options ...EventOption ) HTMLEmbed
OnMouseOut (h EventHandler , options ...EventOption ) HTMLEmbed
OnMouseOver (h EventHandler , options ...EventOption ) HTMLEmbed
OnMouseUp (h EventHandler , options ...EventOption ) HTMLEmbed
OnPaste (h EventHandler , options ...EventOption ) HTMLEmbed
OnPause (h EventHandler , options ...EventOption ) HTMLEmbed
OnPlay (h EventHandler , options ...EventOption ) HTMLEmbed
OnPlaying (h EventHandler , options ...EventOption ) HTMLEmbed
OnProgress (h EventHandler , options ...EventOption ) HTMLEmbed
OnRateChange (h EventHandler , options ...EventOption ) HTMLEmbed
OnReset (h EventHandler , options ...EventOption ) HTMLEmbed
OnScroll (h EventHandler , options ...EventOption ) HTMLEmbed
OnSearch (h EventHandler , options ...EventOption ) HTMLEmbed
OnSeeked (h EventHandler , options ...EventOption ) HTMLEmbed
OnSeeking (h EventHandler , options ...EventOption ) HTMLEmbed
OnSelect (h EventHandler , options ...EventOption ) HTMLEmbed
OnStalled (h EventHandler , options ...EventOption ) HTMLEmbed
OnSubmit (h EventHandler , options ...EventOption ) HTMLEmbed
OnSuspend (h EventHandler , options ...EventOption ) HTMLEmbed
OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLEmbed
OnVolumeChange (h EventHandler , options ...EventOption ) HTMLEmbed
OnWaiting (h EventHandler , options ...EventOption ) HTMLEmbed
OnWheel (h EventHandler , options ...EventOption ) HTMLEmbed
}
func Embed () HTMLEmbed {
e := &htmlEmbed {
htmlElement : htmlElement {
tag : "embed" ,
isSelfClosing : true ,
},
}
return e
}
type htmlEmbed struct {
htmlElement
}
func (e *htmlEmbed ) AccessKey (format string , v ...any ) HTMLEmbed {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Aria (k string , v any ) HTMLEmbed {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlEmbed ) Attr (n string , v any ) HTMLEmbed {
e .setAttr (n , v )
return e
}
func (e *htmlEmbed ) Class (v ...string ) HTMLEmbed {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlEmbed ) ContentEditable (v bool ) HTMLEmbed {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlEmbed ) DataSet (k string , v any ) HTMLEmbed {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlEmbed ) DataSets (ds map [string ]any ) HTMLEmbed {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlEmbed ) Dir (format string , v ...any ) HTMLEmbed {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Draggable (v bool ) HTMLEmbed {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlEmbed ) Height (v int ) HTMLEmbed {
e .setAttr ("height" , v )
return e
}
func (e *htmlEmbed ) Hidden (v bool ) HTMLEmbed {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlEmbed ) ID (format string , v ...any ) HTMLEmbed {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Lang (format string , v ...any ) HTMLEmbed {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Role (format string , v ...any ) HTMLEmbed {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Spellcheck (v bool ) HTMLEmbed {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlEmbed ) Src (format string , v ...any ) HTMLEmbed {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Style (k , format string , v ...any ) HTMLEmbed {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Styles (s map [string ]string ) HTMLEmbed {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlEmbed ) TabIndex (v int ) HTMLEmbed {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlEmbed ) Title (format string , v ...any ) HTMLEmbed {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Type (format string , v ...any ) HTMLEmbed {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlEmbed ) Width (v int ) HTMLEmbed {
e .setAttr ("width" , v )
return e
}
func (e *htmlEmbed ) On (event string , h EventHandler , options ...EventOption ) HTMLEmbed {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlEmbed ) OnAbort (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("abort" , h , options ...)
}
func (e *htmlEmbed ) OnBlur (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("blur" , h , options ...)
}
func (e *htmlEmbed ) OnCanPlay (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("canplay" , h , options ...)
}
func (e *htmlEmbed ) OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("canplaythrough" , h , options ...)
}
func (e *htmlEmbed ) OnChange (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("change" , h , options ...)
}
func (e *htmlEmbed ) OnClick (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("click" , h , options ...)
}
func (e *htmlEmbed ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlEmbed ) OnCopy (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("copy" , h , options ...)
}
func (e *htmlEmbed ) OnCueChange (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("cuechange" , h , options ...)
}
func (e *htmlEmbed ) OnCut (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("cut" , h , options ...)
}
func (e *htmlEmbed ) OnDblClick (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlEmbed ) OnDrag (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("drag" , h , options ...)
}
func (e *htmlEmbed ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("dragend" , h , options ...)
}
func (e *htmlEmbed ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlEmbed ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlEmbed ) OnDragOver (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("dragover" , h , options ...)
}
func (e *htmlEmbed ) OnDragStart (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlEmbed ) OnDrop (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("drop" , h , options ...)
}
func (e *htmlEmbed ) OnDurationChange (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("durationchange" , h , options ...)
}
func (e *htmlEmbed ) OnEmptied (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("emptied" , h , options ...)
}
func (e *htmlEmbed ) OnEnded (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("ended" , h , options ...)
}
func (e *htmlEmbed ) OnError (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("error" , h , options ...)
}
func (e *htmlEmbed ) OnFocus (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("focus" , h , options ...)
}
func (e *htmlEmbed ) OnInput (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("input" , h , options ...)
}
func (e *htmlEmbed ) OnInvalid (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("invalid" , h , options ...)
}
func (e *htmlEmbed ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("keydown" , h , options ...)
}
func (e *htmlEmbed ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("keypress" , h , options ...)
}
func (e *htmlEmbed ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("keyup" , h , options ...)
}
func (e *htmlEmbed ) OnLoadStart (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("loadstart" , h , options ...)
}
func (e *htmlEmbed ) OnLoadedData (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("loadeddata" , h , options ...)
}
func (e *htmlEmbed ) OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("loadedmetadata" , h , options ...)
}
func (e *htmlEmbed ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlEmbed ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlEmbed ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlEmbed ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlEmbed ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlEmbed ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlEmbed ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlEmbed ) OnPaste (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("paste" , h , options ...)
}
func (e *htmlEmbed ) OnPause (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("pause" , h , options ...)
}
func (e *htmlEmbed ) OnPlay (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("play" , h , options ...)
}
func (e *htmlEmbed ) OnPlaying (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("playing" , h , options ...)
}
func (e *htmlEmbed ) OnProgress (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("progress" , h , options ...)
}
func (e *htmlEmbed ) OnRateChange (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("ratechange" , h , options ...)
}
func (e *htmlEmbed ) OnReset (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("reset" , h , options ...)
}
func (e *htmlEmbed ) OnScroll (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("scroll" , h , options ...)
}
func (e *htmlEmbed ) OnSearch (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("search" , h , options ...)
}
func (e *htmlEmbed ) OnSeeked (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("seeked" , h , options ...)
}
func (e *htmlEmbed ) OnSeeking (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("seeking" , h , options ...)
}
func (e *htmlEmbed ) OnSelect (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("select" , h , options ...)
}
func (e *htmlEmbed ) OnStalled (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("stalled" , h , options ...)
}
func (e *htmlEmbed ) OnSubmit (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("submit" , h , options ...)
}
func (e *htmlEmbed ) OnSuspend (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("suspend" , h , options ...)
}
func (e *htmlEmbed ) OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("timeupdate" , h , options ...)
}
func (e *htmlEmbed ) OnVolumeChange (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("volumechange" , h , options ...)
}
func (e *htmlEmbed ) OnWaiting (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("waiting" , h , options ...)
}
func (e *htmlEmbed ) OnWheel (h EventHandler , options ...EventOption ) HTMLEmbed {
return e .On ("wheel" , h , options ...)
}
func (e *htmlEmbed ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlEmbed ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlEmbed ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlEmbed ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlEmbed ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlEmbed ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLFieldSet interface {
HTML
Body (elems ...UI ) HTMLFieldSet
Text (v any ) HTMLFieldSet
Textf (format string , v ...any ) HTMLFieldSet
AccessKey (format string , v ...any ) HTMLFieldSet
Aria (k string , v any ) HTMLFieldSet
Attr (n string , v any ) HTMLFieldSet
Class (v ...string ) HTMLFieldSet
ContentEditable (v bool ) HTMLFieldSet
DataSet (k string , v any ) HTMLFieldSet
DataSets (ds map [string ]any ) HTMLFieldSet
Dir (format string , v ...any ) HTMLFieldSet
Disabled (v bool ) HTMLFieldSet
Draggable (v bool ) HTMLFieldSet
Form (format string , v ...any ) HTMLFieldSet
Hidden (v bool ) HTMLFieldSet
ID (format string , v ...any ) HTMLFieldSet
Lang (format string , v ...any ) HTMLFieldSet
Name (format string , v ...any ) HTMLFieldSet
Role (format string , v ...any ) HTMLFieldSet
Spellcheck (v bool ) HTMLFieldSet
Style (k, format string , v ...any ) HTMLFieldSet
Styles (s map [string ]string ) HTMLFieldSet
TabIndex (v int ) HTMLFieldSet
Title (format string , v ...any ) HTMLFieldSet
On (event string , h EventHandler , options ...EventOption ) HTMLFieldSet
OnBlur (h EventHandler , options ...EventOption ) HTMLFieldSet
OnChange (h EventHandler , options ...EventOption ) HTMLFieldSet
OnClick (h EventHandler , options ...EventOption ) HTMLFieldSet
OnContextMenu (h EventHandler , options ...EventOption ) HTMLFieldSet
OnCopy (h EventHandler , options ...EventOption ) HTMLFieldSet
OnCut (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDblClick (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDrag (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDragEnd (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDragEnter (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDragLeave (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDragOver (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDragStart (h EventHandler , options ...EventOption ) HTMLFieldSet
OnDrop (h EventHandler , options ...EventOption ) HTMLFieldSet
OnFocus (h EventHandler , options ...EventOption ) HTMLFieldSet
OnInput (h EventHandler , options ...EventOption ) HTMLFieldSet
OnInvalid (h EventHandler , options ...EventOption ) HTMLFieldSet
OnKeyDown (h EventHandler , options ...EventOption ) HTMLFieldSet
OnKeyPress (h EventHandler , options ...EventOption ) HTMLFieldSet
OnKeyUp (h EventHandler , options ...EventOption ) HTMLFieldSet
OnMouseDown (h EventHandler , options ...EventOption ) HTMLFieldSet
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFieldSet
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFieldSet
OnMouseMove (h EventHandler , options ...EventOption ) HTMLFieldSet
OnMouseOut (h EventHandler , options ...EventOption ) HTMLFieldSet
OnMouseOver (h EventHandler , options ...EventOption ) HTMLFieldSet
OnMouseUp (h EventHandler , options ...EventOption ) HTMLFieldSet
OnPaste (h EventHandler , options ...EventOption ) HTMLFieldSet
OnReset (h EventHandler , options ...EventOption ) HTMLFieldSet
OnScroll (h EventHandler , options ...EventOption ) HTMLFieldSet
OnSearch (h EventHandler , options ...EventOption ) HTMLFieldSet
OnSelect (h EventHandler , options ...EventOption ) HTMLFieldSet
OnSubmit (h EventHandler , options ...EventOption ) HTMLFieldSet
OnWheel (h EventHandler , options ...EventOption ) HTMLFieldSet
}
func FieldSet () HTMLFieldSet {
e := &htmlFieldSet {
htmlElement : htmlElement {
tag : "fieldset" ,
isSelfClosing : false ,
},
}
return e
}
type htmlFieldSet struct {
htmlElement
}
func (e *htmlFieldSet ) Body (v ...UI ) HTMLFieldSet {
return e .setBody (FilterUIElems (v ...)).(*htmlFieldSet )
}
func (e *htmlFieldSet ) Text (v any ) HTMLFieldSet {
return e .Body (Text (v ))
}
func (e *htmlFieldSet ) Textf (format string , v ...any ) HTMLFieldSet {
return e .Body (Textf (format , v ...))
}
func (e *htmlFieldSet ) AccessKey (format string , v ...any ) HTMLFieldSet {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Aria (k string , v any ) HTMLFieldSet {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFieldSet ) Attr (n string , v any ) HTMLFieldSet {
e .setAttr (n , v )
return e
}
func (e *htmlFieldSet ) Class (v ...string ) HTMLFieldSet {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlFieldSet ) ContentEditable (v bool ) HTMLFieldSet {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlFieldSet ) DataSet (k string , v any ) HTMLFieldSet {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFieldSet ) DataSets (ds map [string ]any ) HTMLFieldSet {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlFieldSet ) Dir (format string , v ...any ) HTMLFieldSet {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Disabled (v bool ) HTMLFieldSet {
e .setAttr ("disabled" , v )
return e
}
func (e *htmlFieldSet ) Draggable (v bool ) HTMLFieldSet {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlFieldSet ) Form (format string , v ...any ) HTMLFieldSet {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Hidden (v bool ) HTMLFieldSet {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlFieldSet ) ID (format string , v ...any ) HTMLFieldSet {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Lang (format string , v ...any ) HTMLFieldSet {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Name (format string , v ...any ) HTMLFieldSet {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Role (format string , v ...any ) HTMLFieldSet {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Spellcheck (v bool ) HTMLFieldSet {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlFieldSet ) Style (k , format string , v ...any ) HTMLFieldSet {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) Styles (s map [string ]string ) HTMLFieldSet {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlFieldSet ) TabIndex (v int ) HTMLFieldSet {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlFieldSet ) Title (format string , v ...any ) HTMLFieldSet {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlFieldSet ) On (event string , h EventHandler , options ...EventOption ) HTMLFieldSet {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlFieldSet ) OnBlur (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("blur" , h , options ...)
}
func (e *htmlFieldSet ) OnChange (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("change" , h , options ...)
}
func (e *htmlFieldSet ) OnClick (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("click" , h , options ...)
}
func (e *htmlFieldSet ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlFieldSet ) OnCopy (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("copy" , h , options ...)
}
func (e *htmlFieldSet ) OnCut (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("cut" , h , options ...)
}
func (e *htmlFieldSet ) OnDblClick (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlFieldSet ) OnDrag (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("drag" , h , options ...)
}
func (e *htmlFieldSet ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("dragend" , h , options ...)
}
func (e *htmlFieldSet ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlFieldSet ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlFieldSet ) OnDragOver (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("dragover" , h , options ...)
}
func (e *htmlFieldSet ) OnDragStart (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlFieldSet ) OnDrop (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("drop" , h , options ...)
}
func (e *htmlFieldSet ) OnFocus (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("focus" , h , options ...)
}
func (e *htmlFieldSet ) OnInput (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("input" , h , options ...)
}
func (e *htmlFieldSet ) OnInvalid (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("invalid" , h , options ...)
}
func (e *htmlFieldSet ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("keydown" , h , options ...)
}
func (e *htmlFieldSet ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("keypress" , h , options ...)
}
func (e *htmlFieldSet ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("keyup" , h , options ...)
}
func (e *htmlFieldSet ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlFieldSet ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlFieldSet ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlFieldSet ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlFieldSet ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlFieldSet ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlFieldSet ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlFieldSet ) OnPaste (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("paste" , h , options ...)
}
func (e *htmlFieldSet ) OnReset (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("reset" , h , options ...)
}
func (e *htmlFieldSet ) OnScroll (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("scroll" , h , options ...)
}
func (e *htmlFieldSet ) OnSearch (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("search" , h , options ...)
}
func (e *htmlFieldSet ) OnSelect (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("select" , h , options ...)
}
func (e *htmlFieldSet ) OnSubmit (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("submit" , h , options ...)
}
func (e *htmlFieldSet ) OnWheel (h EventHandler , options ...EventOption ) HTMLFieldSet {
return e .On ("wheel" , h , options ...)
}
func (e *htmlFieldSet ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlFieldSet ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlFieldSet ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlFieldSet ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlFieldSet ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlFieldSet ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLFigCaption interface {
HTML
Body (elems ...UI ) HTMLFigCaption
Text (v any ) HTMLFigCaption
Textf (format string , v ...any ) HTMLFigCaption
AccessKey (format string , v ...any ) HTMLFigCaption
Aria (k string , v any ) HTMLFigCaption
Attr (n string , v any ) HTMLFigCaption
Class (v ...string ) HTMLFigCaption
ContentEditable (v bool ) HTMLFigCaption
DataSet (k string , v any ) HTMLFigCaption
DataSets (ds map [string ]any ) HTMLFigCaption
Dir (format string , v ...any ) HTMLFigCaption
Draggable (v bool ) HTMLFigCaption
Hidden (v bool ) HTMLFigCaption
ID (format string , v ...any ) HTMLFigCaption
Lang (format string , v ...any ) HTMLFigCaption
Role (format string , v ...any ) HTMLFigCaption
Spellcheck (v bool ) HTMLFigCaption
Style (k, format string , v ...any ) HTMLFigCaption
Styles (s map [string ]string ) HTMLFigCaption
TabIndex (v int ) HTMLFigCaption
Title (format string , v ...any ) HTMLFigCaption
On (event string , h EventHandler , options ...EventOption ) HTMLFigCaption
OnBlur (h EventHandler , options ...EventOption ) HTMLFigCaption
OnChange (h EventHandler , options ...EventOption ) HTMLFigCaption
OnClick (h EventHandler , options ...EventOption ) HTMLFigCaption
OnContextMenu (h EventHandler , options ...EventOption ) HTMLFigCaption
OnCopy (h EventHandler , options ...EventOption ) HTMLFigCaption
OnCut (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDblClick (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDrag (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDragEnd (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDragEnter (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDragLeave (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDragOver (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDragStart (h EventHandler , options ...EventOption ) HTMLFigCaption
OnDrop (h EventHandler , options ...EventOption ) HTMLFigCaption
OnFocus (h EventHandler , options ...EventOption ) HTMLFigCaption
OnInput (h EventHandler , options ...EventOption ) HTMLFigCaption
OnInvalid (h EventHandler , options ...EventOption ) HTMLFigCaption
OnKeyDown (h EventHandler , options ...EventOption ) HTMLFigCaption
OnKeyPress (h EventHandler , options ...EventOption ) HTMLFigCaption
OnKeyUp (h EventHandler , options ...EventOption ) HTMLFigCaption
OnMouseDown (h EventHandler , options ...EventOption ) HTMLFigCaption
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFigCaption
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFigCaption
OnMouseMove (h EventHandler , options ...EventOption ) HTMLFigCaption
OnMouseOut (h EventHandler , options ...EventOption ) HTMLFigCaption
OnMouseOver (h EventHandler , options ...EventOption ) HTMLFigCaption
OnMouseUp (h EventHandler , options ...EventOption ) HTMLFigCaption
OnPaste (h EventHandler , options ...EventOption ) HTMLFigCaption
OnReset (h EventHandler , options ...EventOption ) HTMLFigCaption
OnScroll (h EventHandler , options ...EventOption ) HTMLFigCaption
OnSearch (h EventHandler , options ...EventOption ) HTMLFigCaption
OnSelect (h EventHandler , options ...EventOption ) HTMLFigCaption
OnSubmit (h EventHandler , options ...EventOption ) HTMLFigCaption
OnWheel (h EventHandler , options ...EventOption ) HTMLFigCaption
}
func FigCaption () HTMLFigCaption {
e := &htmlFigCaption {
htmlElement : htmlElement {
tag : "figcaption" ,
isSelfClosing : false ,
},
}
return e
}
type htmlFigCaption struct {
htmlElement
}
func (e *htmlFigCaption ) Body (v ...UI ) HTMLFigCaption {
return e .setBody (FilterUIElems (v ...)).(*htmlFigCaption )
}
func (e *htmlFigCaption ) Text (v any ) HTMLFigCaption {
return e .Body (Text (v ))
}
func (e *htmlFigCaption ) Textf (format string , v ...any ) HTMLFigCaption {
return e .Body (Textf (format , v ...))
}
func (e *htmlFigCaption ) AccessKey (format string , v ...any ) HTMLFigCaption {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlFigCaption ) Aria (k string , v any ) HTMLFigCaption {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFigCaption ) Attr (n string , v any ) HTMLFigCaption {
e .setAttr (n , v )
return e
}
func (e *htmlFigCaption ) Class (v ...string ) HTMLFigCaption {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlFigCaption ) ContentEditable (v bool ) HTMLFigCaption {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlFigCaption ) DataSet (k string , v any ) HTMLFigCaption {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFigCaption ) DataSets (ds map [string ]any ) HTMLFigCaption {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlFigCaption ) Dir (format string , v ...any ) HTMLFigCaption {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlFigCaption ) Draggable (v bool ) HTMLFigCaption {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlFigCaption ) Hidden (v bool ) HTMLFigCaption {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlFigCaption ) ID (format string , v ...any ) HTMLFigCaption {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlFigCaption ) Lang (format string , v ...any ) HTMLFigCaption {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlFigCaption ) Role (format string , v ...any ) HTMLFigCaption {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlFigCaption ) Spellcheck (v bool ) HTMLFigCaption {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlFigCaption ) Style (k , format string , v ...any ) HTMLFigCaption {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlFigCaption ) Styles (s map [string ]string ) HTMLFigCaption {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlFigCaption ) TabIndex (v int ) HTMLFigCaption {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlFigCaption ) Title (format string , v ...any ) HTMLFigCaption {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlFigCaption ) On (event string , h EventHandler , options ...EventOption ) HTMLFigCaption {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlFigCaption ) OnBlur (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("blur" , h , options ...)
}
func (e *htmlFigCaption ) OnChange (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("change" , h , options ...)
}
func (e *htmlFigCaption ) OnClick (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("click" , h , options ...)
}
func (e *htmlFigCaption ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlFigCaption ) OnCopy (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("copy" , h , options ...)
}
func (e *htmlFigCaption ) OnCut (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("cut" , h , options ...)
}
func (e *htmlFigCaption ) OnDblClick (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlFigCaption ) OnDrag (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("drag" , h , options ...)
}
func (e *htmlFigCaption ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("dragend" , h , options ...)
}
func (e *htmlFigCaption ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlFigCaption ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlFigCaption ) OnDragOver (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("dragover" , h , options ...)
}
func (e *htmlFigCaption ) OnDragStart (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlFigCaption ) OnDrop (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("drop" , h , options ...)
}
func (e *htmlFigCaption ) OnFocus (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("focus" , h , options ...)
}
func (e *htmlFigCaption ) OnInput (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("input" , h , options ...)
}
func (e *htmlFigCaption ) OnInvalid (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("invalid" , h , options ...)
}
func (e *htmlFigCaption ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("keydown" , h , options ...)
}
func (e *htmlFigCaption ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("keypress" , h , options ...)
}
func (e *htmlFigCaption ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("keyup" , h , options ...)
}
func (e *htmlFigCaption ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlFigCaption ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlFigCaption ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlFigCaption ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlFigCaption ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlFigCaption ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlFigCaption ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlFigCaption ) OnPaste (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("paste" , h , options ...)
}
func (e *htmlFigCaption ) OnReset (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("reset" , h , options ...)
}
func (e *htmlFigCaption ) OnScroll (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("scroll" , h , options ...)
}
func (e *htmlFigCaption ) OnSearch (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("search" , h , options ...)
}
func (e *htmlFigCaption ) OnSelect (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("select" , h , options ...)
}
func (e *htmlFigCaption ) OnSubmit (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("submit" , h , options ...)
}
func (e *htmlFigCaption ) OnWheel (h EventHandler , options ...EventOption ) HTMLFigCaption {
return e .On ("wheel" , h , options ...)
}
func (e *htmlFigCaption ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlFigCaption ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlFigCaption ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlFigCaption ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlFigCaption ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlFigCaption ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLFigure interface {
HTML
Body (elems ...UI ) HTMLFigure
Text (v any ) HTMLFigure
Textf (format string , v ...any ) HTMLFigure
AccessKey (format string , v ...any ) HTMLFigure
Aria (k string , v any ) HTMLFigure
Attr (n string , v any ) HTMLFigure
Class (v ...string ) HTMLFigure
ContentEditable (v bool ) HTMLFigure
DataSet (k string , v any ) HTMLFigure
DataSets (ds map [string ]any ) HTMLFigure
Dir (format string , v ...any ) HTMLFigure
Draggable (v bool ) HTMLFigure
Hidden (v bool ) HTMLFigure
ID (format string , v ...any ) HTMLFigure
Lang (format string , v ...any ) HTMLFigure
Role (format string , v ...any ) HTMLFigure
Spellcheck (v bool ) HTMLFigure
Style (k, format string , v ...any ) HTMLFigure
Styles (s map [string ]string ) HTMLFigure
TabIndex (v int ) HTMLFigure
Title (format string , v ...any ) HTMLFigure
On (event string , h EventHandler , options ...EventOption ) HTMLFigure
OnBlur (h EventHandler , options ...EventOption ) HTMLFigure
OnChange (h EventHandler , options ...EventOption ) HTMLFigure
OnClick (h EventHandler , options ...EventOption ) HTMLFigure
OnContextMenu (h EventHandler , options ...EventOption ) HTMLFigure
OnCopy (h EventHandler , options ...EventOption ) HTMLFigure
OnCut (h EventHandler , options ...EventOption ) HTMLFigure
OnDblClick (h EventHandler , options ...EventOption ) HTMLFigure
OnDrag (h EventHandler , options ...EventOption ) HTMLFigure
OnDragEnd (h EventHandler , options ...EventOption ) HTMLFigure
OnDragEnter (h EventHandler , options ...EventOption ) HTMLFigure
OnDragLeave (h EventHandler , options ...EventOption ) HTMLFigure
OnDragOver (h EventHandler , options ...EventOption ) HTMLFigure
OnDragStart (h EventHandler , options ...EventOption ) HTMLFigure
OnDrop (h EventHandler , options ...EventOption ) HTMLFigure
OnFocus (h EventHandler , options ...EventOption ) HTMLFigure
OnInput (h EventHandler , options ...EventOption ) HTMLFigure
OnInvalid (h EventHandler , options ...EventOption ) HTMLFigure
OnKeyDown (h EventHandler , options ...EventOption ) HTMLFigure
OnKeyPress (h EventHandler , options ...EventOption ) HTMLFigure
OnKeyUp (h EventHandler , options ...EventOption ) HTMLFigure
OnMouseDown (h EventHandler , options ...EventOption ) HTMLFigure
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFigure
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFigure
OnMouseMove (h EventHandler , options ...EventOption ) HTMLFigure
OnMouseOut (h EventHandler , options ...EventOption ) HTMLFigure
OnMouseOver (h EventHandler , options ...EventOption ) HTMLFigure
OnMouseUp (h EventHandler , options ...EventOption ) HTMLFigure
OnPaste (h EventHandler , options ...EventOption ) HTMLFigure
OnReset (h EventHandler , options ...EventOption ) HTMLFigure
OnScroll (h EventHandler , options ...EventOption ) HTMLFigure
OnSearch (h EventHandler , options ...EventOption ) HTMLFigure
OnSelect (h EventHandler , options ...EventOption ) HTMLFigure
OnSubmit (h EventHandler , options ...EventOption ) HTMLFigure
OnWheel (h EventHandler , options ...EventOption ) HTMLFigure
}
func Figure () HTMLFigure {
e := &htmlFigure {
htmlElement : htmlElement {
tag : "figure" ,
isSelfClosing : false ,
},
}
return e
}
type htmlFigure struct {
htmlElement
}
func (e *htmlFigure ) Body (v ...UI ) HTMLFigure {
return e .setBody (FilterUIElems (v ...)).(*htmlFigure )
}
func (e *htmlFigure ) Text (v any ) HTMLFigure {
return e .Body (Text (v ))
}
func (e *htmlFigure ) Textf (format string , v ...any ) HTMLFigure {
return e .Body (Textf (format , v ...))
}
func (e *htmlFigure ) AccessKey (format string , v ...any ) HTMLFigure {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlFigure ) Aria (k string , v any ) HTMLFigure {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFigure ) Attr (n string , v any ) HTMLFigure {
e .setAttr (n , v )
return e
}
func (e *htmlFigure ) Class (v ...string ) HTMLFigure {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlFigure ) ContentEditable (v bool ) HTMLFigure {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlFigure ) DataSet (k string , v any ) HTMLFigure {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFigure ) DataSets (ds map [string ]any ) HTMLFigure {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlFigure ) Dir (format string , v ...any ) HTMLFigure {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlFigure ) Draggable (v bool ) HTMLFigure {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlFigure ) Hidden (v bool ) HTMLFigure {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlFigure ) ID (format string , v ...any ) HTMLFigure {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlFigure ) Lang (format string , v ...any ) HTMLFigure {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlFigure ) Role (format string , v ...any ) HTMLFigure {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlFigure ) Spellcheck (v bool ) HTMLFigure {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlFigure ) Style (k , format string , v ...any ) HTMLFigure {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlFigure ) Styles (s map [string ]string ) HTMLFigure {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlFigure ) TabIndex (v int ) HTMLFigure {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlFigure ) Title (format string , v ...any ) HTMLFigure {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlFigure ) On (event string , h EventHandler , options ...EventOption ) HTMLFigure {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlFigure ) OnBlur (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("blur" , h , options ...)
}
func (e *htmlFigure ) OnChange (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("change" , h , options ...)
}
func (e *htmlFigure ) OnClick (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("click" , h , options ...)
}
func (e *htmlFigure ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlFigure ) OnCopy (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("copy" , h , options ...)
}
func (e *htmlFigure ) OnCut (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("cut" , h , options ...)
}
func (e *htmlFigure ) OnDblClick (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlFigure ) OnDrag (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("drag" , h , options ...)
}
func (e *htmlFigure ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("dragend" , h , options ...)
}
func (e *htmlFigure ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlFigure ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlFigure ) OnDragOver (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("dragover" , h , options ...)
}
func (e *htmlFigure ) OnDragStart (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlFigure ) OnDrop (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("drop" , h , options ...)
}
func (e *htmlFigure ) OnFocus (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("focus" , h , options ...)
}
func (e *htmlFigure ) OnInput (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("input" , h , options ...)
}
func (e *htmlFigure ) OnInvalid (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("invalid" , h , options ...)
}
func (e *htmlFigure ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("keydown" , h , options ...)
}
func (e *htmlFigure ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("keypress" , h , options ...)
}
func (e *htmlFigure ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("keyup" , h , options ...)
}
func (e *htmlFigure ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlFigure ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlFigure ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlFigure ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlFigure ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlFigure ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlFigure ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlFigure ) OnPaste (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("paste" , h , options ...)
}
func (e *htmlFigure ) OnReset (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("reset" , h , options ...)
}
func (e *htmlFigure ) OnScroll (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("scroll" , h , options ...)
}
func (e *htmlFigure ) OnSearch (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("search" , h , options ...)
}
func (e *htmlFigure ) OnSelect (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("select" , h , options ...)
}
func (e *htmlFigure ) OnSubmit (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("submit" , h , options ...)
}
func (e *htmlFigure ) OnWheel (h EventHandler , options ...EventOption ) HTMLFigure {
return e .On ("wheel" , h , options ...)
}
func (e *htmlFigure ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlFigure ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlFigure ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlFigure ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlFigure ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlFigure ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLFooter interface {
HTML
Body (elems ...UI ) HTMLFooter
Text (v any ) HTMLFooter
Textf (format string , v ...any ) HTMLFooter
AccessKey (format string , v ...any ) 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
DataSets (ds map [string ]any ) HTMLFooter
Dir (format string , v ...any ) HTMLFooter
Draggable (v bool ) HTMLFooter
Hidden (v bool ) HTMLFooter
ID (format string , v ...any ) HTMLFooter
Lang (format string , v ...any ) HTMLFooter
Role (format string , v ...any ) HTMLFooter
Spellcheck (v bool ) HTMLFooter
Style (k, format string , v ...any ) HTMLFooter
Styles (s map [string ]string ) HTMLFooter
TabIndex (v int ) HTMLFooter
Title (format string , v ...any ) HTMLFooter
On (event string , h EventHandler , options ...EventOption ) HTMLFooter
OnBlur (h EventHandler , options ...EventOption ) HTMLFooter
OnChange (h EventHandler , options ...EventOption ) HTMLFooter
OnClick (h EventHandler , options ...EventOption ) HTMLFooter
OnContextMenu (h EventHandler , options ...EventOption ) HTMLFooter
OnCopy (h EventHandler , options ...EventOption ) HTMLFooter
OnCut (h EventHandler , options ...EventOption ) HTMLFooter
OnDblClick (h EventHandler , options ...EventOption ) HTMLFooter
OnDrag (h EventHandler , options ...EventOption ) HTMLFooter
OnDragEnd (h EventHandler , options ...EventOption ) HTMLFooter
OnDragEnter (h EventHandler , options ...EventOption ) HTMLFooter
OnDragLeave (h EventHandler , options ...EventOption ) HTMLFooter
OnDragOver (h EventHandler , options ...EventOption ) HTMLFooter
OnDragStart (h EventHandler , options ...EventOption ) HTMLFooter
OnDrop (h EventHandler , options ...EventOption ) HTMLFooter
OnFocus (h EventHandler , options ...EventOption ) HTMLFooter
OnInput (h EventHandler , options ...EventOption ) HTMLFooter
OnInvalid (h EventHandler , options ...EventOption ) HTMLFooter
OnKeyDown (h EventHandler , options ...EventOption ) HTMLFooter
OnKeyPress (h EventHandler , options ...EventOption ) HTMLFooter
OnKeyUp (h EventHandler , options ...EventOption ) HTMLFooter
OnMouseDown (h EventHandler , options ...EventOption ) HTMLFooter
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFooter
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFooter
OnMouseMove (h EventHandler , options ...EventOption ) HTMLFooter
OnMouseOut (h EventHandler , options ...EventOption ) HTMLFooter
OnMouseOver (h EventHandler , options ...EventOption ) HTMLFooter
OnMouseUp (h EventHandler , options ...EventOption ) HTMLFooter
OnPaste (h EventHandler , options ...EventOption ) HTMLFooter
OnReset (h EventHandler , options ...EventOption ) HTMLFooter
OnScroll (h EventHandler , options ...EventOption ) HTMLFooter
OnSearch (h EventHandler , options ...EventOption ) HTMLFooter
OnSelect (h EventHandler , options ...EventOption ) HTMLFooter
OnSubmit (h EventHandler , options ...EventOption ) HTMLFooter
OnWheel (h EventHandler , options ...EventOption ) HTMLFooter
}
func Footer () HTMLFooter {
e := &htmlFooter {
htmlElement : htmlElement {
tag : "footer" ,
isSelfClosing : false ,
},
}
return e
}
type htmlFooter struct {
htmlElement
}
func (e *htmlFooter ) Body (v ...UI ) HTMLFooter {
return e .setBody (FilterUIElems (v ...)).(*htmlFooter )
}
func (e *htmlFooter ) Text (v any ) HTMLFooter {
return e .Body (Text (v ))
}
func (e *htmlFooter ) Textf (format string , v ...any ) HTMLFooter {
return e .Body (Textf (format , v ...))
}
func (e *htmlFooter ) AccessKey (format string , v ...any ) HTMLFooter {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlFooter ) Aria (k string , v any ) HTMLFooter {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFooter ) Attr (n string , v any ) HTMLFooter {
e .setAttr (n , v )
return e
}
func (e *htmlFooter ) Class (v ...string ) HTMLFooter {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlFooter ) ContentEditable (v bool ) HTMLFooter {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlFooter ) DataSet (k string , v any ) HTMLFooter {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlFooter ) DataSets (ds map [string ]any ) HTMLFooter {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlFooter ) Dir (format string , v ...any ) HTMLFooter {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlFooter ) Draggable (v bool ) HTMLFooter {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlFooter ) Hidden (v bool ) HTMLFooter {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlFooter ) ID (format string , v ...any ) HTMLFooter {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlFooter ) Lang (format string , v ...any ) HTMLFooter {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlFooter ) Role (format string , v ...any ) HTMLFooter {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlFooter ) Spellcheck (v bool ) HTMLFooter {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlFooter ) Style (k , format string , v ...any ) HTMLFooter {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlFooter ) Styles (s map [string ]string ) HTMLFooter {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlFooter ) TabIndex (v int ) HTMLFooter {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlFooter ) Title (format string , v ...any ) HTMLFooter {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlFooter ) On (event string , h EventHandler , options ...EventOption ) HTMLFooter {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlFooter ) OnBlur (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("blur" , h , options ...)
}
func (e *htmlFooter ) OnChange (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("change" , h , options ...)
}
func (e *htmlFooter ) OnClick (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("click" , h , options ...)
}
func (e *htmlFooter ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlFooter ) OnCopy (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("copy" , h , options ...)
}
func (e *htmlFooter ) OnCut (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("cut" , h , options ...)
}
func (e *htmlFooter ) OnDblClick (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlFooter ) OnDrag (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("drag" , h , options ...)
}
func (e *htmlFooter ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("dragend" , h , options ...)
}
func (e *htmlFooter ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlFooter ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlFooter ) OnDragOver (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("dragover" , h , options ...)
}
func (e *htmlFooter ) OnDragStart (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlFooter ) OnDrop (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("drop" , h , options ...)
}
func (e *htmlFooter ) OnFocus (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("focus" , h , options ...)
}
func (e *htmlFooter ) OnInput (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("input" , h , options ...)
}
func (e *htmlFooter ) OnInvalid (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("invalid" , h , options ...)
}
func (e *htmlFooter ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("keydown" , h , options ...)
}
func (e *htmlFooter ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("keypress" , h , options ...)
}
func (e *htmlFooter ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("keyup" , h , options ...)
}
func (e *htmlFooter ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlFooter ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlFooter ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlFooter ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlFooter ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlFooter ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlFooter ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlFooter ) OnPaste (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("paste" , h , options ...)
}
func (e *htmlFooter ) OnReset (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("reset" , h , options ...)
}
func (e *htmlFooter ) OnScroll (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("scroll" , h , options ...)
}
func (e *htmlFooter ) OnSearch (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("search" , h , options ...)
}
func (e *htmlFooter ) OnSelect (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("select" , h , options ...)
}
func (e *htmlFooter ) OnSubmit (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("submit" , h , options ...)
}
func (e *htmlFooter ) OnWheel (h EventHandler , options ...EventOption ) HTMLFooter {
return e .On ("wheel" , h , options ...)
}
func (e *htmlFooter ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlFooter ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlFooter ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlFooter ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlFooter ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlFooter ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLForm interface {
HTML
Body (elems ...UI ) HTMLForm
Text (v any ) HTMLForm
Textf (format string , v ...any ) HTMLForm
AcceptCharset (format string , v ...any ) HTMLForm
AccessKey (format string , v ...any ) HTMLForm
Action (format string , v ...any ) HTMLForm
Aria (k string , v any ) HTMLForm
Attr (n string , v any ) HTMLForm
AutoComplete (v bool ) HTMLForm
Class (v ...string ) HTMLForm
ContentEditable (v bool ) HTMLForm
DataSet (k string , v any ) HTMLForm
DataSets (ds map [string ]any ) HTMLForm
Dir (format string , v ...any ) HTMLForm
Draggable (v bool ) HTMLForm
EncType (format string , v ...any ) HTMLForm
Hidden (v bool ) HTMLForm
ID (format string , v ...any ) HTMLForm
Lang (format string , v ...any ) HTMLForm
Method (format string , v ...any ) HTMLForm
Name (format string , v ...any ) HTMLForm
NoValidate (v bool ) HTMLForm
Role (format string , v ...any ) HTMLForm
Spellcheck (v bool ) HTMLForm
Style (k, format string , v ...any ) HTMLForm
Styles (s map [string ]string ) HTMLForm
TabIndex (v int ) HTMLForm
Target (format string , v ...any ) HTMLForm
Title (format string , v ...any ) HTMLForm
On (event string , h EventHandler , options ...EventOption ) HTMLForm
OnBlur (h EventHandler , options ...EventOption ) HTMLForm
OnChange (h EventHandler , options ...EventOption ) HTMLForm
OnClick (h EventHandler , options ...EventOption ) HTMLForm
OnContextMenu (h EventHandler , options ...EventOption ) HTMLForm
OnCopy (h EventHandler , options ...EventOption ) HTMLForm
OnCut (h EventHandler , options ...EventOption ) HTMLForm
OnDblClick (h EventHandler , options ...EventOption ) HTMLForm
OnDrag (h EventHandler , options ...EventOption ) HTMLForm
OnDragEnd (h EventHandler , options ...EventOption ) HTMLForm
OnDragEnter (h EventHandler , options ...EventOption ) HTMLForm
OnDragLeave (h EventHandler , options ...EventOption ) HTMLForm
OnDragOver (h EventHandler , options ...EventOption ) HTMLForm
OnDragStart (h EventHandler , options ...EventOption ) HTMLForm
OnDrop (h EventHandler , options ...EventOption ) HTMLForm
OnFocus (h EventHandler , options ...EventOption ) HTMLForm
OnInput (h EventHandler , options ...EventOption ) HTMLForm
OnInvalid (h EventHandler , options ...EventOption ) HTMLForm
OnKeyDown (h EventHandler , options ...EventOption ) HTMLForm
OnKeyPress (h EventHandler , options ...EventOption ) HTMLForm
OnKeyUp (h EventHandler , options ...EventOption ) HTMLForm
OnMouseDown (h EventHandler , options ...EventOption ) HTMLForm
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLForm
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLForm
OnMouseMove (h EventHandler , options ...EventOption ) HTMLForm
OnMouseOut (h EventHandler , options ...EventOption ) HTMLForm
OnMouseOver (h EventHandler , options ...EventOption ) HTMLForm
OnMouseUp (h EventHandler , options ...EventOption ) HTMLForm
OnPaste (h EventHandler , options ...EventOption ) HTMLForm
OnReset (h EventHandler , options ...EventOption ) HTMLForm
OnScroll (h EventHandler , options ...EventOption ) HTMLForm
OnSearch (h EventHandler , options ...EventOption ) HTMLForm
OnSelect (h EventHandler , options ...EventOption ) HTMLForm
OnSubmit (h EventHandler , options ...EventOption ) HTMLForm
OnWheel (h EventHandler , options ...EventOption ) HTMLForm
}
func Form () HTMLForm {
e := &htmlForm {
htmlElement : htmlElement {
tag : "form" ,
isSelfClosing : false ,
},
}
return e
}
type htmlForm struct {
htmlElement
}
func (e *htmlForm ) Body (v ...UI ) HTMLForm {
return e .setBody (FilterUIElems (v ...)).(*htmlForm )
}
func (e *htmlForm ) Text (v any ) HTMLForm {
return e .Body (Text (v ))
}
func (e *htmlForm ) Textf (format string , v ...any ) HTMLForm {
return e .Body (Textf (format , v ...))
}
func (e *htmlForm ) AcceptCharset (format string , v ...any ) HTMLForm {
e .setAttr ("accept-charset" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) AccessKey (format string , v ...any ) HTMLForm {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Action (format string , v ...any ) HTMLForm {
e .setAttr ("action" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Aria (k string , v any ) HTMLForm {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlForm ) Attr (n string , v any ) HTMLForm {
e .setAttr (n , v )
return e
}
func (e *htmlForm ) AutoComplete (v bool ) HTMLForm {
s := "off"
if v {
s = "on"
}
e .setAttr ("autocomplete" , s )
return e
}
func (e *htmlForm ) Class (v ...string ) HTMLForm {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlForm ) ContentEditable (v bool ) HTMLForm {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlForm ) DataSet (k string , v any ) HTMLForm {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlForm ) DataSets (ds map [string ]any ) HTMLForm {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlForm ) Dir (format string , v ...any ) HTMLForm {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Draggable (v bool ) HTMLForm {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlForm ) EncType (format string , v ...any ) HTMLForm {
e .setAttr ("enctype" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Hidden (v bool ) HTMLForm {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlForm ) ID (format string , v ...any ) HTMLForm {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Lang (format string , v ...any ) HTMLForm {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Method (format string , v ...any ) HTMLForm {
e .setAttr ("method" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Name (format string , v ...any ) HTMLForm {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) NoValidate (v bool ) HTMLForm {
e .setAttr ("novalidate" , v )
return e
}
func (e *htmlForm ) Role (format string , v ...any ) HTMLForm {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Spellcheck (v bool ) HTMLForm {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlForm ) Style (k , format string , v ...any ) HTMLForm {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlForm ) Styles (s map [string ]string ) HTMLForm {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlForm ) TabIndex (v int ) HTMLForm {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlForm ) Target (format string , v ...any ) HTMLForm {
e .setAttr ("target" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) Title (format string , v ...any ) HTMLForm {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlForm ) On (event string , h EventHandler , options ...EventOption ) HTMLForm {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlForm ) OnBlur (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("blur" , h , options ...)
}
func (e *htmlForm ) OnChange (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("change" , h , options ...)
}
func (e *htmlForm ) OnClick (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("click" , h , options ...)
}
func (e *htmlForm ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlForm ) OnCopy (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("copy" , h , options ...)
}
func (e *htmlForm ) OnCut (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("cut" , h , options ...)
}
func (e *htmlForm ) OnDblClick (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlForm ) OnDrag (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("drag" , h , options ...)
}
func (e *htmlForm ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("dragend" , h , options ...)
}
func (e *htmlForm ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlForm ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlForm ) OnDragOver (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("dragover" , h , options ...)
}
func (e *htmlForm ) OnDragStart (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlForm ) OnDrop (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("drop" , h , options ...)
}
func (e *htmlForm ) OnFocus (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("focus" , h , options ...)
}
func (e *htmlForm ) OnInput (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("input" , h , options ...)
}
func (e *htmlForm ) OnInvalid (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("invalid" , h , options ...)
}
func (e *htmlForm ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("keydown" , h , options ...)
}
func (e *htmlForm ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("keypress" , h , options ...)
}
func (e *htmlForm ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("keyup" , h , options ...)
}
func (e *htmlForm ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlForm ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlForm ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlForm ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlForm ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlForm ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlForm ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlForm ) OnPaste (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("paste" , h , options ...)
}
func (e *htmlForm ) OnReset (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("reset" , h , options ...)
}
func (e *htmlForm ) OnScroll (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("scroll" , h , options ...)
}
func (e *htmlForm ) OnSearch (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("search" , h , options ...)
}
func (e *htmlForm ) OnSelect (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("select" , h , options ...)
}
func (e *htmlForm ) OnSubmit (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("submit" , h , options ...)
}
func (e *htmlForm ) OnWheel (h EventHandler , options ...EventOption ) HTMLForm {
return e .On ("wheel" , h , options ...)
}
func (e *htmlForm ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlForm ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlForm ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlForm ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlForm ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlForm ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLH1 interface {
HTML
Body (elems ...UI ) HTMLH1
Text (v any ) HTMLH1
Textf (format string , v ...any ) HTMLH1
AccessKey (format string , v ...any ) HTMLH1
Aria (k string , v any ) HTMLH1
Attr (n string , v any ) HTMLH1
Class (v ...string ) HTMLH1
ContentEditable (v bool ) HTMLH1
DataSet (k string , v any ) HTMLH1
DataSets (ds map [string ]any ) HTMLH1
Dir (format string , v ...any ) HTMLH1
Draggable (v bool ) HTMLH1
Hidden (v bool ) HTMLH1
ID (format string , v ...any ) HTMLH1
Lang (format string , v ...any ) HTMLH1
Role (format string , v ...any ) HTMLH1
Spellcheck (v bool ) HTMLH1
Style (k, format string , v ...any ) HTMLH1
Styles (s map [string ]string ) HTMLH1
TabIndex (v int ) HTMLH1
Title (format string , v ...any ) HTMLH1
On (event string , h EventHandler , options ...EventOption ) HTMLH1
OnBlur (h EventHandler , options ...EventOption ) HTMLH1
OnChange (h EventHandler , options ...EventOption ) HTMLH1
OnClick (h EventHandler , options ...EventOption ) HTMLH1
OnContextMenu (h EventHandler , options ...EventOption ) HTMLH1
OnCopy (h EventHandler , options ...EventOption ) HTMLH1
OnCut (h EventHandler , options ...EventOption ) HTMLH1
OnDblClick (h EventHandler , options ...EventOption ) HTMLH1
OnDrag (h EventHandler , options ...EventOption ) HTMLH1
OnDragEnd (h EventHandler , options ...EventOption ) HTMLH1
OnDragEnter (h EventHandler , options ...EventOption ) HTMLH1
OnDragLeave (h EventHandler , options ...EventOption ) HTMLH1
OnDragOver (h EventHandler , options ...EventOption ) HTMLH1
OnDragStart (h EventHandler , options ...EventOption ) HTMLH1
OnDrop (h EventHandler , options ...EventOption ) HTMLH1
OnFocus (h EventHandler , options ...EventOption ) HTMLH1
OnInput (h EventHandler , options ...EventOption ) HTMLH1
OnInvalid (h EventHandler , options ...EventOption ) HTMLH1
OnKeyDown (h EventHandler , options ...EventOption ) HTMLH1
OnKeyPress (h EventHandler , options ...EventOption ) HTMLH1
OnKeyUp (h EventHandler , options ...EventOption ) HTMLH1
OnMouseDown (h EventHandler , options ...EventOption ) HTMLH1
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH1
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH1
OnMouseMove (h EventHandler , options ...EventOption ) HTMLH1
OnMouseOut (h EventHandler , options ...EventOption ) HTMLH1
OnMouseOver (h EventHandler , options ...EventOption ) HTMLH1
OnMouseUp (h EventHandler , options ...EventOption ) HTMLH1
OnPaste (h EventHandler , options ...EventOption ) HTMLH1
OnReset (h EventHandler , options ...EventOption ) HTMLH1
OnScroll (h EventHandler , options ...EventOption ) HTMLH1
OnSearch (h EventHandler , options ...EventOption ) HTMLH1
OnSelect (h EventHandler , options ...EventOption ) HTMLH1
OnSubmit (h EventHandler , options ...EventOption ) HTMLH1
OnWheel (h EventHandler , options ...EventOption ) HTMLH1
}
func H1 () HTMLH1 {
e := &htmlH1 {
htmlElement : htmlElement {
tag : "h1" ,
isSelfClosing : false ,
},
}
return e
}
type htmlH1 struct {
htmlElement
}
func (e *htmlH1 ) Body (v ...UI ) HTMLH1 {
return e .setBody (FilterUIElems (v ...)).(*htmlH1 )
}
func (e *htmlH1 ) Text (v any ) HTMLH1 {
return e .Body (Text (v ))
}
func (e *htmlH1 ) Textf (format string , v ...any ) HTMLH1 {
return e .Body (Textf (format , v ...))
}
func (e *htmlH1 ) AccessKey (format string , v ...any ) HTMLH1 {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlH1 ) Aria (k string , v any ) HTMLH1 {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH1 ) Attr (n string , v any ) HTMLH1 {
e .setAttr (n , v )
return e
}
func (e *htmlH1 ) Class (v ...string ) HTMLH1 {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlH1 ) ContentEditable (v bool ) HTMLH1 {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlH1 ) DataSet (k string , v any ) HTMLH1 {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH1 ) DataSets (ds map [string ]any ) HTMLH1 {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlH1 ) Dir (format string , v ...any ) HTMLH1 {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlH1 ) Draggable (v bool ) HTMLH1 {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlH1 ) Hidden (v bool ) HTMLH1 {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlH1 ) ID (format string , v ...any ) HTMLH1 {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlH1 ) Lang (format string , v ...any ) HTMLH1 {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlH1 ) Role (format string , v ...any ) HTMLH1 {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlH1 ) Spellcheck (v bool ) HTMLH1 {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlH1 ) Style (k , format string , v ...any ) HTMLH1 {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlH1 ) Styles (s map [string ]string ) HTMLH1 {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlH1 ) TabIndex (v int ) HTMLH1 {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlH1 ) Title (format string , v ...any ) HTMLH1 {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlH1 ) On (event string , h EventHandler , options ...EventOption ) HTMLH1 {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlH1 ) OnBlur (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("blur" , h , options ...)
}
func (e *htmlH1 ) OnChange (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("change" , h , options ...)
}
func (e *htmlH1 ) OnClick (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("click" , h , options ...)
}
func (e *htmlH1 ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlH1 ) OnCopy (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("copy" , h , options ...)
}
func (e *htmlH1 ) OnCut (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("cut" , h , options ...)
}
func (e *htmlH1 ) OnDblClick (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlH1 ) OnDrag (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("drag" , h , options ...)
}
func (e *htmlH1 ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("dragend" , h , options ...)
}
func (e *htmlH1 ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlH1 ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlH1 ) OnDragOver (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("dragover" , h , options ...)
}
func (e *htmlH1 ) OnDragStart (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlH1 ) OnDrop (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("drop" , h , options ...)
}
func (e *htmlH1 ) OnFocus (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("focus" , h , options ...)
}
func (e *htmlH1 ) OnInput (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("input" , h , options ...)
}
func (e *htmlH1 ) OnInvalid (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("invalid" , h , options ...)
}
func (e *htmlH1 ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("keydown" , h , options ...)
}
func (e *htmlH1 ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("keypress" , h , options ...)
}
func (e *htmlH1 ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("keyup" , h , options ...)
}
func (e *htmlH1 ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlH1 ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlH1 ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlH1 ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlH1 ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlH1 ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlH1 ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlH1 ) OnPaste (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("paste" , h , options ...)
}
func (e *htmlH1 ) OnReset (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("reset" , h , options ...)
}
func (e *htmlH1 ) OnScroll (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("scroll" , h , options ...)
}
func (e *htmlH1 ) OnSearch (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("search" , h , options ...)
}
func (e *htmlH1 ) OnSelect (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("select" , h , options ...)
}
func (e *htmlH1 ) OnSubmit (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("submit" , h , options ...)
}
func (e *htmlH1 ) OnWheel (h EventHandler , options ...EventOption ) HTMLH1 {
return e .On ("wheel" , h , options ...)
}
func (e *htmlH1 ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlH1 ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlH1 ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlH1 ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlH1 ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlH1 ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLH2 interface {
HTML
Body (elems ...UI ) HTMLH2
Text (v any ) HTMLH2
Textf (format string , v ...any ) HTMLH2
AccessKey (format string , v ...any ) HTMLH2
Aria (k string , v any ) HTMLH2
Attr (n string , v any ) HTMLH2
Class (v ...string ) HTMLH2
ContentEditable (v bool ) HTMLH2
DataSet (k string , v any ) HTMLH2
DataSets (ds map [string ]any ) HTMLH2
Dir (format string , v ...any ) HTMLH2
Draggable (v bool ) HTMLH2
Hidden (v bool ) HTMLH2
ID (format string , v ...any ) HTMLH2
Lang (format string , v ...any ) HTMLH2
Role (format string , v ...any ) HTMLH2
Spellcheck (v bool ) HTMLH2
Style (k, format string , v ...any ) HTMLH2
Styles (s map [string ]string ) HTMLH2
TabIndex (v int ) HTMLH2
Title (format string , v ...any ) HTMLH2
On (event string , h EventHandler , options ...EventOption ) HTMLH2
OnBlur (h EventHandler , options ...EventOption ) HTMLH2
OnChange (h EventHandler , options ...EventOption ) HTMLH2
OnClick (h EventHandler , options ...EventOption ) HTMLH2
OnContextMenu (h EventHandler , options ...EventOption ) HTMLH2
OnCopy (h EventHandler , options ...EventOption ) HTMLH2
OnCut (h EventHandler , options ...EventOption ) HTMLH2
OnDblClick (h EventHandler , options ...EventOption ) HTMLH2
OnDrag (h EventHandler , options ...EventOption ) HTMLH2
OnDragEnd (h EventHandler , options ...EventOption ) HTMLH2
OnDragEnter (h EventHandler , options ...EventOption ) HTMLH2
OnDragLeave (h EventHandler , options ...EventOption ) HTMLH2
OnDragOver (h EventHandler , options ...EventOption ) HTMLH2
OnDragStart (h EventHandler , options ...EventOption ) HTMLH2
OnDrop (h EventHandler , options ...EventOption ) HTMLH2
OnFocus (h EventHandler , options ...EventOption ) HTMLH2
OnInput (h EventHandler , options ...EventOption ) HTMLH2
OnInvalid (h EventHandler , options ...EventOption ) HTMLH2
OnKeyDown (h EventHandler , options ...EventOption ) HTMLH2
OnKeyPress (h EventHandler , options ...EventOption ) HTMLH2
OnKeyUp (h EventHandler , options ...EventOption ) HTMLH2
OnMouseDown (h EventHandler , options ...EventOption ) HTMLH2
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH2
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH2
OnMouseMove (h EventHandler , options ...EventOption ) HTMLH2
OnMouseOut (h EventHandler , options ...EventOption ) HTMLH2
OnMouseOver (h EventHandler , options ...EventOption ) HTMLH2
OnMouseUp (h EventHandler , options ...EventOption ) HTMLH2
OnPaste (h EventHandler , options ...EventOption ) HTMLH2
OnReset (h EventHandler , options ...EventOption ) HTMLH2
OnScroll (h EventHandler , options ...EventOption ) HTMLH2
OnSearch (h EventHandler , options ...EventOption ) HTMLH2
OnSelect (h EventHandler , options ...EventOption ) HTMLH2
OnSubmit (h EventHandler , options ...EventOption ) HTMLH2
OnWheel (h EventHandler , options ...EventOption ) HTMLH2
}
func H2 () HTMLH2 {
e := &htmlH2 {
htmlElement : htmlElement {
tag : "h2" ,
isSelfClosing : false ,
},
}
return e
}
type htmlH2 struct {
htmlElement
}
func (e *htmlH2 ) Body (v ...UI ) HTMLH2 {
return e .setBody (FilterUIElems (v ...)).(*htmlH2 )
}
func (e *htmlH2 ) Text (v any ) HTMLH2 {
return e .Body (Text (v ))
}
func (e *htmlH2 ) Textf (format string , v ...any ) HTMLH2 {
return e .Body (Textf (format , v ...))
}
func (e *htmlH2 ) AccessKey (format string , v ...any ) HTMLH2 {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlH2 ) Aria (k string , v any ) HTMLH2 {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH2 ) Attr (n string , v any ) HTMLH2 {
e .setAttr (n , v )
return e
}
func (e *htmlH2 ) Class (v ...string ) HTMLH2 {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlH2 ) ContentEditable (v bool ) HTMLH2 {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlH2 ) DataSet (k string , v any ) HTMLH2 {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH2 ) DataSets (ds map [string ]any ) HTMLH2 {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlH2 ) Dir (format string , v ...any ) HTMLH2 {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlH2 ) Draggable (v bool ) HTMLH2 {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlH2 ) Hidden (v bool ) HTMLH2 {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlH2 ) ID (format string , v ...any ) HTMLH2 {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlH2 ) Lang (format string , v ...any ) HTMLH2 {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlH2 ) Role (format string , v ...any ) HTMLH2 {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlH2 ) Spellcheck (v bool ) HTMLH2 {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlH2 ) Style (k , format string , v ...any ) HTMLH2 {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlH2 ) Styles (s map [string ]string ) HTMLH2 {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlH2 ) TabIndex (v int ) HTMLH2 {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlH2 ) Title (format string , v ...any ) HTMLH2 {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlH2 ) On (event string , h EventHandler , options ...EventOption ) HTMLH2 {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlH2 ) OnBlur (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("blur" , h , options ...)
}
func (e *htmlH2 ) OnChange (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("change" , h , options ...)
}
func (e *htmlH2 ) OnClick (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("click" , h , options ...)
}
func (e *htmlH2 ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlH2 ) OnCopy (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("copy" , h , options ...)
}
func (e *htmlH2 ) OnCut (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("cut" , h , options ...)
}
func (e *htmlH2 ) OnDblClick (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlH2 ) OnDrag (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("drag" , h , options ...)
}
func (e *htmlH2 ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("dragend" , h , options ...)
}
func (e *htmlH2 ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlH2 ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlH2 ) OnDragOver (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("dragover" , h , options ...)
}
func (e *htmlH2 ) OnDragStart (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlH2 ) OnDrop (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("drop" , h , options ...)
}
func (e *htmlH2 ) OnFocus (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("focus" , h , options ...)
}
func (e *htmlH2 ) OnInput (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("input" , h , options ...)
}
func (e *htmlH2 ) OnInvalid (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("invalid" , h , options ...)
}
func (e *htmlH2 ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("keydown" , h , options ...)
}
func (e *htmlH2 ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("keypress" , h , options ...)
}
func (e *htmlH2 ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("keyup" , h , options ...)
}
func (e *htmlH2 ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlH2 ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlH2 ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlH2 ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlH2 ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlH2 ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlH2 ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlH2 ) OnPaste (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("paste" , h , options ...)
}
func (e *htmlH2 ) OnReset (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("reset" , h , options ...)
}
func (e *htmlH2 ) OnScroll (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("scroll" , h , options ...)
}
func (e *htmlH2 ) OnSearch (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("search" , h , options ...)
}
func (e *htmlH2 ) OnSelect (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("select" , h , options ...)
}
func (e *htmlH2 ) OnSubmit (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("submit" , h , options ...)
}
func (e *htmlH2 ) OnWheel (h EventHandler , options ...EventOption ) HTMLH2 {
return e .On ("wheel" , h , options ...)
}
func (e *htmlH2 ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlH2 ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlH2 ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlH2 ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlH2 ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlH2 ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLH3 interface {
HTML
Body (elems ...UI ) HTMLH3
Text (v any ) HTMLH3
Textf (format string , v ...any ) HTMLH3
AccessKey (format string , v ...any ) HTMLH3
Aria (k string , v any ) HTMLH3
Attr (n string , v any ) HTMLH3
Class (v ...string ) HTMLH3
ContentEditable (v bool ) HTMLH3
DataSet (k string , v any ) HTMLH3
DataSets (ds map [string ]any ) HTMLH3
Dir (format string , v ...any ) HTMLH3
Draggable (v bool ) HTMLH3
Hidden (v bool ) HTMLH3
ID (format string , v ...any ) HTMLH3
Lang (format string , v ...any ) HTMLH3
Role (format string , v ...any ) HTMLH3
Spellcheck (v bool ) HTMLH3
Style (k, format string , v ...any ) HTMLH3
Styles (s map [string ]string ) HTMLH3
TabIndex (v int ) HTMLH3
Title (format string , v ...any ) HTMLH3
On (event string , h EventHandler , options ...EventOption ) HTMLH3
OnBlur (h EventHandler , options ...EventOption ) HTMLH3
OnChange (h EventHandler , options ...EventOption ) HTMLH3
OnClick (h EventHandler , options ...EventOption ) HTMLH3
OnContextMenu (h EventHandler , options ...EventOption ) HTMLH3
OnCopy (h EventHandler , options ...EventOption ) HTMLH3
OnCut (h EventHandler , options ...EventOption ) HTMLH3
OnDblClick (h EventHandler , options ...EventOption ) HTMLH3
OnDrag (h EventHandler , options ...EventOption ) HTMLH3
OnDragEnd (h EventHandler , options ...EventOption ) HTMLH3
OnDragEnter (h EventHandler , options ...EventOption ) HTMLH3
OnDragLeave (h EventHandler , options ...EventOption ) HTMLH3
OnDragOver (h EventHandler , options ...EventOption ) HTMLH3
OnDragStart (h EventHandler , options ...EventOption ) HTMLH3
OnDrop (h EventHandler , options ...EventOption ) HTMLH3
OnFocus (h EventHandler , options ...EventOption ) HTMLH3
OnInput (h EventHandler , options ...EventOption ) HTMLH3
OnInvalid (h EventHandler , options ...EventOption ) HTMLH3
OnKeyDown (h EventHandler , options ...EventOption ) HTMLH3
OnKeyPress (h EventHandler , options ...EventOption ) HTMLH3
OnKeyUp (h EventHandler , options ...EventOption ) HTMLH3
OnMouseDown (h EventHandler , options ...EventOption ) HTMLH3
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH3
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH3
OnMouseMove (h EventHandler , options ...EventOption ) HTMLH3
OnMouseOut (h EventHandler , options ...EventOption ) HTMLH3
OnMouseOver (h EventHandler , options ...EventOption ) HTMLH3
OnMouseUp (h EventHandler , options ...EventOption ) HTMLH3
OnPaste (h EventHandler , options ...EventOption ) HTMLH3
OnReset (h EventHandler , options ...EventOption ) HTMLH3
OnScroll (h EventHandler , options ...EventOption ) HTMLH3
OnSearch (h EventHandler , options ...EventOption ) HTMLH3
OnSelect (h EventHandler , options ...EventOption ) HTMLH3
OnSubmit (h EventHandler , options ...EventOption ) HTMLH3
OnWheel (h EventHandler , options ...EventOption ) HTMLH3
}
func H3 () HTMLH3 {
e := &htmlH3 {
htmlElement : htmlElement {
tag : "h3" ,
isSelfClosing : false ,
},
}
return e
}
type htmlH3 struct {
htmlElement
}
func (e *htmlH3 ) Body (v ...UI ) HTMLH3 {
return e .setBody (FilterUIElems (v ...)).(*htmlH3 )
}
func (e *htmlH3 ) Text (v any ) HTMLH3 {
return e .Body (Text (v ))
}
func (e *htmlH3 ) Textf (format string , v ...any ) HTMLH3 {
return e .Body (Textf (format , v ...))
}
func (e *htmlH3 ) AccessKey (format string , v ...any ) HTMLH3 {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlH3 ) Aria (k string , v any ) HTMLH3 {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH3 ) Attr (n string , v any ) HTMLH3 {
e .setAttr (n , v )
return e
}
func (e *htmlH3 ) Class (v ...string ) HTMLH3 {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlH3 ) ContentEditable (v bool ) HTMLH3 {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlH3 ) DataSet (k string , v any ) HTMLH3 {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH3 ) DataSets (ds map [string ]any ) HTMLH3 {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlH3 ) Dir (format string , v ...any ) HTMLH3 {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlH3 ) Draggable (v bool ) HTMLH3 {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlH3 ) Hidden (v bool ) HTMLH3 {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlH3 ) ID (format string , v ...any ) HTMLH3 {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlH3 ) Lang (format string , v ...any ) HTMLH3 {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlH3 ) Role (format string , v ...any ) HTMLH3 {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlH3 ) Spellcheck (v bool ) HTMLH3 {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlH3 ) Style (k , format string , v ...any ) HTMLH3 {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlH3 ) Styles (s map [string ]string ) HTMLH3 {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlH3 ) TabIndex (v int ) HTMLH3 {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlH3 ) Title (format string , v ...any ) HTMLH3 {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlH3 ) On (event string , h EventHandler , options ...EventOption ) HTMLH3 {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlH3 ) OnBlur (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("blur" , h , options ...)
}
func (e *htmlH3 ) OnChange (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("change" , h , options ...)
}
func (e *htmlH3 ) OnClick (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("click" , h , options ...)
}
func (e *htmlH3 ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlH3 ) OnCopy (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("copy" , h , options ...)
}
func (e *htmlH3 ) OnCut (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("cut" , h , options ...)
}
func (e *htmlH3 ) OnDblClick (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlH3 ) OnDrag (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("drag" , h , options ...)
}
func (e *htmlH3 ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("dragend" , h , options ...)
}
func (e *htmlH3 ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlH3 ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlH3 ) OnDragOver (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("dragover" , h , options ...)
}
func (e *htmlH3 ) OnDragStart (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlH3 ) OnDrop (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("drop" , h , options ...)
}
func (e *htmlH3 ) OnFocus (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("focus" , h , options ...)
}
func (e *htmlH3 ) OnInput (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("input" , h , options ...)
}
func (e *htmlH3 ) OnInvalid (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("invalid" , h , options ...)
}
func (e *htmlH3 ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("keydown" , h , options ...)
}
func (e *htmlH3 ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("keypress" , h , options ...)
}
func (e *htmlH3 ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("keyup" , h , options ...)
}
func (e *htmlH3 ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlH3 ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlH3 ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlH3 ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlH3 ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlH3 ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlH3 ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlH3 ) OnPaste (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("paste" , h , options ...)
}
func (e *htmlH3 ) OnReset (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("reset" , h , options ...)
}
func (e *htmlH3 ) OnScroll (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("scroll" , h , options ...)
}
func (e *htmlH3 ) OnSearch (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("search" , h , options ...)
}
func (e *htmlH3 ) OnSelect (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("select" , h , options ...)
}
func (e *htmlH3 ) OnSubmit (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("submit" , h , options ...)
}
func (e *htmlH3 ) OnWheel (h EventHandler , options ...EventOption ) HTMLH3 {
return e .On ("wheel" , h , options ...)
}
func (e *htmlH3 ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlH3 ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlH3 ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlH3 ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlH3 ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlH3 ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLH4 interface {
HTML
Body (elems ...UI ) HTMLH4
Text (v any ) HTMLH4
Textf (format string , v ...any ) HTMLH4
AccessKey (format string , v ...any ) HTMLH4
Aria (k string , v any ) HTMLH4
Attr (n string , v any ) HTMLH4
Class (v ...string ) HTMLH4
ContentEditable (v bool ) HTMLH4
DataSet (k string , v any ) HTMLH4
DataSets (ds map [string ]any ) HTMLH4
Dir (format string , v ...any ) HTMLH4
Draggable (v bool ) HTMLH4
Hidden (v bool ) HTMLH4
ID (format string , v ...any ) HTMLH4
Lang (format string , v ...any ) HTMLH4
Role (format string , v ...any ) HTMLH4
Spellcheck (v bool ) HTMLH4
Style (k, format string , v ...any ) HTMLH4
Styles (s map [string ]string ) HTMLH4
TabIndex (v int ) HTMLH4
Title (format string , v ...any ) HTMLH4
On (event string , h EventHandler , options ...EventOption ) HTMLH4
OnBlur (h EventHandler , options ...EventOption ) HTMLH4
OnChange (h EventHandler , options ...EventOption ) HTMLH4
OnClick (h EventHandler , options ...EventOption ) HTMLH4
OnContextMenu (h EventHandler , options ...EventOption ) HTMLH4
OnCopy (h EventHandler , options ...EventOption ) HTMLH4
OnCut (h EventHandler , options ...EventOption ) HTMLH4
OnDblClick (h EventHandler , options ...EventOption ) HTMLH4
OnDrag (h EventHandler , options ...EventOption ) HTMLH4
OnDragEnd (h EventHandler , options ...EventOption ) HTMLH4
OnDragEnter (h EventHandler , options ...EventOption ) HTMLH4
OnDragLeave (h EventHandler , options ...EventOption ) HTMLH4
OnDragOver (h EventHandler , options ...EventOption ) HTMLH4
OnDragStart (h EventHandler , options ...EventOption ) HTMLH4
OnDrop (h EventHandler , options ...EventOption ) HTMLH4
OnFocus (h EventHandler , options ...EventOption ) HTMLH4
OnInput (h EventHandler , options ...EventOption ) HTMLH4
OnInvalid (h EventHandler , options ...EventOption ) HTMLH4
OnKeyDown (h EventHandler , options ...EventOption ) HTMLH4
OnKeyPress (h EventHandler , options ...EventOption ) HTMLH4
OnKeyUp (h EventHandler , options ...EventOption ) HTMLH4
OnMouseDown (h EventHandler , options ...EventOption ) HTMLH4
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH4
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH4
OnMouseMove (h EventHandler , options ...EventOption ) HTMLH4
OnMouseOut (h EventHandler , options ...EventOption ) HTMLH4
OnMouseOver (h EventHandler , options ...EventOption ) HTMLH4
OnMouseUp (h EventHandler , options ...EventOption ) HTMLH4
OnPaste (h EventHandler , options ...EventOption ) HTMLH4
OnReset (h EventHandler , options ...EventOption ) HTMLH4
OnScroll (h EventHandler , options ...EventOption ) HTMLH4
OnSearch (h EventHandler , options ...EventOption ) HTMLH4
OnSelect (h EventHandler , options ...EventOption ) HTMLH4
OnSubmit (h EventHandler , options ...EventOption ) HTMLH4
OnWheel (h EventHandler , options ...EventOption ) HTMLH4
}
func H4 () HTMLH4 {
e := &htmlH4 {
htmlElement : htmlElement {
tag : "h4" ,
isSelfClosing : false ,
},
}
return e
}
type htmlH4 struct {
htmlElement
}
func (e *htmlH4 ) Body (v ...UI ) HTMLH4 {
return e .setBody (FilterUIElems (v ...)).(*htmlH4 )
}
func (e *htmlH4 ) Text (v any ) HTMLH4 {
return e .Body (Text (v ))
}
func (e *htmlH4 ) Textf (format string , v ...any ) HTMLH4 {
return e .Body (Textf (format , v ...))
}
func (e *htmlH4 ) AccessKey (format string , v ...any ) HTMLH4 {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlH4 ) Aria (k string , v any ) HTMLH4 {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH4 ) Attr (n string , v any ) HTMLH4 {
e .setAttr (n , v )
return e
}
func (e *htmlH4 ) Class (v ...string ) HTMLH4 {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlH4 ) ContentEditable (v bool ) HTMLH4 {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlH4 ) DataSet (k string , v any ) HTMLH4 {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH4 ) DataSets (ds map [string ]any ) HTMLH4 {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlH4 ) Dir (format string , v ...any ) HTMLH4 {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlH4 ) Draggable (v bool ) HTMLH4 {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlH4 ) Hidden (v bool ) HTMLH4 {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlH4 ) ID (format string , v ...any ) HTMLH4 {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlH4 ) Lang (format string , v ...any ) HTMLH4 {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlH4 ) Role (format string , v ...any ) HTMLH4 {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlH4 ) Spellcheck (v bool ) HTMLH4 {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlH4 ) Style (k , format string , v ...any ) HTMLH4 {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlH4 ) Styles (s map [string ]string ) HTMLH4 {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlH4 ) TabIndex (v int ) HTMLH4 {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlH4 ) Title (format string , v ...any ) HTMLH4 {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlH4 ) On (event string , h EventHandler , options ...EventOption ) HTMLH4 {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlH4 ) OnBlur (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("blur" , h , options ...)
}
func (e *htmlH4 ) OnChange (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("change" , h , options ...)
}
func (e *htmlH4 ) OnClick (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("click" , h , options ...)
}
func (e *htmlH4 ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlH4 ) OnCopy (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("copy" , h , options ...)
}
func (e *htmlH4 ) OnCut (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("cut" , h , options ...)
}
func (e *htmlH4 ) OnDblClick (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlH4 ) OnDrag (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("drag" , h , options ...)
}
func (e *htmlH4 ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("dragend" , h , options ...)
}
func (e *htmlH4 ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlH4 ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlH4 ) OnDragOver (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("dragover" , h , options ...)
}
func (e *htmlH4 ) OnDragStart (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlH4 ) OnDrop (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("drop" , h , options ...)
}
func (e *htmlH4 ) OnFocus (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("focus" , h , options ...)
}
func (e *htmlH4 ) OnInput (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("input" , h , options ...)
}
func (e *htmlH4 ) OnInvalid (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("invalid" , h , options ...)
}
func (e *htmlH4 ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("keydown" , h , options ...)
}
func (e *htmlH4 ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("keypress" , h , options ...)
}
func (e *htmlH4 ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("keyup" , h , options ...)
}
func (e *htmlH4 ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlH4 ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlH4 ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlH4 ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlH4 ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlH4 ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlH4 ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlH4 ) OnPaste (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("paste" , h , options ...)
}
func (e *htmlH4 ) OnReset (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("reset" , h , options ...)
}
func (e *htmlH4 ) OnScroll (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("scroll" , h , options ...)
}
func (e *htmlH4 ) OnSearch (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("search" , h , options ...)
}
func (e *htmlH4 ) OnSelect (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("select" , h , options ...)
}
func (e *htmlH4 ) OnSubmit (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("submit" , h , options ...)
}
func (e *htmlH4 ) OnWheel (h EventHandler , options ...EventOption ) HTMLH4 {
return e .On ("wheel" , h , options ...)
}
func (e *htmlH4 ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlH4 ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlH4 ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlH4 ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlH4 ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlH4 ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLH5 interface {
HTML
Body (elems ...UI ) HTMLH5
Text (v any ) HTMLH5
Textf (format string , v ...any ) HTMLH5
AccessKey (format string , v ...any ) HTMLH5
Aria (k string , v any ) HTMLH5
Attr (n string , v any ) HTMLH5
Class (v ...string ) HTMLH5
ContentEditable (v bool ) HTMLH5
DataSet (k string , v any ) HTMLH5
DataSets (ds map [string ]any ) HTMLH5
Dir (format string , v ...any ) HTMLH5
Draggable (v bool ) HTMLH5
Hidden (v bool ) HTMLH5
ID (format string , v ...any ) HTMLH5
Lang (format string , v ...any ) HTMLH5
Role (format string , v ...any ) HTMLH5
Spellcheck (v bool ) HTMLH5
Style (k, format string , v ...any ) HTMLH5
Styles (s map [string ]string ) HTMLH5
TabIndex (v int ) HTMLH5
Title (format string , v ...any ) HTMLH5
On (event string , h EventHandler , options ...EventOption ) HTMLH5
OnBlur (h EventHandler , options ...EventOption ) HTMLH5
OnChange (h EventHandler , options ...EventOption ) HTMLH5
OnClick (h EventHandler , options ...EventOption ) HTMLH5
OnContextMenu (h EventHandler , options ...EventOption ) HTMLH5
OnCopy (h EventHandler , options ...EventOption ) HTMLH5
OnCut (h EventHandler , options ...EventOption ) HTMLH5
OnDblClick (h EventHandler , options ...EventOption ) HTMLH5
OnDrag (h EventHandler , options ...EventOption ) HTMLH5
OnDragEnd (h EventHandler , options ...EventOption ) HTMLH5
OnDragEnter (h EventHandler , options ...EventOption ) HTMLH5
OnDragLeave (h EventHandler , options ...EventOption ) HTMLH5
OnDragOver (h EventHandler , options ...EventOption ) HTMLH5
OnDragStart (h EventHandler , options ...EventOption ) HTMLH5
OnDrop (h EventHandler , options ...EventOption ) HTMLH5
OnFocus (h EventHandler , options ...EventOption ) HTMLH5
OnInput (h EventHandler , options ...EventOption ) HTMLH5
OnInvalid (h EventHandler , options ...EventOption ) HTMLH5
OnKeyDown (h EventHandler , options ...EventOption ) HTMLH5
OnKeyPress (h EventHandler , options ...EventOption ) HTMLH5
OnKeyUp (h EventHandler , options ...EventOption ) HTMLH5
OnMouseDown (h EventHandler , options ...EventOption ) HTMLH5
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH5
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH5
OnMouseMove (h EventHandler , options ...EventOption ) HTMLH5
OnMouseOut (h EventHandler , options ...EventOption ) HTMLH5
OnMouseOver (h EventHandler , options ...EventOption ) HTMLH5
OnMouseUp (h EventHandler , options ...EventOption ) HTMLH5
OnPaste (h EventHandler , options ...EventOption ) HTMLH5
OnReset (h EventHandler , options ...EventOption ) HTMLH5
OnScroll (h EventHandler , options ...EventOption ) HTMLH5
OnSearch (h EventHandler , options ...EventOption ) HTMLH5
OnSelect (h EventHandler , options ...EventOption ) HTMLH5
OnSubmit (h EventHandler , options ...EventOption ) HTMLH5
OnWheel (h EventHandler , options ...EventOption ) HTMLH5
}
func H5 () HTMLH5 {
e := &htmlH5 {
htmlElement : htmlElement {
tag : "h5" ,
isSelfClosing : false ,
},
}
return e
}
type htmlH5 struct {
htmlElement
}
func (e *htmlH5 ) Body (v ...UI ) HTMLH5 {
return e .setBody (FilterUIElems (v ...)).(*htmlH5 )
}
func (e *htmlH5 ) Text (v any ) HTMLH5 {
return e .Body (Text (v ))
}
func (e *htmlH5 ) Textf (format string , v ...any ) HTMLH5 {
return e .Body (Textf (format , v ...))
}
func (e *htmlH5 ) AccessKey (format string , v ...any ) HTMLH5 {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlH5 ) Aria (k string , v any ) HTMLH5 {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH5 ) Attr (n string , v any ) HTMLH5 {
e .setAttr (n , v )
return e
}
func (e *htmlH5 ) Class (v ...string ) HTMLH5 {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlH5 ) ContentEditable (v bool ) HTMLH5 {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlH5 ) DataSet (k string , v any ) HTMLH5 {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH5 ) DataSets (ds map [string ]any ) HTMLH5 {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlH5 ) Dir (format string , v ...any ) HTMLH5 {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlH5 ) Draggable (v bool ) HTMLH5 {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlH5 ) Hidden (v bool ) HTMLH5 {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlH5 ) ID (format string , v ...any ) HTMLH5 {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlH5 ) Lang (format string , v ...any ) HTMLH5 {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlH5 ) Role (format string , v ...any ) HTMLH5 {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlH5 ) Spellcheck (v bool ) HTMLH5 {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlH5 ) Style (k , format string , v ...any ) HTMLH5 {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlH5 ) Styles (s map [string ]string ) HTMLH5 {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlH5 ) TabIndex (v int ) HTMLH5 {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlH5 ) Title (format string , v ...any ) HTMLH5 {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlH5 ) On (event string , h EventHandler , options ...EventOption ) HTMLH5 {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlH5 ) OnBlur (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("blur" , h , options ...)
}
func (e *htmlH5 ) OnChange (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("change" , h , options ...)
}
func (e *htmlH5 ) OnClick (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("click" , h , options ...)
}
func (e *htmlH5 ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlH5 ) OnCopy (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("copy" , h , options ...)
}
func (e *htmlH5 ) OnCut (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("cut" , h , options ...)
}
func (e *htmlH5 ) OnDblClick (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlH5 ) OnDrag (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("drag" , h , options ...)
}
func (e *htmlH5 ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("dragend" , h , options ...)
}
func (e *htmlH5 ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlH5 ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlH5 ) OnDragOver (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("dragover" , h , options ...)
}
func (e *htmlH5 ) OnDragStart (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlH5 ) OnDrop (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("drop" , h , options ...)
}
func (e *htmlH5 ) OnFocus (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("focus" , h , options ...)
}
func (e *htmlH5 ) OnInput (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("input" , h , options ...)
}
func (e *htmlH5 ) OnInvalid (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("invalid" , h , options ...)
}
func (e *htmlH5 ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("keydown" , h , options ...)
}
func (e *htmlH5 ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("keypress" , h , options ...)
}
func (e *htmlH5 ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("keyup" , h , options ...)
}
func (e *htmlH5 ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlH5 ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlH5 ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlH5 ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlH5 ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlH5 ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlH5 ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlH5 ) OnPaste (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("paste" , h , options ...)
}
func (e *htmlH5 ) OnReset (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("reset" , h , options ...)
}
func (e *htmlH5 ) OnScroll (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("scroll" , h , options ...)
}
func (e *htmlH5 ) OnSearch (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("search" , h , options ...)
}
func (e *htmlH5 ) OnSelect (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("select" , h , options ...)
}
func (e *htmlH5 ) OnSubmit (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("submit" , h , options ...)
}
func (e *htmlH5 ) OnWheel (h EventHandler , options ...EventOption ) HTMLH5 {
return e .On ("wheel" , h , options ...)
}
func (e *htmlH5 ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlH5 ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlH5 ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlH5 ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlH5 ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlH5 ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLH6 interface {
HTML
Body (elems ...UI ) HTMLH6
Text (v any ) HTMLH6
Textf (format string , v ...any ) HTMLH6
AccessKey (format string , v ...any ) HTMLH6
Aria (k string , v any ) HTMLH6
Attr (n string , v any ) HTMLH6
Class (v ...string ) HTMLH6
ContentEditable (v bool ) HTMLH6
DataSet (k string , v any ) HTMLH6
DataSets (ds map [string ]any ) HTMLH6
Dir (format string , v ...any ) HTMLH6
Draggable (v bool ) HTMLH6
Hidden (v bool ) HTMLH6
ID (format string , v ...any ) HTMLH6
Lang (format string , v ...any ) HTMLH6
Role (format string , v ...any ) HTMLH6
Spellcheck (v bool ) HTMLH6
Style (k, format string , v ...any ) HTMLH6
Styles (s map [string ]string ) HTMLH6
TabIndex (v int ) HTMLH6
Title (format string , v ...any ) HTMLH6
On (event string , h EventHandler , options ...EventOption ) HTMLH6
OnBlur (h EventHandler , options ...EventOption ) HTMLH6
OnChange (h EventHandler , options ...EventOption ) HTMLH6
OnClick (h EventHandler , options ...EventOption ) HTMLH6
OnContextMenu (h EventHandler , options ...EventOption ) HTMLH6
OnCopy (h EventHandler , options ...EventOption ) HTMLH6
OnCut (h EventHandler , options ...EventOption ) HTMLH6
OnDblClick (h EventHandler , options ...EventOption ) HTMLH6
OnDrag (h EventHandler , options ...EventOption ) HTMLH6
OnDragEnd (h EventHandler , options ...EventOption ) HTMLH6
OnDragEnter (h EventHandler , options ...EventOption ) HTMLH6
OnDragLeave (h EventHandler , options ...EventOption ) HTMLH6
OnDragOver (h EventHandler , options ...EventOption ) HTMLH6
OnDragStart (h EventHandler , options ...EventOption ) HTMLH6
OnDrop (h EventHandler , options ...EventOption ) HTMLH6
OnFocus (h EventHandler , options ...EventOption ) HTMLH6
OnInput (h EventHandler , options ...EventOption ) HTMLH6
OnInvalid (h EventHandler , options ...EventOption ) HTMLH6
OnKeyDown (h EventHandler , options ...EventOption ) HTMLH6
OnKeyPress (h EventHandler , options ...EventOption ) HTMLH6
OnKeyUp (h EventHandler , options ...EventOption ) HTMLH6
OnMouseDown (h EventHandler , options ...EventOption ) HTMLH6
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH6
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH6
OnMouseMove (h EventHandler , options ...EventOption ) HTMLH6
OnMouseOut (h EventHandler , options ...EventOption ) HTMLH6
OnMouseOver (h EventHandler , options ...EventOption ) HTMLH6
OnMouseUp (h EventHandler , options ...EventOption ) HTMLH6
OnPaste (h EventHandler , options ...EventOption ) HTMLH6
OnReset (h EventHandler , options ...EventOption ) HTMLH6
OnScroll (h EventHandler , options ...EventOption ) HTMLH6
OnSearch (h EventHandler , options ...EventOption ) HTMLH6
OnSelect (h EventHandler , options ...EventOption ) HTMLH6
OnSubmit (h EventHandler , options ...EventOption ) HTMLH6
OnWheel (h EventHandler , options ...EventOption ) HTMLH6
}
func H6 () HTMLH6 {
e := &htmlH6 {
htmlElement : htmlElement {
tag : "h6" ,
isSelfClosing : false ,
},
}
return e
}
type htmlH6 struct {
htmlElement
}
func (e *htmlH6 ) Body (v ...UI ) HTMLH6 {
return e .setBody (FilterUIElems (v ...)).(*htmlH6 )
}
func (e *htmlH6 ) Text (v any ) HTMLH6 {
return e .Body (Text (v ))
}
func (e *htmlH6 ) Textf (format string , v ...any ) HTMLH6 {
return e .Body (Textf (format , v ...))
}
func (e *htmlH6 ) AccessKey (format string , v ...any ) HTMLH6 {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlH6 ) Aria (k string , v any ) HTMLH6 {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH6 ) Attr (n string , v any ) HTMLH6 {
e .setAttr (n , v )
return e
}
func (e *htmlH6 ) Class (v ...string ) HTMLH6 {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlH6 ) ContentEditable (v bool ) HTMLH6 {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlH6 ) DataSet (k string , v any ) HTMLH6 {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlH6 ) DataSets (ds map [string ]any ) HTMLH6 {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlH6 ) Dir (format string , v ...any ) HTMLH6 {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlH6 ) Draggable (v bool ) HTMLH6 {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlH6 ) Hidden (v bool ) HTMLH6 {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlH6 ) ID (format string , v ...any ) HTMLH6 {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlH6 ) Lang (format string , v ...any ) HTMLH6 {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlH6 ) Role (format string , v ...any ) HTMLH6 {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlH6 ) Spellcheck (v bool ) HTMLH6 {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlH6 ) Style (k , format string , v ...any ) HTMLH6 {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlH6 ) Styles (s map [string ]string ) HTMLH6 {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlH6 ) TabIndex (v int ) HTMLH6 {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlH6 ) Title (format string , v ...any ) HTMLH6 {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlH6 ) On (event string , h EventHandler , options ...EventOption ) HTMLH6 {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlH6 ) OnBlur (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("blur" , h , options ...)
}
func (e *htmlH6 ) OnChange (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("change" , h , options ...)
}
func (e *htmlH6 ) OnClick (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("click" , h , options ...)
}
func (e *htmlH6 ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlH6 ) OnCopy (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("copy" , h , options ...)
}
func (e *htmlH6 ) OnCut (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("cut" , h , options ...)
}
func (e *htmlH6 ) OnDblClick (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlH6 ) OnDrag (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("drag" , h , options ...)
}
func (e *htmlH6 ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("dragend" , h , options ...)
}
func (e *htmlH6 ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlH6 ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlH6 ) OnDragOver (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("dragover" , h , options ...)
}
func (e *htmlH6 ) OnDragStart (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlH6 ) OnDrop (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("drop" , h , options ...)
}
func (e *htmlH6 ) OnFocus (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("focus" , h , options ...)
}
func (e *htmlH6 ) OnInput (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("input" , h , options ...)
}
func (e *htmlH6 ) OnInvalid (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("invalid" , h , options ...)
}
func (e *htmlH6 ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("keydown" , h , options ...)
}
func (e *htmlH6 ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("keypress" , h , options ...)
}
func (e *htmlH6 ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("keyup" , h , options ...)
}
func (e *htmlH6 ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlH6 ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlH6 ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlH6 ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlH6 ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlH6 ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlH6 ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlH6 ) OnPaste (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("paste" , h , options ...)
}
func (e *htmlH6 ) OnReset (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("reset" , h , options ...)
}
func (e *htmlH6 ) OnScroll (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("scroll" , h , options ...)
}
func (e *htmlH6 ) OnSearch (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("search" , h , options ...)
}
func (e *htmlH6 ) OnSelect (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("select" , h , options ...)
}
func (e *htmlH6 ) OnSubmit (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("submit" , h , options ...)
}
func (e *htmlH6 ) OnWheel (h EventHandler , options ...EventOption ) HTMLH6 {
return e .On ("wheel" , h , options ...)
}
func (e *htmlH6 ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlH6 ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlH6 ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlH6 ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlH6 ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlH6 ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLHead interface {
HTML
Body (elems ...UI ) HTMLHead
Text (v any ) HTMLHead
Textf (format string , v ...any ) HTMLHead
AccessKey (format string , v ...any ) HTMLHead
Aria (k string , v any ) HTMLHead
Attr (n string , v any ) HTMLHead
Class (v ...string ) HTMLHead
ContentEditable (v bool ) HTMLHead
DataSet (k string , v any ) HTMLHead
DataSets (ds map [string ]any ) HTMLHead
Dir (format string , v ...any ) HTMLHead
Draggable (v bool ) HTMLHead
Hidden (v bool ) HTMLHead
ID (format string , v ...any ) HTMLHead
Lang (format string , v ...any ) HTMLHead
Role (format string , v ...any ) HTMLHead
Spellcheck (v bool ) HTMLHead
Style (k, format string , v ...any ) HTMLHead
Styles (s map [string ]string ) HTMLHead
TabIndex (v int ) HTMLHead
Title (format string , v ...any ) HTMLHead
On (event string , h EventHandler , options ...EventOption ) HTMLHead
}
func Head () HTMLHead {
e := &htmlHead {
htmlElement : htmlElement {
tag : "head" ,
isSelfClosing : false ,
},
}
return e
}
type htmlHead struct {
htmlElement
}
func (e *htmlHead ) Body (v ...UI ) HTMLHead {
return e .setBody (FilterUIElems (v ...)).(*htmlHead )
}
func (e *htmlHead ) Text (v any ) HTMLHead {
return e .Body (Text (v ))
}
func (e *htmlHead ) Textf (format string , v ...any ) HTMLHead {
return e .Body (Textf (format , v ...))
}
func (e *htmlHead ) AccessKey (format string , v ...any ) HTMLHead {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlHead ) Aria (k string , v any ) HTMLHead {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHead ) Attr (n string , v any ) HTMLHead {
e .setAttr (n , v )
return e
}
func (e *htmlHead ) Class (v ...string ) HTMLHead {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlHead ) ContentEditable (v bool ) HTMLHead {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlHead ) DataSet (k string , v any ) HTMLHead {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHead ) DataSets (ds map [string ]any ) HTMLHead {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlHead ) Dir (format string , v ...any ) HTMLHead {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlHead ) Draggable (v bool ) HTMLHead {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlHead ) Hidden (v bool ) HTMLHead {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlHead ) ID (format string , v ...any ) HTMLHead {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlHead ) Lang (format string , v ...any ) HTMLHead {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlHead ) Role (format string , v ...any ) HTMLHead {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlHead ) Spellcheck (v bool ) HTMLHead {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlHead ) Style (k , format string , v ...any ) HTMLHead {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlHead ) Styles (s map [string ]string ) HTMLHead {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlHead ) TabIndex (v int ) HTMLHead {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlHead ) Title (format string , v ...any ) HTMLHead {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlHead ) On (event string , h EventHandler , options ...EventOption ) HTMLHead {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlHead ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlHead ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlHead ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlHead ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlHead ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlHead ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLHeader interface {
HTML
Body (elems ...UI ) HTMLHeader
Text (v any ) HTMLHeader
Textf (format string , v ...any ) HTMLHeader
AccessKey (format string , v ...any ) HTMLHeader
Aria (k string , v any ) HTMLHeader
Attr (n string , v any ) HTMLHeader
Class (v ...string ) HTMLHeader
ContentEditable (v bool ) HTMLHeader
DataSet (k string , v any ) HTMLHeader
DataSets (ds map [string ]any ) HTMLHeader
Dir (format string , v ...any ) HTMLHeader
Draggable (v bool ) HTMLHeader
Hidden (v bool ) HTMLHeader
ID (format string , v ...any ) HTMLHeader
Lang (format string , v ...any ) HTMLHeader
Role (format string , v ...any ) HTMLHeader
Spellcheck (v bool ) HTMLHeader
Style (k, format string , v ...any ) HTMLHeader
Styles (s map [string ]string ) HTMLHeader
TabIndex (v int ) HTMLHeader
Title (format string , v ...any ) HTMLHeader
On (event string , h EventHandler , options ...EventOption ) HTMLHeader
OnBlur (h EventHandler , options ...EventOption ) HTMLHeader
OnChange (h EventHandler , options ...EventOption ) HTMLHeader
OnClick (h EventHandler , options ...EventOption ) HTMLHeader
OnContextMenu (h EventHandler , options ...EventOption ) HTMLHeader
OnCopy (h EventHandler , options ...EventOption ) HTMLHeader
OnCut (h EventHandler , options ...EventOption ) HTMLHeader
OnDblClick (h EventHandler , options ...EventOption ) HTMLHeader
OnDrag (h EventHandler , options ...EventOption ) HTMLHeader
OnDragEnd (h EventHandler , options ...EventOption ) HTMLHeader
OnDragEnter (h EventHandler , options ...EventOption ) HTMLHeader
OnDragLeave (h EventHandler , options ...EventOption ) HTMLHeader
OnDragOver (h EventHandler , options ...EventOption ) HTMLHeader
OnDragStart (h EventHandler , options ...EventOption ) HTMLHeader
OnDrop (h EventHandler , options ...EventOption ) HTMLHeader
OnFocus (h EventHandler , options ...EventOption ) HTMLHeader
OnInput (h EventHandler , options ...EventOption ) HTMLHeader
OnInvalid (h EventHandler , options ...EventOption ) HTMLHeader
OnKeyDown (h EventHandler , options ...EventOption ) HTMLHeader
OnKeyPress (h EventHandler , options ...EventOption ) HTMLHeader
OnKeyUp (h EventHandler , options ...EventOption ) HTMLHeader
OnMouseDown (h EventHandler , options ...EventOption ) HTMLHeader
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLHeader
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLHeader
OnMouseMove (h EventHandler , options ...EventOption ) HTMLHeader
OnMouseOut (h EventHandler , options ...EventOption ) HTMLHeader
OnMouseOver (h EventHandler , options ...EventOption ) HTMLHeader
OnMouseUp (h EventHandler , options ...EventOption ) HTMLHeader
OnPaste (h EventHandler , options ...EventOption ) HTMLHeader
OnReset (h EventHandler , options ...EventOption ) HTMLHeader
OnScroll (h EventHandler , options ...EventOption ) HTMLHeader
OnSearch (h EventHandler , options ...EventOption ) HTMLHeader
OnSelect (h EventHandler , options ...EventOption ) HTMLHeader
OnSubmit (h EventHandler , options ...EventOption ) HTMLHeader
OnWheel (h EventHandler , options ...EventOption ) HTMLHeader
}
func Header () HTMLHeader {
e := &htmlHeader {
htmlElement : htmlElement {
tag : "header" ,
isSelfClosing : false ,
},
}
return e
}
type htmlHeader struct {
htmlElement
}
func (e *htmlHeader ) Body (v ...UI ) HTMLHeader {
return e .setBody (FilterUIElems (v ...)).(*htmlHeader )
}
func (e *htmlHeader ) Text (v any ) HTMLHeader {
return e .Body (Text (v ))
}
func (e *htmlHeader ) Textf (format string , v ...any ) HTMLHeader {
return e .Body (Textf (format , v ...))
}
func (e *htmlHeader ) AccessKey (format string , v ...any ) HTMLHeader {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlHeader ) Aria (k string , v any ) HTMLHeader {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHeader ) Attr (n string , v any ) HTMLHeader {
e .setAttr (n , v )
return e
}
func (e *htmlHeader ) Class (v ...string ) HTMLHeader {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlHeader ) ContentEditable (v bool ) HTMLHeader {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlHeader ) DataSet (k string , v any ) HTMLHeader {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHeader ) DataSets (ds map [string ]any ) HTMLHeader {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlHeader ) Dir (format string , v ...any ) HTMLHeader {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlHeader ) Draggable (v bool ) HTMLHeader {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlHeader ) Hidden (v bool ) HTMLHeader {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlHeader ) ID (format string , v ...any ) HTMLHeader {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlHeader ) Lang (format string , v ...any ) HTMLHeader {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlHeader ) Role (format string , v ...any ) HTMLHeader {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlHeader ) Spellcheck (v bool ) HTMLHeader {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlHeader ) Style (k , format string , v ...any ) HTMLHeader {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlHeader ) Styles (s map [string ]string ) HTMLHeader {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlHeader ) TabIndex (v int ) HTMLHeader {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlHeader ) Title (format string , v ...any ) HTMLHeader {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlHeader ) On (event string , h EventHandler , options ...EventOption ) HTMLHeader {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlHeader ) OnBlur (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("blur" , h , options ...)
}
func (e *htmlHeader ) OnChange (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("change" , h , options ...)
}
func (e *htmlHeader ) OnClick (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("click" , h , options ...)
}
func (e *htmlHeader ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlHeader ) OnCopy (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("copy" , h , options ...)
}
func (e *htmlHeader ) OnCut (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("cut" , h , options ...)
}
func (e *htmlHeader ) OnDblClick (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlHeader ) OnDrag (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("drag" , h , options ...)
}
func (e *htmlHeader ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("dragend" , h , options ...)
}
func (e *htmlHeader ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlHeader ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlHeader ) OnDragOver (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("dragover" , h , options ...)
}
func (e *htmlHeader ) OnDragStart (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlHeader ) OnDrop (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("drop" , h , options ...)
}
func (e *htmlHeader ) OnFocus (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("focus" , h , options ...)
}
func (e *htmlHeader ) OnInput (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("input" , h , options ...)
}
func (e *htmlHeader ) OnInvalid (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("invalid" , h , options ...)
}
func (e *htmlHeader ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("keydown" , h , options ...)
}
func (e *htmlHeader ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("keypress" , h , options ...)
}
func (e *htmlHeader ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("keyup" , h , options ...)
}
func (e *htmlHeader ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlHeader ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlHeader ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlHeader ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlHeader ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlHeader ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlHeader ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlHeader ) OnPaste (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("paste" , h , options ...)
}
func (e *htmlHeader ) OnReset (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("reset" , h , options ...)
}
func (e *htmlHeader ) OnScroll (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("scroll" , h , options ...)
}
func (e *htmlHeader ) OnSearch (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("search" , h , options ...)
}
func (e *htmlHeader ) OnSelect (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("select" , h , options ...)
}
func (e *htmlHeader ) OnSubmit (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("submit" , h , options ...)
}
func (e *htmlHeader ) OnWheel (h EventHandler , options ...EventOption ) HTMLHeader {
return e .On ("wheel" , h , options ...)
}
func (e *htmlHeader ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlHeader ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlHeader ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlHeader ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlHeader ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlHeader ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLHr interface {
HTML
AccessKey (format string , v ...any ) HTMLHr
Aria (k string , v any ) HTMLHr
Attr (n string , v any ) HTMLHr
Class (v ...string ) HTMLHr
ContentEditable (v bool ) HTMLHr
DataSet (k string , v any ) HTMLHr
DataSets (ds map [string ]any ) HTMLHr
Dir (format string , v ...any ) HTMLHr
Draggable (v bool ) HTMLHr
Hidden (v bool ) HTMLHr
ID (format string , v ...any ) HTMLHr
Lang (format string , v ...any ) HTMLHr
Role (format string , v ...any ) HTMLHr
Spellcheck (v bool ) HTMLHr
Style (k, format string , v ...any ) HTMLHr
Styles (s map [string ]string ) HTMLHr
TabIndex (v int ) HTMLHr
Title (format string , v ...any ) HTMLHr
On (event string , h EventHandler , options ...EventOption ) HTMLHr
OnBlur (h EventHandler , options ...EventOption ) HTMLHr
OnChange (h EventHandler , options ...EventOption ) HTMLHr
OnClick (h EventHandler , options ...EventOption ) HTMLHr
OnContextMenu (h EventHandler , options ...EventOption ) HTMLHr
OnCopy (h EventHandler , options ...EventOption ) HTMLHr
OnCut (h EventHandler , options ...EventOption ) HTMLHr
OnDblClick (h EventHandler , options ...EventOption ) HTMLHr
OnDrag (h EventHandler , options ...EventOption ) HTMLHr
OnDragEnd (h EventHandler , options ...EventOption ) HTMLHr
OnDragEnter (h EventHandler , options ...EventOption ) HTMLHr
OnDragLeave (h EventHandler , options ...EventOption ) HTMLHr
OnDragOver (h EventHandler , options ...EventOption ) HTMLHr
OnDragStart (h EventHandler , options ...EventOption ) HTMLHr
OnDrop (h EventHandler , options ...EventOption ) HTMLHr
OnFocus (h EventHandler , options ...EventOption ) HTMLHr
OnInput (h EventHandler , options ...EventOption ) HTMLHr
OnInvalid (h EventHandler , options ...EventOption ) HTMLHr
OnKeyDown (h EventHandler , options ...EventOption ) HTMLHr
OnKeyPress (h EventHandler , options ...EventOption ) HTMLHr
OnKeyUp (h EventHandler , options ...EventOption ) HTMLHr
OnMouseDown (h EventHandler , options ...EventOption ) HTMLHr
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLHr
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLHr
OnMouseMove (h EventHandler , options ...EventOption ) HTMLHr
OnMouseOut (h EventHandler , options ...EventOption ) HTMLHr
OnMouseOver (h EventHandler , options ...EventOption ) HTMLHr
OnMouseUp (h EventHandler , options ...EventOption ) HTMLHr
OnPaste (h EventHandler , options ...EventOption ) HTMLHr
OnReset (h EventHandler , options ...EventOption ) HTMLHr
OnScroll (h EventHandler , options ...EventOption ) HTMLHr
OnSearch (h EventHandler , options ...EventOption ) HTMLHr
OnSelect (h EventHandler , options ...EventOption ) HTMLHr
OnSubmit (h EventHandler , options ...EventOption ) HTMLHr
OnWheel (h EventHandler , options ...EventOption ) HTMLHr
}
func Hr () HTMLHr {
e := &htmlHr {
htmlElement : htmlElement {
tag : "hr" ,
isSelfClosing : true ,
},
}
return e
}
type htmlHr struct {
htmlElement
}
func (e *htmlHr ) AccessKey (format string , v ...any ) HTMLHr {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlHr ) Aria (k string , v any ) HTMLHr {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHr ) Attr (n string , v any ) HTMLHr {
e .setAttr (n , v )
return e
}
func (e *htmlHr ) Class (v ...string ) HTMLHr {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlHr ) ContentEditable (v bool ) HTMLHr {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlHr ) DataSet (k string , v any ) HTMLHr {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHr ) DataSets (ds map [string ]any ) HTMLHr {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlHr ) Dir (format string , v ...any ) HTMLHr {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlHr ) Draggable (v bool ) HTMLHr {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlHr ) Hidden (v bool ) HTMLHr {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlHr ) ID (format string , v ...any ) HTMLHr {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlHr ) Lang (format string , v ...any ) HTMLHr {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlHr ) Role (format string , v ...any ) HTMLHr {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlHr ) Spellcheck (v bool ) HTMLHr {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlHr ) Style (k , format string , v ...any ) HTMLHr {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlHr ) Styles (s map [string ]string ) HTMLHr {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlHr ) TabIndex (v int ) HTMLHr {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlHr ) Title (format string , v ...any ) HTMLHr {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlHr ) On (event string , h EventHandler , options ...EventOption ) HTMLHr {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlHr ) OnBlur (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("blur" , h , options ...)
}
func (e *htmlHr ) OnChange (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("change" , h , options ...)
}
func (e *htmlHr ) OnClick (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("click" , h , options ...)
}
func (e *htmlHr ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlHr ) OnCopy (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("copy" , h , options ...)
}
func (e *htmlHr ) OnCut (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("cut" , h , options ...)
}
func (e *htmlHr ) OnDblClick (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlHr ) OnDrag (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("drag" , h , options ...)
}
func (e *htmlHr ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("dragend" , h , options ...)
}
func (e *htmlHr ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlHr ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlHr ) OnDragOver (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("dragover" , h , options ...)
}
func (e *htmlHr ) OnDragStart (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlHr ) OnDrop (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("drop" , h , options ...)
}
func (e *htmlHr ) OnFocus (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("focus" , h , options ...)
}
func (e *htmlHr ) OnInput (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("input" , h , options ...)
}
func (e *htmlHr ) OnInvalid (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("invalid" , h , options ...)
}
func (e *htmlHr ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("keydown" , h , options ...)
}
func (e *htmlHr ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("keypress" , h , options ...)
}
func (e *htmlHr ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("keyup" , h , options ...)
}
func (e *htmlHr ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlHr ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlHr ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlHr ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlHr ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlHr ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlHr ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlHr ) OnPaste (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("paste" , h , options ...)
}
func (e *htmlHr ) OnReset (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("reset" , h , options ...)
}
func (e *htmlHr ) OnScroll (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("scroll" , h , options ...)
}
func (e *htmlHr ) OnSearch (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("search" , h , options ...)
}
func (e *htmlHr ) OnSelect (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("select" , h , options ...)
}
func (e *htmlHr ) OnSubmit (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("submit" , h , options ...)
}
func (e *htmlHr ) OnWheel (h EventHandler , options ...EventOption ) HTMLHr {
return e .On ("wheel" , h , options ...)
}
func (e *htmlHr ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlHr ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlHr ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlHr ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlHr ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlHr ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLHtml interface {
HTML
privateBody(elems ...UI ) HTMLHtml
AccessKey (format string , v ...any ) HTMLHtml
Aria (k string , v any ) HTMLHtml
Attr (n string , v any ) HTMLHtml
Class (v ...string ) HTMLHtml
ContentEditable (v bool ) HTMLHtml
DataSet (k string , v any ) HTMLHtml
DataSets (ds map [string ]any ) HTMLHtml
Dir (format string , v ...any ) HTMLHtml
Draggable (v bool ) HTMLHtml
Hidden (v bool ) HTMLHtml
ID (format string , v ...any ) HTMLHtml
Lang (format string , v ...any ) HTMLHtml
Role (format string , v ...any ) HTMLHtml
Spellcheck (v bool ) HTMLHtml
Style (k, format string , v ...any ) HTMLHtml
Styles (s map [string ]string ) HTMLHtml
TabIndex (v int ) HTMLHtml
Title (format string , v ...any ) HTMLHtml
On (event string , h EventHandler , options ...EventOption ) HTMLHtml
}
func Html () HTMLHtml {
e := &htmlHtml {
htmlElement : htmlElement {
tag : "html" ,
isSelfClosing : false ,
},
}
return e
}
type htmlHtml struct {
htmlElement
}
func (e *htmlHtml ) privateBody (v ...UI ) HTMLHtml {
return e .setBody (FilterUIElems (v ...)).(*htmlHtml )
}
func (e *htmlHtml ) AccessKey (format string , v ...any ) HTMLHtml {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlHtml ) Aria (k string , v any ) HTMLHtml {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHtml ) Attr (n string , v any ) HTMLHtml {
e .setAttr (n , v )
return e
}
func (e *htmlHtml ) Class (v ...string ) HTMLHtml {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlHtml ) ContentEditable (v bool ) HTMLHtml {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlHtml ) DataSet (k string , v any ) HTMLHtml {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlHtml ) DataSets (ds map [string ]any ) HTMLHtml {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlHtml ) Dir (format string , v ...any ) HTMLHtml {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlHtml ) Draggable (v bool ) HTMLHtml {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlHtml ) Hidden (v bool ) HTMLHtml {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlHtml ) ID (format string , v ...any ) HTMLHtml {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlHtml ) Lang (format string , v ...any ) HTMLHtml {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlHtml ) Role (format string , v ...any ) HTMLHtml {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlHtml ) Spellcheck (v bool ) HTMLHtml {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlHtml ) Style (k , format string , v ...any ) HTMLHtml {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlHtml ) Styles (s map [string ]string ) HTMLHtml {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlHtml ) TabIndex (v int ) HTMLHtml {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlHtml ) Title (format string , v ...any ) HTMLHtml {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlHtml ) On (event string , h EventHandler , options ...EventOption ) HTMLHtml {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlHtml ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlHtml ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlHtml ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlHtml ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlHtml ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlHtml ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLI interface {
HTML
Body (elems ...UI ) HTMLI
Text (v any ) HTMLI
Textf (format string , v ...any ) HTMLI
AccessKey (format string , v ...any ) HTMLI
Aria (k string , v any ) HTMLI
Attr (n string , v any ) HTMLI
Class (v ...string ) HTMLI
ContentEditable (v bool ) HTMLI
DataSet (k string , v any ) HTMLI
DataSets (ds map [string ]any ) HTMLI
Dir (format string , v ...any ) HTMLI
Draggable (v bool ) HTMLI
Hidden (v bool ) HTMLI
ID (format string , v ...any ) HTMLI
Lang (format string , v ...any ) HTMLI
Role (format string , v ...any ) HTMLI
Spellcheck (v bool ) HTMLI
Style (k, format string , v ...any ) HTMLI
Styles (s map [string ]string ) HTMLI
TabIndex (v int ) HTMLI
Title (format string , v ...any ) HTMLI
On (event string , h EventHandler , options ...EventOption ) HTMLI
OnBlur (h EventHandler , options ...EventOption ) HTMLI
OnChange (h EventHandler , options ...EventOption ) HTMLI
OnClick (h EventHandler , options ...EventOption ) HTMLI
OnContextMenu (h EventHandler , options ...EventOption ) HTMLI
OnCopy (h EventHandler , options ...EventOption ) HTMLI
OnCut (h EventHandler , options ...EventOption ) HTMLI
OnDblClick (h EventHandler , options ...EventOption ) HTMLI
OnDrag (h EventHandler , options ...EventOption ) HTMLI
OnDragEnd (h EventHandler , options ...EventOption ) HTMLI
OnDragEnter (h EventHandler , options ...EventOption ) HTMLI
OnDragLeave (h EventHandler , options ...EventOption ) HTMLI
OnDragOver (h EventHandler , options ...EventOption ) HTMLI
OnDragStart (h EventHandler , options ...EventOption ) HTMLI
OnDrop (h EventHandler , options ...EventOption ) HTMLI
OnFocus (h EventHandler , options ...EventOption ) HTMLI
OnInput (h EventHandler , options ...EventOption ) HTMLI
OnInvalid (h EventHandler , options ...EventOption ) HTMLI
OnKeyDown (h EventHandler , options ...EventOption ) HTMLI
OnKeyPress (h EventHandler , options ...EventOption ) HTMLI
OnKeyUp (h EventHandler , options ...EventOption ) HTMLI
OnMouseDown (h EventHandler , options ...EventOption ) HTMLI
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLI
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLI
OnMouseMove (h EventHandler , options ...EventOption ) HTMLI
OnMouseOut (h EventHandler , options ...EventOption ) HTMLI
OnMouseOver (h EventHandler , options ...EventOption ) HTMLI
OnMouseUp (h EventHandler , options ...EventOption ) HTMLI
OnPaste (h EventHandler , options ...EventOption ) HTMLI
OnReset (h EventHandler , options ...EventOption ) HTMLI
OnScroll (h EventHandler , options ...EventOption ) HTMLI
OnSearch (h EventHandler , options ...EventOption ) HTMLI
OnSelect (h EventHandler , options ...EventOption ) HTMLI
OnSubmit (h EventHandler , options ...EventOption ) HTMLI
OnWheel (h EventHandler , options ...EventOption ) HTMLI
}
func I () HTMLI {
e := &htmlI {
htmlElement : htmlElement {
tag : "i" ,
isSelfClosing : false ,
},
}
return e
}
type htmlI struct {
htmlElement
}
func (e *htmlI ) Body (v ...UI ) HTMLI {
return e .setBody (FilterUIElems (v ...)).(*htmlI )
}
func (e *htmlI ) Text (v any ) HTMLI {
return e .Body (Text (v ))
}
func (e *htmlI ) Textf (format string , v ...any ) HTMLI {
return e .Body (Textf (format , v ...))
}
func (e *htmlI ) AccessKey (format string , v ...any ) HTMLI {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlI ) Aria (k string , v any ) HTMLI {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlI ) Attr (n string , v any ) HTMLI {
e .setAttr (n , v )
return e
}
func (e *htmlI ) Class (v ...string ) HTMLI {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlI ) ContentEditable (v bool ) HTMLI {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlI ) DataSet (k string , v any ) HTMLI {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlI ) DataSets (ds map [string ]any ) HTMLI {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlI ) Dir (format string , v ...any ) HTMLI {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlI ) Draggable (v bool ) HTMLI {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlI ) Hidden (v bool ) HTMLI {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlI ) ID (format string , v ...any ) HTMLI {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlI ) Lang (format string , v ...any ) HTMLI {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlI ) Role (format string , v ...any ) HTMLI {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlI ) Spellcheck (v bool ) HTMLI {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlI ) Style (k , format string , v ...any ) HTMLI {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlI ) Styles (s map [string ]string ) HTMLI {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlI ) TabIndex (v int ) HTMLI {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlI ) Title (format string , v ...any ) HTMLI {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlI ) On (event string , h EventHandler , options ...EventOption ) HTMLI {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlI ) OnBlur (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("blur" , h , options ...)
}
func (e *htmlI ) OnChange (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("change" , h , options ...)
}
func (e *htmlI ) OnClick (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("click" , h , options ...)
}
func (e *htmlI ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlI ) OnCopy (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("copy" , h , options ...)
}
func (e *htmlI ) OnCut (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("cut" , h , options ...)
}
func (e *htmlI ) OnDblClick (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlI ) OnDrag (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("drag" , h , options ...)
}
func (e *htmlI ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("dragend" , h , options ...)
}
func (e *htmlI ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlI ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlI ) OnDragOver (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("dragover" , h , options ...)
}
func (e *htmlI ) OnDragStart (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlI ) OnDrop (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("drop" , h , options ...)
}
func (e *htmlI ) OnFocus (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("focus" , h , options ...)
}
func (e *htmlI ) OnInput (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("input" , h , options ...)
}
func (e *htmlI ) OnInvalid (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("invalid" , h , options ...)
}
func (e *htmlI ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("keydown" , h , options ...)
}
func (e *htmlI ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("keypress" , h , options ...)
}
func (e *htmlI ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("keyup" , h , options ...)
}
func (e *htmlI ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlI ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlI ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlI ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlI ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlI ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlI ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlI ) OnPaste (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("paste" , h , options ...)
}
func (e *htmlI ) OnReset (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("reset" , h , options ...)
}
func (e *htmlI ) OnScroll (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("scroll" , h , options ...)
}
func (e *htmlI ) OnSearch (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("search" , h , options ...)
}
func (e *htmlI ) OnSelect (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("select" , h , options ...)
}
func (e *htmlI ) OnSubmit (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("submit" , h , options ...)
}
func (e *htmlI ) OnWheel (h EventHandler , options ...EventOption ) HTMLI {
return e .On ("wheel" , h , options ...)
}
func (e *htmlI ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlI ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlI ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlI ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlI ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlI ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLIFrame interface {
HTML
Body (elems ...UI ) HTMLIFrame
Text (v any ) HTMLIFrame
Textf (format string , v ...any ) HTMLIFrame
AccessKey (format string , v ...any ) HTMLIFrame
Allow (format string , v ...any ) HTMLIFrame
AllowFullscreen (v bool ) HTMLIFrame
AllowPaymentRequest (v bool ) HTMLIFrame
Aria (k string , v any ) HTMLIFrame
Attr (n string , v any ) HTMLIFrame
Class (v ...string ) HTMLIFrame
ContentEditable (v bool ) HTMLIFrame
DataSet (k string , v any ) HTMLIFrame
DataSets (ds map [string ]any ) HTMLIFrame
Dir (format string , v ...any ) HTMLIFrame
Draggable (v bool ) HTMLIFrame
Height (v int ) HTMLIFrame
Hidden (v bool ) HTMLIFrame
ID (format string , v ...any ) HTMLIFrame
Lang (format string , v ...any ) HTMLIFrame
Loading (format string , v ...any ) HTMLIFrame
Name (format string , v ...any ) HTMLIFrame
ReferrerPolicy (format string , v ...any ) HTMLIFrame
Role (format string , v ...any ) HTMLIFrame
Sandbox (format string , v ...any ) HTMLIFrame
Spellcheck (v bool ) HTMLIFrame
Src (format string , v ...any ) HTMLIFrame
SrcDoc (format string , v ...any ) HTMLIFrame
Style (k, format string , v ...any ) HTMLIFrame
Styles (s map [string ]string ) HTMLIFrame
TabIndex (v int ) HTMLIFrame
Title (format string , v ...any ) HTMLIFrame
Width (v int ) HTMLIFrame
On (event string , h EventHandler , options ...EventOption ) HTMLIFrame
OnBlur (h EventHandler , options ...EventOption ) HTMLIFrame
OnChange (h EventHandler , options ...EventOption ) HTMLIFrame
OnClick (h EventHandler , options ...EventOption ) HTMLIFrame
OnContextMenu (h EventHandler , options ...EventOption ) HTMLIFrame
OnCopy (h EventHandler , options ...EventOption ) HTMLIFrame
OnCut (h EventHandler , options ...EventOption ) HTMLIFrame
OnDblClick (h EventHandler , options ...EventOption ) HTMLIFrame
OnDrag (h EventHandler , options ...EventOption ) HTMLIFrame
OnDragEnd (h EventHandler , options ...EventOption ) HTMLIFrame
OnDragEnter (h EventHandler , options ...EventOption ) HTMLIFrame
OnDragLeave (h EventHandler , options ...EventOption ) HTMLIFrame
OnDragOver (h EventHandler , options ...EventOption ) HTMLIFrame
OnDragStart (h EventHandler , options ...EventOption ) HTMLIFrame
OnDrop (h EventHandler , options ...EventOption ) HTMLIFrame
OnFocus (h EventHandler , options ...EventOption ) HTMLIFrame
OnInput (h EventHandler , options ...EventOption ) HTMLIFrame
OnInvalid (h EventHandler , options ...EventOption ) HTMLIFrame
OnKeyDown (h EventHandler , options ...EventOption ) HTMLIFrame
OnKeyPress (h EventHandler , options ...EventOption ) HTMLIFrame
OnKeyUp (h EventHandler , options ...EventOption ) HTMLIFrame
OnLoad (h EventHandler , options ...EventOption ) HTMLIFrame
OnMouseDown (h EventHandler , options ...EventOption ) HTMLIFrame
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLIFrame
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLIFrame
OnMouseMove (h EventHandler , options ...EventOption ) HTMLIFrame
OnMouseOut (h EventHandler , options ...EventOption ) HTMLIFrame
OnMouseOver (h EventHandler , options ...EventOption ) HTMLIFrame
OnMouseUp (h EventHandler , options ...EventOption ) HTMLIFrame
OnPaste (h EventHandler , options ...EventOption ) HTMLIFrame
OnReset (h EventHandler , options ...EventOption ) HTMLIFrame
OnScroll (h EventHandler , options ...EventOption ) HTMLIFrame
OnSearch (h EventHandler , options ...EventOption ) HTMLIFrame
OnSelect (h EventHandler , options ...EventOption ) HTMLIFrame
OnSubmit (h EventHandler , options ...EventOption ) HTMLIFrame
OnWheel (h EventHandler , options ...EventOption ) HTMLIFrame
}
func IFrame () HTMLIFrame {
e := &htmlIFrame {
htmlElement : htmlElement {
tag : "iframe" ,
isSelfClosing : false ,
},
}
return e
}
type htmlIFrame struct {
htmlElement
}
func (e *htmlIFrame ) Body (v ...UI ) HTMLIFrame {
return e .setBody (FilterUIElems (v ...)).(*htmlIFrame )
}
func (e *htmlIFrame ) Text (v any ) HTMLIFrame {
return e .Body (Text (v ))
}
func (e *htmlIFrame ) Textf (format string , v ...any ) HTMLIFrame {
return e .Body (Textf (format , v ...))
}
func (e *htmlIFrame ) AccessKey (format string , v ...any ) HTMLIFrame {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Allow (format string , v ...any ) HTMLIFrame {
e .setAttr ("allow" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) AllowFullscreen (v bool ) HTMLIFrame {
s := "false"
if v {
s = "true"
}
e .setAttr ("allowfullscreen" , s )
return e
}
func (e *htmlIFrame ) AllowPaymentRequest (v bool ) HTMLIFrame {
s := "false"
if v {
s = "true"
}
e .setAttr ("allowpaymentrequest" , s )
return e
}
func (e *htmlIFrame ) Aria (k string , v any ) HTMLIFrame {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlIFrame ) Attr (n string , v any ) HTMLIFrame {
e .setAttr (n , v )
return e
}
func (e *htmlIFrame ) Class (v ...string ) HTMLIFrame {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlIFrame ) ContentEditable (v bool ) HTMLIFrame {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlIFrame ) DataSet (k string , v any ) HTMLIFrame {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlIFrame ) DataSets (ds map [string ]any ) HTMLIFrame {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlIFrame ) Dir (format string , v ...any ) HTMLIFrame {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Draggable (v bool ) HTMLIFrame {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlIFrame ) Height (v int ) HTMLIFrame {
e .setAttr ("height" , v )
return e
}
func (e *htmlIFrame ) Hidden (v bool ) HTMLIFrame {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlIFrame ) ID (format string , v ...any ) HTMLIFrame {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Lang (format string , v ...any ) HTMLIFrame {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Loading (format string , v ...any ) HTMLIFrame {
e .setAttr ("loading" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Name (format string , v ...any ) HTMLIFrame {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) ReferrerPolicy (format string , v ...any ) HTMLIFrame {
e .setAttr ("referrerpolicy" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Role (format string , v ...any ) HTMLIFrame {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Sandbox (format string , v ...any ) HTMLIFrame {
e .setAttr ("sandbox" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Spellcheck (v bool ) HTMLIFrame {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlIFrame ) Src (format string , v ...any ) HTMLIFrame {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) SrcDoc (format string , v ...any ) HTMLIFrame {
e .setAttr ("srcdoc" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Style (k , format string , v ...any ) HTMLIFrame {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Styles (s map [string ]string ) HTMLIFrame {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlIFrame ) TabIndex (v int ) HTMLIFrame {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlIFrame ) Title (format string , v ...any ) HTMLIFrame {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlIFrame ) Width (v int ) HTMLIFrame {
e .setAttr ("width" , v )
return e
}
func (e *htmlIFrame ) On (event string , h EventHandler , options ...EventOption ) HTMLIFrame {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlIFrame ) OnBlur (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("blur" , h , options ...)
}
func (e *htmlIFrame ) OnChange (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("change" , h , options ...)
}
func (e *htmlIFrame ) OnClick (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("click" , h , options ...)
}
func (e *htmlIFrame ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlIFrame ) OnCopy (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("copy" , h , options ...)
}
func (e *htmlIFrame ) OnCut (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("cut" , h , options ...)
}
func (e *htmlIFrame ) OnDblClick (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlIFrame ) OnDrag (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("drag" , h , options ...)
}
func (e *htmlIFrame ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("dragend" , h , options ...)
}
func (e *htmlIFrame ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlIFrame ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlIFrame ) OnDragOver (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("dragover" , h , options ...)
}
func (e *htmlIFrame ) OnDragStart (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlIFrame ) OnDrop (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("drop" , h , options ...)
}
func (e *htmlIFrame ) OnFocus (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("focus" , h , options ...)
}
func (e *htmlIFrame ) OnInput (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("input" , h , options ...)
}
func (e *htmlIFrame ) OnInvalid (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("invalid" , h , options ...)
}
func (e *htmlIFrame ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("keydown" , h , options ...)
}
func (e *htmlIFrame ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("keypress" , h , options ...)
}
func (e *htmlIFrame ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("keyup" , h , options ...)
}
func (e *htmlIFrame ) OnLoad (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("load" , h , options ...)
}
func (e *htmlIFrame ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlIFrame ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlIFrame ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlIFrame ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlIFrame ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlIFrame ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlIFrame ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlIFrame ) OnPaste (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("paste" , h , options ...)
}
func (e *htmlIFrame ) OnReset (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("reset" , h , options ...)
}
func (e *htmlIFrame ) OnScroll (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("scroll" , h , options ...)
}
func (e *htmlIFrame ) OnSearch (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("search" , h , options ...)
}
func (e *htmlIFrame ) OnSelect (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("select" , h , options ...)
}
func (e *htmlIFrame ) OnSubmit (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("submit" , h , options ...)
}
func (e *htmlIFrame ) OnWheel (h EventHandler , options ...EventOption ) HTMLIFrame {
return e .On ("wheel" , h , options ...)
}
func (e *htmlIFrame ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlIFrame ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlIFrame ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlIFrame ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlIFrame ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlIFrame ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLImg interface {
HTML
AccessKey (format string , v ...any ) HTMLImg
Alt (format string , v ...any ) HTMLImg
Aria (k string , v any ) HTMLImg
Attr (n string , v any ) HTMLImg
Class (v ...string ) HTMLImg
ContentEditable (v bool ) HTMLImg
CrossOrigin (format string , v ...any ) HTMLImg
DataSet (k string , v any ) HTMLImg
DataSets (ds map [string ]any ) HTMLImg
Dir (format string , v ...any ) HTMLImg
Draggable (v bool ) HTMLImg
FetchPriority (format string , v ...any ) HTMLImg
Height (v int ) HTMLImg
Hidden (v bool ) HTMLImg
ID (format string , v ...any ) HTMLImg
IsMap (v bool ) HTMLImg
Lang (format string , v ...any ) HTMLImg
Loading (format string , v ...any ) HTMLImg
Role (format string , v ...any ) HTMLImg
Sizes (format string , v ...any ) HTMLImg
Spellcheck (v bool ) HTMLImg
Src (format string , v ...any ) HTMLImg
SrcSet (format string , v ...any ) HTMLImg
Style (k, format string , v ...any ) HTMLImg
Styles (s map [string ]string ) HTMLImg
TabIndex (v int ) HTMLImg
Title (format string , v ...any ) HTMLImg
UseMap (format string , v ...any ) HTMLImg
Width (v int ) HTMLImg
On (event string , h EventHandler , options ...EventOption ) HTMLImg
OnAbort (h EventHandler , options ...EventOption ) HTMLImg
OnBlur (h EventHandler , options ...EventOption ) HTMLImg
OnCanPlay (h EventHandler , options ...EventOption ) HTMLImg
OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLImg
OnChange (h EventHandler , options ...EventOption ) HTMLImg
OnClick (h EventHandler , options ...EventOption ) HTMLImg
OnContextMenu (h EventHandler , options ...EventOption ) HTMLImg
OnCopy (h EventHandler , options ...EventOption ) HTMLImg
OnCueChange (h EventHandler , options ...EventOption ) HTMLImg
OnCut (h EventHandler , options ...EventOption ) HTMLImg
OnDblClick (h EventHandler , options ...EventOption ) HTMLImg
OnDrag (h EventHandler , options ...EventOption ) HTMLImg
OnDragEnd (h EventHandler , options ...EventOption ) HTMLImg
OnDragEnter (h EventHandler , options ...EventOption ) HTMLImg
OnDragLeave (h EventHandler , options ...EventOption ) HTMLImg
OnDragOver (h EventHandler , options ...EventOption ) HTMLImg
OnDragStart (h EventHandler , options ...EventOption ) HTMLImg
OnDrop (h EventHandler , options ...EventOption ) HTMLImg
OnDurationChange (h EventHandler , options ...EventOption ) HTMLImg
OnEmptied (h EventHandler , options ...EventOption ) HTMLImg
OnEnded (h EventHandler , options ...EventOption ) HTMLImg
OnError (h EventHandler , options ...EventOption ) HTMLImg
OnFocus (h EventHandler , options ...EventOption ) HTMLImg
OnInput (h EventHandler , options ...EventOption ) HTMLImg
OnInvalid (h EventHandler , options ...EventOption ) HTMLImg
OnKeyDown (h EventHandler , options ...EventOption ) HTMLImg
OnKeyPress (h EventHandler , options ...EventOption ) HTMLImg
OnKeyUp (h EventHandler , options ...EventOption ) HTMLImg
OnLoad (h EventHandler , options ...EventOption ) HTMLImg
OnLoadStart (h EventHandler , options ...EventOption ) HTMLImg
OnLoadedData (h EventHandler , options ...EventOption ) HTMLImg
OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLImg
OnMouseDown (h EventHandler , options ...EventOption ) HTMLImg
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLImg
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLImg
OnMouseMove (h EventHandler , options ...EventOption ) HTMLImg
OnMouseOut (h EventHandler , options ...EventOption ) HTMLImg
OnMouseOver (h EventHandler , options ...EventOption ) HTMLImg
OnMouseUp (h EventHandler , options ...EventOption ) HTMLImg
OnPaste (h EventHandler , options ...EventOption ) HTMLImg
OnPause (h EventHandler , options ...EventOption ) HTMLImg
OnPlay (h EventHandler , options ...EventOption ) HTMLImg
OnPlaying (h EventHandler , options ...EventOption ) HTMLImg
OnProgress (h EventHandler , options ...EventOption ) HTMLImg
OnRateChange (h EventHandler , options ...EventOption ) HTMLImg
OnReset (h EventHandler , options ...EventOption ) HTMLImg
OnScroll (h EventHandler , options ...EventOption ) HTMLImg
OnSearch (h EventHandler , options ...EventOption ) HTMLImg
OnSeeked (h EventHandler , options ...EventOption ) HTMLImg
OnSeeking (h EventHandler , options ...EventOption ) HTMLImg
OnSelect (h EventHandler , options ...EventOption ) HTMLImg
OnStalled (h EventHandler , options ...EventOption ) HTMLImg
OnSubmit (h EventHandler , options ...EventOption ) HTMLImg
OnSuspend (h EventHandler , options ...EventOption ) HTMLImg
OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLImg
OnVolumeChange (h EventHandler , options ...EventOption ) HTMLImg
OnWaiting (h EventHandler , options ...EventOption ) HTMLImg
OnWheel (h EventHandler , options ...EventOption ) HTMLImg
}
func Img () HTMLImg {
e := &htmlImg {
htmlElement : htmlElement {
tag : "img" ,
isSelfClosing : true ,
},
}
return e
}
type htmlImg struct {
htmlElement
}
func (e *htmlImg ) AccessKey (format string , v ...any ) HTMLImg {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Alt (format string , v ...any ) HTMLImg {
e .setAttr ("alt" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Aria (k string , v any ) HTMLImg {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlImg ) Attr (n string , v any ) HTMLImg {
e .setAttr (n , v )
return e
}
func (e *htmlImg ) Class (v ...string ) HTMLImg {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlImg ) ContentEditable (v bool ) HTMLImg {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlImg ) CrossOrigin (format string , v ...any ) HTMLImg {
e .setAttr ("crossorigin" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) DataSet (k string , v any ) HTMLImg {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlImg ) DataSets (ds map [string ]any ) HTMLImg {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlImg ) Dir (format string , v ...any ) HTMLImg {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Draggable (v bool ) HTMLImg {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlImg ) FetchPriority (format string , v ...any ) HTMLImg {
e .setAttr ("fetchpriority" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Height (v int ) HTMLImg {
e .setAttr ("height" , v )
return e
}
func (e *htmlImg ) Hidden (v bool ) HTMLImg {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlImg ) ID (format string , v ...any ) HTMLImg {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) IsMap (v bool ) HTMLImg {
e .setAttr ("ismap" , v )
return e
}
func (e *htmlImg ) Lang (format string , v ...any ) HTMLImg {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Loading (format string , v ...any ) HTMLImg {
e .setAttr ("loading" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Role (format string , v ...any ) HTMLImg {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Sizes (format string , v ...any ) HTMLImg {
e .setAttr ("sizes" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Spellcheck (v bool ) HTMLImg {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlImg ) Src (format string , v ...any ) HTMLImg {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) SrcSet (format string , v ...any ) HTMLImg {
e .setAttr ("srcset" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Style (k , format string , v ...any ) HTMLImg {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlImg ) Styles (s map [string ]string ) HTMLImg {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlImg ) TabIndex (v int ) HTMLImg {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlImg ) Title (format string , v ...any ) HTMLImg {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) UseMap (format string , v ...any ) HTMLImg {
e .setAttr ("usemap" , FormatString (format , v ...))
return e
}
func (e *htmlImg ) Width (v int ) HTMLImg {
e .setAttr ("width" , v )
return e
}
func (e *htmlImg ) On (event string , h EventHandler , options ...EventOption ) HTMLImg {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlImg ) OnAbort (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("abort" , h , options ...)
}
func (e *htmlImg ) OnBlur (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("blur" , h , options ...)
}
func (e *htmlImg ) OnCanPlay (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("canplay" , h , options ...)
}
func (e *htmlImg ) OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("canplaythrough" , h , options ...)
}
func (e *htmlImg ) OnChange (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("change" , h , options ...)
}
func (e *htmlImg ) OnClick (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("click" , h , options ...)
}
func (e *htmlImg ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlImg ) OnCopy (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("copy" , h , options ...)
}
func (e *htmlImg ) OnCueChange (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("cuechange" , h , options ...)
}
func (e *htmlImg ) OnCut (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("cut" , h , options ...)
}
func (e *htmlImg ) OnDblClick (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlImg ) OnDrag (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("drag" , h , options ...)
}
func (e *htmlImg ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("dragend" , h , options ...)
}
func (e *htmlImg ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlImg ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlImg ) OnDragOver (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("dragover" , h , options ...)
}
func (e *htmlImg ) OnDragStart (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlImg ) OnDrop (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("drop" , h , options ...)
}
func (e *htmlImg ) OnDurationChange (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("durationchange" , h , options ...)
}
func (e *htmlImg ) OnEmptied (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("emptied" , h , options ...)
}
func (e *htmlImg ) OnEnded (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("ended" , h , options ...)
}
func (e *htmlImg ) OnError (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("error" , h , options ...)
}
func (e *htmlImg ) OnFocus (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("focus" , h , options ...)
}
func (e *htmlImg ) OnInput (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("input" , h , options ...)
}
func (e *htmlImg ) OnInvalid (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("invalid" , h , options ...)
}
func (e *htmlImg ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("keydown" , h , options ...)
}
func (e *htmlImg ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("keypress" , h , options ...)
}
func (e *htmlImg ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("keyup" , h , options ...)
}
func (e *htmlImg ) OnLoad (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("load" , h , options ...)
}
func (e *htmlImg ) OnLoadStart (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("loadstart" , h , options ...)
}
func (e *htmlImg ) OnLoadedData (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("loadeddata" , h , options ...)
}
func (e *htmlImg ) OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("loadedmetadata" , h , options ...)
}
func (e *htmlImg ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlImg ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlImg ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlImg ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlImg ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlImg ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlImg ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlImg ) OnPaste (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("paste" , h , options ...)
}
func (e *htmlImg ) OnPause (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("pause" , h , options ...)
}
func (e *htmlImg ) OnPlay (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("play" , h , options ...)
}
func (e *htmlImg ) OnPlaying (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("playing" , h , options ...)
}
func (e *htmlImg ) OnProgress (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("progress" , h , options ...)
}
func (e *htmlImg ) OnRateChange (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("ratechange" , h , options ...)
}
func (e *htmlImg ) OnReset (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("reset" , h , options ...)
}
func (e *htmlImg ) OnScroll (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("scroll" , h , options ...)
}
func (e *htmlImg ) OnSearch (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("search" , h , options ...)
}
func (e *htmlImg ) OnSeeked (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("seeked" , h , options ...)
}
func (e *htmlImg ) OnSeeking (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("seeking" , h , options ...)
}
func (e *htmlImg ) OnSelect (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("select" , h , options ...)
}
func (e *htmlImg ) OnStalled (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("stalled" , h , options ...)
}
func (e *htmlImg ) OnSubmit (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("submit" , h , options ...)
}
func (e *htmlImg ) OnSuspend (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("suspend" , h , options ...)
}
func (e *htmlImg ) OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("timeupdate" , h , options ...)
}
func (e *htmlImg ) OnVolumeChange (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("volumechange" , h , options ...)
}
func (e *htmlImg ) OnWaiting (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("waiting" , h , options ...)
}
func (e *htmlImg ) OnWheel (h EventHandler , options ...EventOption ) HTMLImg {
return e .On ("wheel" , h , options ...)
}
func (e *htmlImg ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlImg ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlImg ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlImg ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlImg ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlImg ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLInput interface {
HTML
Accept (format string , v ...any ) HTMLInput
AccessKey (format string , v ...any ) HTMLInput
Alt (format string , v ...any ) HTMLInput
Aria (k string , v any ) HTMLInput
Attr (n string , v any ) HTMLInput
AutoComplete (v bool ) HTMLInput
AutoFocus (v bool ) HTMLInput
Capture (format string , v ...any ) HTMLInput
Checked (v bool ) HTMLInput
Class (v ...string ) HTMLInput
ContentEditable (v bool ) HTMLInput
DataSet (k string , v any ) HTMLInput
DataSets (ds map [string ]any ) HTMLInput
Dir (format string , v ...any ) HTMLInput
DirName (format string , v ...any ) HTMLInput
Disabled (v bool ) HTMLInput
Draggable (v bool ) HTMLInput
Form (format string , v ...any ) HTMLInput
FormAction (format string , v ...any ) HTMLInput
FormEncType (format string , v ...any ) HTMLInput
FormMethod (format string , v ...any ) HTMLInput
FormNoValidate (v bool ) HTMLInput
FormTarget (format string , v ...any ) HTMLInput
Height (v int ) HTMLInput
Hidden (v bool ) HTMLInput
ID (format string , v ...any ) HTMLInput
Lang (format string , v ...any ) HTMLInput
List (format string , v ...any ) HTMLInput
Max (v any ) HTMLInput
MaxLength (v int ) HTMLInput
Min (v any ) HTMLInput
Multiple (v bool ) HTMLInput
Name (format string , v ...any ) HTMLInput
Pattern (format string , v ...any ) HTMLInput
Placeholder (format string , v ...any ) HTMLInput
ReadOnly (v bool ) HTMLInput
Required (v bool ) HTMLInput
Role (format string , v ...any ) HTMLInput
Size (v int ) HTMLInput
Spellcheck (v bool ) HTMLInput
Src (format string , v ...any ) HTMLInput
Step (v float64 ) HTMLInput
Style (k, format string , v ...any ) HTMLInput
Styles (s map [string ]string ) HTMLInput
TabIndex (v int ) HTMLInput
Title (format string , v ...any ) HTMLInput
Type (format string , v ...any ) HTMLInput
Value (v any ) HTMLInput
Width (v int ) HTMLInput
On (event string , h EventHandler , options ...EventOption ) HTMLInput
OnBlur (h EventHandler , options ...EventOption ) HTMLInput
OnChange (h EventHandler , options ...EventOption ) HTMLInput
OnClick (h EventHandler , options ...EventOption ) HTMLInput
OnContextMenu (h EventHandler , options ...EventOption ) HTMLInput
OnCopy (h EventHandler , options ...EventOption ) HTMLInput
OnCut (h EventHandler , options ...EventOption ) HTMLInput
OnDblClick (h EventHandler , options ...EventOption ) HTMLInput
OnDrag (h EventHandler , options ...EventOption ) HTMLInput
OnDragEnd (h EventHandler , options ...EventOption ) HTMLInput
OnDragEnter (h EventHandler , options ...EventOption ) HTMLInput
OnDragLeave (h EventHandler , options ...EventOption ) HTMLInput
OnDragOver (h EventHandler , options ...EventOption ) HTMLInput
OnDragStart (h EventHandler , options ...EventOption ) HTMLInput
OnDrop (h EventHandler , options ...EventOption ) HTMLInput
OnFocus (h EventHandler , options ...EventOption ) HTMLInput
OnInput (h EventHandler , options ...EventOption ) HTMLInput
OnInvalid (h EventHandler , options ...EventOption ) HTMLInput
OnKeyDown (h EventHandler , options ...EventOption ) HTMLInput
OnKeyPress (h EventHandler , options ...EventOption ) HTMLInput
OnKeyUp (h EventHandler , options ...EventOption ) HTMLInput
OnLoad (h EventHandler , options ...EventOption ) HTMLInput
OnMouseDown (h EventHandler , options ...EventOption ) HTMLInput
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLInput
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLInput
OnMouseMove (h EventHandler , options ...EventOption ) HTMLInput
OnMouseOut (h EventHandler , options ...EventOption ) HTMLInput
OnMouseOver (h EventHandler , options ...EventOption ) HTMLInput
OnMouseUp (h EventHandler , options ...EventOption ) HTMLInput
OnPaste (h EventHandler , options ...EventOption ) HTMLInput
OnReset (h EventHandler , options ...EventOption ) HTMLInput
OnScroll (h EventHandler , options ...EventOption ) HTMLInput
OnSearch (h EventHandler , options ...EventOption ) HTMLInput
OnSelect (h EventHandler , options ...EventOption ) HTMLInput
OnSubmit (h EventHandler , options ...EventOption ) HTMLInput
OnWheel (h EventHandler , options ...EventOption ) HTMLInput
}
func Input () HTMLInput {
e := &htmlInput {
htmlElement : htmlElement {
tag : "input" ,
isSelfClosing : true ,
},
}
return e
}
type htmlInput struct {
htmlElement
}
func (e *htmlInput ) Accept (format string , v ...any ) HTMLInput {
e .setAttr ("accept" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) AccessKey (format string , v ...any ) HTMLInput {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Alt (format string , v ...any ) HTMLInput {
e .setAttr ("alt" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Aria (k string , v any ) HTMLInput {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlInput ) Attr (n string , v any ) HTMLInput {
e .setAttr (n , v )
return e
}
func (e *htmlInput ) AutoComplete (v bool ) HTMLInput {
s := "off"
if v {
s = "on"
}
e .setAttr ("autocomplete" , s )
return e
}
func (e *htmlInput ) AutoFocus (v bool ) HTMLInput {
e .setAttr ("autofocus" , v )
return e
}
func (e *htmlInput ) Capture (format string , v ...any ) HTMLInput {
e .setAttr ("capture" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Checked (v bool ) HTMLInput {
e .setAttr ("checked" , v )
return e
}
func (e *htmlInput ) Class (v ...string ) HTMLInput {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlInput ) ContentEditable (v bool ) HTMLInput {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlInput ) DataSet (k string , v any ) HTMLInput {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlInput ) DataSets (ds map [string ]any ) HTMLInput {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlInput ) Dir (format string , v ...any ) HTMLInput {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) DirName (format string , v ...any ) HTMLInput {
e .setAttr ("dirname" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Disabled (v bool ) HTMLInput {
e .setAttr ("disabled" , v )
return e
}
func (e *htmlInput ) Draggable (v bool ) HTMLInput {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlInput ) Form (format string , v ...any ) HTMLInput {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) FormAction (format string , v ...any ) HTMLInput {
e .setAttr ("formaction" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) FormEncType (format string , v ...any ) HTMLInput {
e .setAttr ("formenctype" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) FormMethod (format string , v ...any ) HTMLInput {
e .setAttr ("formmethod" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) FormNoValidate (v bool ) HTMLInput {
e .setAttr ("formnovalidate" , v )
return e
}
func (e *htmlInput ) FormTarget (format string , v ...any ) HTMLInput {
e .setAttr ("formtarget" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Height (v int ) HTMLInput {
e .setAttr ("height" , v )
return e
}
func (e *htmlInput ) Hidden (v bool ) HTMLInput {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlInput ) ID (format string , v ...any ) HTMLInput {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Lang (format string , v ...any ) HTMLInput {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) List (format string , v ...any ) HTMLInput {
e .setAttr ("list" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Max (v any ) HTMLInput {
e .setAttr ("max" , v )
return e
}
func (e *htmlInput ) MaxLength (v int ) HTMLInput {
e .setAttr ("maxlength" , v )
return e
}
func (e *htmlInput ) Min (v any ) HTMLInput {
e .setAttr ("min" , v )
return e
}
func (e *htmlInput ) Multiple (v bool ) HTMLInput {
e .setAttr ("multiple" , v )
return e
}
func (e *htmlInput ) Name (format string , v ...any ) HTMLInput {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Pattern (format string , v ...any ) HTMLInput {
e .setAttr ("pattern" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Placeholder (format string , v ...any ) HTMLInput {
e .setAttr ("placeholder" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) ReadOnly (v bool ) HTMLInput {
e .setAttr ("readonly" , v )
return e
}
func (e *htmlInput ) Required (v bool ) HTMLInput {
e .setAttr ("required" , v )
return e
}
func (e *htmlInput ) Role (format string , v ...any ) HTMLInput {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Size (v int ) HTMLInput {
e .setAttr ("size" , v )
return e
}
func (e *htmlInput ) Spellcheck (v bool ) HTMLInput {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlInput ) Src (format string , v ...any ) HTMLInput {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Step (v float64 ) HTMLInput {
e .setAttr ("step" , v )
return e
}
func (e *htmlInput ) Style (k , format string , v ...any ) HTMLInput {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlInput ) Styles (s map [string ]string ) HTMLInput {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlInput ) TabIndex (v int ) HTMLInput {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlInput ) Title (format string , v ...any ) HTMLInput {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Type (format string , v ...any ) HTMLInput {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlInput ) Value (v any ) HTMLInput {
e .setAttr ("value" , v )
return e
}
func (e *htmlInput ) Width (v int ) HTMLInput {
e .setAttr ("width" , v )
return e
}
func (e *htmlInput ) On (event string , h EventHandler , options ...EventOption ) HTMLInput {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlInput ) OnBlur (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("blur" , h , options ...)
}
func (e *htmlInput ) OnChange (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("change" , h , options ...)
}
func (e *htmlInput ) OnClick (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("click" , h , options ...)
}
func (e *htmlInput ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlInput ) OnCopy (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("copy" , h , options ...)
}
func (e *htmlInput ) OnCut (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("cut" , h , options ...)
}
func (e *htmlInput ) OnDblClick (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlInput ) OnDrag (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("drag" , h , options ...)
}
func (e *htmlInput ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("dragend" , h , options ...)
}
func (e *htmlInput ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlInput ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlInput ) OnDragOver (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("dragover" , h , options ...)
}
func (e *htmlInput ) OnDragStart (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlInput ) OnDrop (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("drop" , h , options ...)
}
func (e *htmlInput ) OnFocus (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("focus" , h , options ...)
}
func (e *htmlInput ) OnInput (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("input" , h , options ...)
}
func (e *htmlInput ) OnInvalid (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("invalid" , h , options ...)
}
func (e *htmlInput ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("keydown" , h , options ...)
}
func (e *htmlInput ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("keypress" , h , options ...)
}
func (e *htmlInput ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("keyup" , h , options ...)
}
func (e *htmlInput ) OnLoad (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("load" , h , options ...)
}
func (e *htmlInput ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlInput ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlInput ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlInput ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlInput ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlInput ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlInput ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlInput ) OnPaste (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("paste" , h , options ...)
}
func (e *htmlInput ) OnReset (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("reset" , h , options ...)
}
func (e *htmlInput ) OnScroll (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("scroll" , h , options ...)
}
func (e *htmlInput ) OnSearch (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("search" , h , options ...)
}
func (e *htmlInput ) OnSelect (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("select" , h , options ...)
}
func (e *htmlInput ) OnSubmit (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("submit" , h , options ...)
}
func (e *htmlInput ) OnWheel (h EventHandler , options ...EventOption ) HTMLInput {
return e .On ("wheel" , h , options ...)
}
func (e *htmlInput ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlInput ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlInput ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlInput ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlInput ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlInput ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLIns interface {
HTML
Body (elems ...UI ) HTMLIns
Text (v any ) HTMLIns
Textf (format string , v ...any ) HTMLIns
AccessKey (format string , v ...any ) HTMLIns
Aria (k string , v any ) HTMLIns
Attr (n string , v any ) HTMLIns
Class (v ...string ) HTMLIns
ContentEditable (v bool ) HTMLIns
DataSet (k string , v any ) HTMLIns
DataSets (ds map [string ]any ) HTMLIns
Dir (format string , v ...any ) HTMLIns
Draggable (v bool ) HTMLIns
Hidden (v bool ) HTMLIns
ID (format string , v ...any ) HTMLIns
Lang (format string , v ...any ) HTMLIns
Role (format string , v ...any ) HTMLIns
Spellcheck (v bool ) HTMLIns
Style (k, format string , v ...any ) HTMLIns
Styles (s map [string ]string ) HTMLIns
TabIndex (v int ) HTMLIns
Title (format string , v ...any ) HTMLIns
On (event string , h EventHandler , options ...EventOption ) HTMLIns
OnBlur (h EventHandler , options ...EventOption ) HTMLIns
OnChange (h EventHandler , options ...EventOption ) HTMLIns
OnClick (h EventHandler , options ...EventOption ) HTMLIns
OnContextMenu (h EventHandler , options ...EventOption ) HTMLIns
OnCopy (h EventHandler , options ...EventOption ) HTMLIns
OnCut (h EventHandler , options ...EventOption ) HTMLIns
OnDblClick (h EventHandler , options ...EventOption ) HTMLIns
OnDrag (h EventHandler , options ...EventOption ) HTMLIns
OnDragEnd (h EventHandler , options ...EventOption ) HTMLIns
OnDragEnter (h EventHandler , options ...EventOption ) HTMLIns
OnDragLeave (h EventHandler , options ...EventOption ) HTMLIns
OnDragOver (h EventHandler , options ...EventOption ) HTMLIns
OnDragStart (h EventHandler , options ...EventOption ) HTMLIns
OnDrop (h EventHandler , options ...EventOption ) HTMLIns
OnFocus (h EventHandler , options ...EventOption ) HTMLIns
OnInput (h EventHandler , options ...EventOption ) HTMLIns
OnInvalid (h EventHandler , options ...EventOption ) HTMLIns
OnKeyDown (h EventHandler , options ...EventOption ) HTMLIns
OnKeyPress (h EventHandler , options ...EventOption ) HTMLIns
OnKeyUp (h EventHandler , options ...EventOption ) HTMLIns
OnMouseDown (h EventHandler , options ...EventOption ) HTMLIns
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLIns
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLIns
OnMouseMove (h EventHandler , options ...EventOption ) HTMLIns
OnMouseOut (h EventHandler , options ...EventOption ) HTMLIns
OnMouseOver (h EventHandler , options ...EventOption ) HTMLIns
OnMouseUp (h EventHandler , options ...EventOption ) HTMLIns
OnPaste (h EventHandler , options ...EventOption ) HTMLIns
OnReset (h EventHandler , options ...EventOption ) HTMLIns
OnScroll (h EventHandler , options ...EventOption ) HTMLIns
OnSearch (h EventHandler , options ...EventOption ) HTMLIns
OnSelect (h EventHandler , options ...EventOption ) HTMLIns
OnSubmit (h EventHandler , options ...EventOption ) HTMLIns
OnWheel (h EventHandler , options ...EventOption ) HTMLIns
}
func Ins () HTMLIns {
e := &htmlIns {
htmlElement : htmlElement {
tag : "ins" ,
isSelfClosing : false ,
},
}
return e
}
type htmlIns struct {
htmlElement
}
func (e *htmlIns ) Body (v ...UI ) HTMLIns {
return e .setBody (FilterUIElems (v ...)).(*htmlIns )
}
func (e *htmlIns ) Text (v any ) HTMLIns {
return e .Body (Text (v ))
}
func (e *htmlIns ) Textf (format string , v ...any ) HTMLIns {
return e .Body (Textf (format , v ...))
}
func (e *htmlIns ) AccessKey (format string , v ...any ) HTMLIns {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlIns ) Aria (k string , v any ) HTMLIns {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlIns ) Attr (n string , v any ) HTMLIns {
e .setAttr (n , v )
return e
}
func (e *htmlIns ) Class (v ...string ) HTMLIns {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlIns ) ContentEditable (v bool ) HTMLIns {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlIns ) DataSet (k string , v any ) HTMLIns {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlIns ) DataSets (ds map [string ]any ) HTMLIns {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlIns ) Dir (format string , v ...any ) HTMLIns {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlIns ) Draggable (v bool ) HTMLIns {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlIns ) Hidden (v bool ) HTMLIns {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlIns ) ID (format string , v ...any ) HTMLIns {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlIns ) Lang (format string , v ...any ) HTMLIns {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlIns ) Role (format string , v ...any ) HTMLIns {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlIns ) Spellcheck (v bool ) HTMLIns {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlIns ) Style (k , format string , v ...any ) HTMLIns {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlIns ) Styles (s map [string ]string ) HTMLIns {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlIns ) TabIndex (v int ) HTMLIns {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlIns ) Title (format string , v ...any ) HTMLIns {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlIns ) On (event string , h EventHandler , options ...EventOption ) HTMLIns {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlIns ) OnBlur (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("blur" , h , options ...)
}
func (e *htmlIns ) OnChange (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("change" , h , options ...)
}
func (e *htmlIns ) OnClick (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("click" , h , options ...)
}
func (e *htmlIns ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlIns ) OnCopy (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("copy" , h , options ...)
}
func (e *htmlIns ) OnCut (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("cut" , h , options ...)
}
func (e *htmlIns ) OnDblClick (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlIns ) OnDrag (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("drag" , h , options ...)
}
func (e *htmlIns ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("dragend" , h , options ...)
}
func (e *htmlIns ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlIns ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlIns ) OnDragOver (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("dragover" , h , options ...)
}
func (e *htmlIns ) OnDragStart (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlIns ) OnDrop (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("drop" , h , options ...)
}
func (e *htmlIns ) OnFocus (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("focus" , h , options ...)
}
func (e *htmlIns ) OnInput (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("input" , h , options ...)
}
func (e *htmlIns ) OnInvalid (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("invalid" , h , options ...)
}
func (e *htmlIns ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("keydown" , h , options ...)
}
func (e *htmlIns ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("keypress" , h , options ...)
}
func (e *htmlIns ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("keyup" , h , options ...)
}
func (e *htmlIns ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlIns ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlIns ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlIns ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlIns ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlIns ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlIns ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlIns ) OnPaste (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("paste" , h , options ...)
}
func (e *htmlIns ) OnReset (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("reset" , h , options ...)
}
func (e *htmlIns ) OnScroll (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("scroll" , h , options ...)
}
func (e *htmlIns ) OnSearch (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("search" , h , options ...)
}
func (e *htmlIns ) OnSelect (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("select" , h , options ...)
}
func (e *htmlIns ) OnSubmit (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("submit" , h , options ...)
}
func (e *htmlIns ) OnWheel (h EventHandler , options ...EventOption ) HTMLIns {
return e .On ("wheel" , h , options ...)
}
func (e *htmlIns ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlIns ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlIns ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlIns ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlIns ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlIns ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLKbd interface {
HTML
Body (elems ...UI ) HTMLKbd
Text (v any ) HTMLKbd
Textf (format string , v ...any ) HTMLKbd
AccessKey (format string , v ...any ) HTMLKbd
Aria (k string , v any ) HTMLKbd
Attr (n string , v any ) HTMLKbd
Class (v ...string ) HTMLKbd
ContentEditable (v bool ) HTMLKbd
DataSet (k string , v any ) HTMLKbd
DataSets (ds map [string ]any ) HTMLKbd
Dir (format string , v ...any ) HTMLKbd
Draggable (v bool ) HTMLKbd
Hidden (v bool ) HTMLKbd
ID (format string , v ...any ) HTMLKbd
Lang (format string , v ...any ) HTMLKbd
Role (format string , v ...any ) HTMLKbd
Spellcheck (v bool ) HTMLKbd
Style (k, format string , v ...any ) HTMLKbd
Styles (s map [string ]string ) HTMLKbd
TabIndex (v int ) HTMLKbd
Title (format string , v ...any ) HTMLKbd
On (event string , h EventHandler , options ...EventOption ) HTMLKbd
OnBlur (h EventHandler , options ...EventOption ) HTMLKbd
OnChange (h EventHandler , options ...EventOption ) HTMLKbd
OnClick (h EventHandler , options ...EventOption ) HTMLKbd
OnContextMenu (h EventHandler , options ...EventOption ) HTMLKbd
OnCopy (h EventHandler , options ...EventOption ) HTMLKbd
OnCut (h EventHandler , options ...EventOption ) HTMLKbd
OnDblClick (h EventHandler , options ...EventOption ) HTMLKbd
OnDrag (h EventHandler , options ...EventOption ) HTMLKbd
OnDragEnd (h EventHandler , options ...EventOption ) HTMLKbd
OnDragEnter (h EventHandler , options ...EventOption ) HTMLKbd
OnDragLeave (h EventHandler , options ...EventOption ) HTMLKbd
OnDragOver (h EventHandler , options ...EventOption ) HTMLKbd
OnDragStart (h EventHandler , options ...EventOption ) HTMLKbd
OnDrop (h EventHandler , options ...EventOption ) HTMLKbd
OnFocus (h EventHandler , options ...EventOption ) HTMLKbd
OnInput (h EventHandler , options ...EventOption ) HTMLKbd
OnInvalid (h EventHandler , options ...EventOption ) HTMLKbd
OnKeyDown (h EventHandler , options ...EventOption ) HTMLKbd
OnKeyPress (h EventHandler , options ...EventOption ) HTMLKbd
OnKeyUp (h EventHandler , options ...EventOption ) HTMLKbd
OnMouseDown (h EventHandler , options ...EventOption ) HTMLKbd
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLKbd
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLKbd
OnMouseMove (h EventHandler , options ...EventOption ) HTMLKbd
OnMouseOut (h EventHandler , options ...EventOption ) HTMLKbd
OnMouseOver (h EventHandler , options ...EventOption ) HTMLKbd
OnMouseUp (h EventHandler , options ...EventOption ) HTMLKbd
OnPaste (h EventHandler , options ...EventOption ) HTMLKbd
OnReset (h EventHandler , options ...EventOption ) HTMLKbd
OnScroll (h EventHandler , options ...EventOption ) HTMLKbd
OnSearch (h EventHandler , options ...EventOption ) HTMLKbd
OnSelect (h EventHandler , options ...EventOption ) HTMLKbd
OnSubmit (h EventHandler , options ...EventOption ) HTMLKbd
OnWheel (h EventHandler , options ...EventOption ) HTMLKbd
}
func Kbd () HTMLKbd {
e := &htmlKbd {
htmlElement : htmlElement {
tag : "kbd" ,
isSelfClosing : false ,
},
}
return e
}
type htmlKbd struct {
htmlElement
}
func (e *htmlKbd ) Body (v ...UI ) HTMLKbd {
return e .setBody (FilterUIElems (v ...)).(*htmlKbd )
}
func (e *htmlKbd ) Text (v any ) HTMLKbd {
return e .Body (Text (v ))
}
func (e *htmlKbd ) Textf (format string , v ...any ) HTMLKbd {
return e .Body (Textf (format , v ...))
}
func (e *htmlKbd ) AccessKey (format string , v ...any ) HTMLKbd {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlKbd ) Aria (k string , v any ) HTMLKbd {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlKbd ) Attr (n string , v any ) HTMLKbd {
e .setAttr (n , v )
return e
}
func (e *htmlKbd ) Class (v ...string ) HTMLKbd {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlKbd ) ContentEditable (v bool ) HTMLKbd {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlKbd ) DataSet (k string , v any ) HTMLKbd {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlKbd ) DataSets (ds map [string ]any ) HTMLKbd {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlKbd ) Dir (format string , v ...any ) HTMLKbd {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlKbd ) Draggable (v bool ) HTMLKbd {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlKbd ) Hidden (v bool ) HTMLKbd {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlKbd ) ID (format string , v ...any ) HTMLKbd {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlKbd ) Lang (format string , v ...any ) HTMLKbd {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlKbd ) Role (format string , v ...any ) HTMLKbd {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlKbd ) Spellcheck (v bool ) HTMLKbd {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlKbd ) Style (k , format string , v ...any ) HTMLKbd {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlKbd ) Styles (s map [string ]string ) HTMLKbd {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlKbd ) TabIndex (v int ) HTMLKbd {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlKbd ) Title (format string , v ...any ) HTMLKbd {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlKbd ) On (event string , h EventHandler , options ...EventOption ) HTMLKbd {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlKbd ) OnBlur (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("blur" , h , options ...)
}
func (e *htmlKbd ) OnChange (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("change" , h , options ...)
}
func (e *htmlKbd ) OnClick (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("click" , h , options ...)
}
func (e *htmlKbd ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlKbd ) OnCopy (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("copy" , h , options ...)
}
func (e *htmlKbd ) OnCut (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("cut" , h , options ...)
}
func (e *htmlKbd ) OnDblClick (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlKbd ) OnDrag (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("drag" , h , options ...)
}
func (e *htmlKbd ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("dragend" , h , options ...)
}
func (e *htmlKbd ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlKbd ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlKbd ) OnDragOver (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("dragover" , h , options ...)
}
func (e *htmlKbd ) OnDragStart (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlKbd ) OnDrop (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("drop" , h , options ...)
}
func (e *htmlKbd ) OnFocus (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("focus" , h , options ...)
}
func (e *htmlKbd ) OnInput (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("input" , h , options ...)
}
func (e *htmlKbd ) OnInvalid (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("invalid" , h , options ...)
}
func (e *htmlKbd ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("keydown" , h , options ...)
}
func (e *htmlKbd ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("keypress" , h , options ...)
}
func (e *htmlKbd ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("keyup" , h , options ...)
}
func (e *htmlKbd ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlKbd ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlKbd ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlKbd ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlKbd ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlKbd ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlKbd ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlKbd ) OnPaste (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("paste" , h , options ...)
}
func (e *htmlKbd ) OnReset (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("reset" , h , options ...)
}
func (e *htmlKbd ) OnScroll (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("scroll" , h , options ...)
}
func (e *htmlKbd ) OnSearch (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("search" , h , options ...)
}
func (e *htmlKbd ) OnSelect (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("select" , h , options ...)
}
func (e *htmlKbd ) OnSubmit (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("submit" , h , options ...)
}
func (e *htmlKbd ) OnWheel (h EventHandler , options ...EventOption ) HTMLKbd {
return e .On ("wheel" , h , options ...)
}
func (e *htmlKbd ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlKbd ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlKbd ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlKbd ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlKbd ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlKbd ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLLabel interface {
HTML
Body (elems ...UI ) HTMLLabel
Text (v any ) HTMLLabel
Textf (format string , v ...any ) HTMLLabel
AccessKey (format string , v ...any ) HTMLLabel
Aria (k string , v any ) HTMLLabel
Attr (n string , v any ) HTMLLabel
Class (v ...string ) HTMLLabel
ContentEditable (v bool ) HTMLLabel
DataSet (k string , v any ) HTMLLabel
DataSets (ds map [string ]any ) HTMLLabel
Dir (format string , v ...any ) HTMLLabel
Draggable (v bool ) HTMLLabel
For (format string , v ...any ) HTMLLabel
Form (format string , v ...any ) HTMLLabel
Hidden (v bool ) HTMLLabel
ID (format string , v ...any ) HTMLLabel
Lang (format string , v ...any ) HTMLLabel
Role (format string , v ...any ) HTMLLabel
Spellcheck (v bool ) HTMLLabel
Style (k, format string , v ...any ) HTMLLabel
Styles (s map [string ]string ) HTMLLabel
TabIndex (v int ) HTMLLabel
Title (format string , v ...any ) HTMLLabel
On (event string , h EventHandler , options ...EventOption ) HTMLLabel
OnBlur (h EventHandler , options ...EventOption ) HTMLLabel
OnChange (h EventHandler , options ...EventOption ) HTMLLabel
OnClick (h EventHandler , options ...EventOption ) HTMLLabel
OnContextMenu (h EventHandler , options ...EventOption ) HTMLLabel
OnCopy (h EventHandler , options ...EventOption ) HTMLLabel
OnCut (h EventHandler , options ...EventOption ) HTMLLabel
OnDblClick (h EventHandler , options ...EventOption ) HTMLLabel
OnDrag (h EventHandler , options ...EventOption ) HTMLLabel
OnDragEnd (h EventHandler , options ...EventOption ) HTMLLabel
OnDragEnter (h EventHandler , options ...EventOption ) HTMLLabel
OnDragLeave (h EventHandler , options ...EventOption ) HTMLLabel
OnDragOver (h EventHandler , options ...EventOption ) HTMLLabel
OnDragStart (h EventHandler , options ...EventOption ) HTMLLabel
OnDrop (h EventHandler , options ...EventOption ) HTMLLabel
OnFocus (h EventHandler , options ...EventOption ) HTMLLabel
OnInput (h EventHandler , options ...EventOption ) HTMLLabel
OnInvalid (h EventHandler , options ...EventOption ) HTMLLabel
OnKeyDown (h EventHandler , options ...EventOption ) HTMLLabel
OnKeyPress (h EventHandler , options ...EventOption ) HTMLLabel
OnKeyUp (h EventHandler , options ...EventOption ) HTMLLabel
OnMouseDown (h EventHandler , options ...EventOption ) HTMLLabel
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLabel
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLabel
OnMouseMove (h EventHandler , options ...EventOption ) HTMLLabel
OnMouseOut (h EventHandler , options ...EventOption ) HTMLLabel
OnMouseOver (h EventHandler , options ...EventOption ) HTMLLabel
OnMouseUp (h EventHandler , options ...EventOption ) HTMLLabel
OnPaste (h EventHandler , options ...EventOption ) HTMLLabel
OnReset (h EventHandler , options ...EventOption ) HTMLLabel
OnScroll (h EventHandler , options ...EventOption ) HTMLLabel
OnSearch (h EventHandler , options ...EventOption ) HTMLLabel
OnSelect (h EventHandler , options ...EventOption ) HTMLLabel
OnSubmit (h EventHandler , options ...EventOption ) HTMLLabel
OnWheel (h EventHandler , options ...EventOption ) HTMLLabel
}
func Label () HTMLLabel {
e := &htmlLabel {
htmlElement : htmlElement {
tag : "label" ,
isSelfClosing : false ,
},
}
return e
}
type htmlLabel struct {
htmlElement
}
func (e *htmlLabel ) Body (v ...UI ) HTMLLabel {
return e .setBody (FilterUIElems (v ...)).(*htmlLabel )
}
func (e *htmlLabel ) Text (v any ) HTMLLabel {
return e .Body (Text (v ))
}
func (e *htmlLabel ) Textf (format string , v ...any ) HTMLLabel {
return e .Body (Textf (format , v ...))
}
func (e *htmlLabel ) AccessKey (format string , v ...any ) HTMLLabel {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Aria (k string , v any ) HTMLLabel {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLabel ) Attr (n string , v any ) HTMLLabel {
e .setAttr (n , v )
return e
}
func (e *htmlLabel ) Class (v ...string ) HTMLLabel {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlLabel ) ContentEditable (v bool ) HTMLLabel {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlLabel ) DataSet (k string , v any ) HTMLLabel {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLabel ) DataSets (ds map [string ]any ) HTMLLabel {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlLabel ) Dir (format string , v ...any ) HTMLLabel {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Draggable (v bool ) HTMLLabel {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlLabel ) For (format string , v ...any ) HTMLLabel {
e .setAttr ("for" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Form (format string , v ...any ) HTMLLabel {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Hidden (v bool ) HTMLLabel {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlLabel ) ID (format string , v ...any ) HTMLLabel {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Lang (format string , v ...any ) HTMLLabel {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Role (format string , v ...any ) HTMLLabel {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Spellcheck (v bool ) HTMLLabel {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlLabel ) Style (k , format string , v ...any ) HTMLLabel {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlLabel ) Styles (s map [string ]string ) HTMLLabel {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlLabel ) TabIndex (v int ) HTMLLabel {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlLabel ) Title (format string , v ...any ) HTMLLabel {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlLabel ) On (event string , h EventHandler , options ...EventOption ) HTMLLabel {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlLabel ) OnBlur (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("blur" , h , options ...)
}
func (e *htmlLabel ) OnChange (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("change" , h , options ...)
}
func (e *htmlLabel ) OnClick (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("click" , h , options ...)
}
func (e *htmlLabel ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlLabel ) OnCopy (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("copy" , h , options ...)
}
func (e *htmlLabel ) OnCut (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("cut" , h , options ...)
}
func (e *htmlLabel ) OnDblClick (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlLabel ) OnDrag (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("drag" , h , options ...)
}
func (e *htmlLabel ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("dragend" , h , options ...)
}
func (e *htmlLabel ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlLabel ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlLabel ) OnDragOver (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("dragover" , h , options ...)
}
func (e *htmlLabel ) OnDragStart (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlLabel ) OnDrop (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("drop" , h , options ...)
}
func (e *htmlLabel ) OnFocus (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("focus" , h , options ...)
}
func (e *htmlLabel ) OnInput (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("input" , h , options ...)
}
func (e *htmlLabel ) OnInvalid (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("invalid" , h , options ...)
}
func (e *htmlLabel ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("keydown" , h , options ...)
}
func (e *htmlLabel ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("keypress" , h , options ...)
}
func (e *htmlLabel ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("keyup" , h , options ...)
}
func (e *htmlLabel ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlLabel ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlLabel ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlLabel ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlLabel ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlLabel ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlLabel ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlLabel ) OnPaste (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("paste" , h , options ...)
}
func (e *htmlLabel ) OnReset (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("reset" , h , options ...)
}
func (e *htmlLabel ) OnScroll (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("scroll" , h , options ...)
}
func (e *htmlLabel ) OnSearch (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("search" , h , options ...)
}
func (e *htmlLabel ) OnSelect (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("select" , h , options ...)
}
func (e *htmlLabel ) OnSubmit (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("submit" , h , options ...)
}
func (e *htmlLabel ) OnWheel (h EventHandler , options ...EventOption ) HTMLLabel {
return e .On ("wheel" , h , options ...)
}
func (e *htmlLabel ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlLabel ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlLabel ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlLabel ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlLabel ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlLabel ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLLegend interface {
HTML
Body (elems ...UI ) HTMLLegend
Text (v any ) HTMLLegend
Textf (format string , v ...any ) HTMLLegend
AccessKey (format string , v ...any ) HTMLLegend
Aria (k string , v any ) HTMLLegend
Attr (n string , v any ) HTMLLegend
Class (v ...string ) HTMLLegend
ContentEditable (v bool ) HTMLLegend
DataSet (k string , v any ) HTMLLegend
DataSets (ds map [string ]any ) HTMLLegend
Dir (format string , v ...any ) HTMLLegend
Draggable (v bool ) HTMLLegend
Hidden (v bool ) HTMLLegend
ID (format string , v ...any ) HTMLLegend
Lang (format string , v ...any ) HTMLLegend
Role (format string , v ...any ) HTMLLegend
Spellcheck (v bool ) HTMLLegend
Style (k, format string , v ...any ) HTMLLegend
Styles (s map [string ]string ) HTMLLegend
TabIndex (v int ) HTMLLegend
Title (format string , v ...any ) HTMLLegend
On (event string , h EventHandler , options ...EventOption ) HTMLLegend
OnBlur (h EventHandler , options ...EventOption ) HTMLLegend
OnChange (h EventHandler , options ...EventOption ) HTMLLegend
OnClick (h EventHandler , options ...EventOption ) HTMLLegend
OnContextMenu (h EventHandler , options ...EventOption ) HTMLLegend
OnCopy (h EventHandler , options ...EventOption ) HTMLLegend
OnCut (h EventHandler , options ...EventOption ) HTMLLegend
OnDblClick (h EventHandler , options ...EventOption ) HTMLLegend
OnDrag (h EventHandler , options ...EventOption ) HTMLLegend
OnDragEnd (h EventHandler , options ...EventOption ) HTMLLegend
OnDragEnter (h EventHandler , options ...EventOption ) HTMLLegend
OnDragLeave (h EventHandler , options ...EventOption ) HTMLLegend
OnDragOver (h EventHandler , options ...EventOption ) HTMLLegend
OnDragStart (h EventHandler , options ...EventOption ) HTMLLegend
OnDrop (h EventHandler , options ...EventOption ) HTMLLegend
OnFocus (h EventHandler , options ...EventOption ) HTMLLegend
OnInput (h EventHandler , options ...EventOption ) HTMLLegend
OnInvalid (h EventHandler , options ...EventOption ) HTMLLegend
OnKeyDown (h EventHandler , options ...EventOption ) HTMLLegend
OnKeyPress (h EventHandler , options ...EventOption ) HTMLLegend
OnKeyUp (h EventHandler , options ...EventOption ) HTMLLegend
OnMouseDown (h EventHandler , options ...EventOption ) HTMLLegend
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLegend
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLegend
OnMouseMove (h EventHandler , options ...EventOption ) HTMLLegend
OnMouseOut (h EventHandler , options ...EventOption ) HTMLLegend
OnMouseOver (h EventHandler , options ...EventOption ) HTMLLegend
OnMouseUp (h EventHandler , options ...EventOption ) HTMLLegend
OnPaste (h EventHandler , options ...EventOption ) HTMLLegend
OnReset (h EventHandler , options ...EventOption ) HTMLLegend
OnScroll (h EventHandler , options ...EventOption ) HTMLLegend
OnSearch (h EventHandler , options ...EventOption ) HTMLLegend
OnSelect (h EventHandler , options ...EventOption ) HTMLLegend
OnSubmit (h EventHandler , options ...EventOption ) HTMLLegend
OnWheel (h EventHandler , options ...EventOption ) HTMLLegend
}
func Legend () HTMLLegend {
e := &htmlLegend {
htmlElement : htmlElement {
tag : "legend" ,
isSelfClosing : false ,
},
}
return e
}
type htmlLegend struct {
htmlElement
}
func (e *htmlLegend ) Body (v ...UI ) HTMLLegend {
return e .setBody (FilterUIElems (v ...)).(*htmlLegend )
}
func (e *htmlLegend ) Text (v any ) HTMLLegend {
return e .Body (Text (v ))
}
func (e *htmlLegend ) Textf (format string , v ...any ) HTMLLegend {
return e .Body (Textf (format , v ...))
}
func (e *htmlLegend ) AccessKey (format string , v ...any ) HTMLLegend {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlLegend ) Aria (k string , v any ) HTMLLegend {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLegend ) Attr (n string , v any ) HTMLLegend {
e .setAttr (n , v )
return e
}
func (e *htmlLegend ) Class (v ...string ) HTMLLegend {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlLegend ) ContentEditable (v bool ) HTMLLegend {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlLegend ) DataSet (k string , v any ) HTMLLegend {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLegend ) DataSets (ds map [string ]any ) HTMLLegend {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlLegend ) Dir (format string , v ...any ) HTMLLegend {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlLegend ) Draggable (v bool ) HTMLLegend {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlLegend ) Hidden (v bool ) HTMLLegend {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlLegend ) ID (format string , v ...any ) HTMLLegend {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlLegend ) Lang (format string , v ...any ) HTMLLegend {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlLegend ) Role (format string , v ...any ) HTMLLegend {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlLegend ) Spellcheck (v bool ) HTMLLegend {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlLegend ) Style (k , format string , v ...any ) HTMLLegend {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlLegend ) Styles (s map [string ]string ) HTMLLegend {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlLegend ) TabIndex (v int ) HTMLLegend {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlLegend ) Title (format string , v ...any ) HTMLLegend {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlLegend ) On (event string , h EventHandler , options ...EventOption ) HTMLLegend {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlLegend ) OnBlur (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("blur" , h , options ...)
}
func (e *htmlLegend ) OnChange (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("change" , h , options ...)
}
func (e *htmlLegend ) OnClick (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("click" , h , options ...)
}
func (e *htmlLegend ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlLegend ) OnCopy (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("copy" , h , options ...)
}
func (e *htmlLegend ) OnCut (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("cut" , h , options ...)
}
func (e *htmlLegend ) OnDblClick (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlLegend ) OnDrag (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("drag" , h , options ...)
}
func (e *htmlLegend ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("dragend" , h , options ...)
}
func (e *htmlLegend ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlLegend ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlLegend ) OnDragOver (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("dragover" , h , options ...)
}
func (e *htmlLegend ) OnDragStart (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlLegend ) OnDrop (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("drop" , h , options ...)
}
func (e *htmlLegend ) OnFocus (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("focus" , h , options ...)
}
func (e *htmlLegend ) OnInput (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("input" , h , options ...)
}
func (e *htmlLegend ) OnInvalid (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("invalid" , h , options ...)
}
func (e *htmlLegend ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("keydown" , h , options ...)
}
func (e *htmlLegend ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("keypress" , h , options ...)
}
func (e *htmlLegend ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("keyup" , h , options ...)
}
func (e *htmlLegend ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlLegend ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlLegend ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlLegend ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlLegend ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlLegend ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlLegend ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlLegend ) OnPaste (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("paste" , h , options ...)
}
func (e *htmlLegend ) OnReset (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("reset" , h , options ...)
}
func (e *htmlLegend ) OnScroll (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("scroll" , h , options ...)
}
func (e *htmlLegend ) OnSearch (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("search" , h , options ...)
}
func (e *htmlLegend ) OnSelect (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("select" , h , options ...)
}
func (e *htmlLegend ) OnSubmit (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("submit" , h , options ...)
}
func (e *htmlLegend ) OnWheel (h EventHandler , options ...EventOption ) HTMLLegend {
return e .On ("wheel" , h , options ...)
}
func (e *htmlLegend ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlLegend ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlLegend ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlLegend ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlLegend ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlLegend ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLLi interface {
HTML
Body (elems ...UI ) HTMLLi
Text (v any ) HTMLLi
Textf (format string , v ...any ) HTMLLi
AccessKey (format string , v ...any ) HTMLLi
Aria (k string , v any ) HTMLLi
Attr (n string , v any ) HTMLLi
Class (v ...string ) HTMLLi
ContentEditable (v bool ) HTMLLi
DataSet (k string , v any ) HTMLLi
DataSets (ds map [string ]any ) HTMLLi
Dir (format string , v ...any ) HTMLLi
Draggable (v bool ) HTMLLi
Hidden (v bool ) HTMLLi
ID (format string , v ...any ) HTMLLi
Lang (format string , v ...any ) HTMLLi
Role (format string , v ...any ) HTMLLi
Spellcheck (v bool ) HTMLLi
Style (k, format string , v ...any ) HTMLLi
Styles (s map [string ]string ) HTMLLi
TabIndex (v int ) HTMLLi
Title (format string , v ...any ) HTMLLi
Value (v any ) HTMLLi
On (event string , h EventHandler , options ...EventOption ) HTMLLi
OnBlur (h EventHandler , options ...EventOption ) HTMLLi
OnChange (h EventHandler , options ...EventOption ) HTMLLi
OnClick (h EventHandler , options ...EventOption ) HTMLLi
OnContextMenu (h EventHandler , options ...EventOption ) HTMLLi
OnCopy (h EventHandler , options ...EventOption ) HTMLLi
OnCut (h EventHandler , options ...EventOption ) HTMLLi
OnDblClick (h EventHandler , options ...EventOption ) HTMLLi
OnDrag (h EventHandler , options ...EventOption ) HTMLLi
OnDragEnd (h EventHandler , options ...EventOption ) HTMLLi
OnDragEnter (h EventHandler , options ...EventOption ) HTMLLi
OnDragLeave (h EventHandler , options ...EventOption ) HTMLLi
OnDragOver (h EventHandler , options ...EventOption ) HTMLLi
OnDragStart (h EventHandler , options ...EventOption ) HTMLLi
OnDrop (h EventHandler , options ...EventOption ) HTMLLi
OnFocus (h EventHandler , options ...EventOption ) HTMLLi
OnInput (h EventHandler , options ...EventOption ) HTMLLi
OnInvalid (h EventHandler , options ...EventOption ) HTMLLi
OnKeyDown (h EventHandler , options ...EventOption ) HTMLLi
OnKeyPress (h EventHandler , options ...EventOption ) HTMLLi
OnKeyUp (h EventHandler , options ...EventOption ) HTMLLi
OnMouseDown (h EventHandler , options ...EventOption ) HTMLLi
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLi
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLi
OnMouseMove (h EventHandler , options ...EventOption ) HTMLLi
OnMouseOut (h EventHandler , options ...EventOption ) HTMLLi
OnMouseOver (h EventHandler , options ...EventOption ) HTMLLi
OnMouseUp (h EventHandler , options ...EventOption ) HTMLLi
OnPaste (h EventHandler , options ...EventOption ) HTMLLi
OnReset (h EventHandler , options ...EventOption ) HTMLLi
OnScroll (h EventHandler , options ...EventOption ) HTMLLi
OnSearch (h EventHandler , options ...EventOption ) HTMLLi
OnSelect (h EventHandler , options ...EventOption ) HTMLLi
OnSubmit (h EventHandler , options ...EventOption ) HTMLLi
OnWheel (h EventHandler , options ...EventOption ) HTMLLi
}
func Li () HTMLLi {
e := &htmlLi {
htmlElement : htmlElement {
tag : "li" ,
isSelfClosing : false ,
},
}
return e
}
type htmlLi struct {
htmlElement
}
func (e *htmlLi ) Body (v ...UI ) HTMLLi {
return e .setBody (FilterUIElems (v ...)).(*htmlLi )
}
func (e *htmlLi ) Text (v any ) HTMLLi {
return e .Body (Text (v ))
}
func (e *htmlLi ) Textf (format string , v ...any ) HTMLLi {
return e .Body (Textf (format , v ...))
}
func (e *htmlLi ) AccessKey (format string , v ...any ) HTMLLi {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlLi ) Aria (k string , v any ) HTMLLi {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLi ) Attr (n string , v any ) HTMLLi {
e .setAttr (n , v )
return e
}
func (e *htmlLi ) Class (v ...string ) HTMLLi {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlLi ) ContentEditable (v bool ) HTMLLi {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlLi ) DataSet (k string , v any ) HTMLLi {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLi ) DataSets (ds map [string ]any ) HTMLLi {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlLi ) Dir (format string , v ...any ) HTMLLi {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlLi ) Draggable (v bool ) HTMLLi {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlLi ) Hidden (v bool ) HTMLLi {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlLi ) ID (format string , v ...any ) HTMLLi {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlLi ) Lang (format string , v ...any ) HTMLLi {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlLi ) Role (format string , v ...any ) HTMLLi {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlLi ) Spellcheck (v bool ) HTMLLi {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlLi ) Style (k , format string , v ...any ) HTMLLi {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlLi ) Styles (s map [string ]string ) HTMLLi {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlLi ) TabIndex (v int ) HTMLLi {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlLi ) Title (format string , v ...any ) HTMLLi {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlLi ) Value (v any ) HTMLLi {
e .setAttr ("value" , v )
return e
}
func (e *htmlLi ) On (event string , h EventHandler , options ...EventOption ) HTMLLi {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlLi ) OnBlur (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("blur" , h , options ...)
}
func (e *htmlLi ) OnChange (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("change" , h , options ...)
}
func (e *htmlLi ) OnClick (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("click" , h , options ...)
}
func (e *htmlLi ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlLi ) OnCopy (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("copy" , h , options ...)
}
func (e *htmlLi ) OnCut (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("cut" , h , options ...)
}
func (e *htmlLi ) OnDblClick (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlLi ) OnDrag (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("drag" , h , options ...)
}
func (e *htmlLi ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("dragend" , h , options ...)
}
func (e *htmlLi ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlLi ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlLi ) OnDragOver (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("dragover" , h , options ...)
}
func (e *htmlLi ) OnDragStart (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlLi ) OnDrop (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("drop" , h , options ...)
}
func (e *htmlLi ) OnFocus (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("focus" , h , options ...)
}
func (e *htmlLi ) OnInput (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("input" , h , options ...)
}
func (e *htmlLi ) OnInvalid (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("invalid" , h , options ...)
}
func (e *htmlLi ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("keydown" , h , options ...)
}
func (e *htmlLi ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("keypress" , h , options ...)
}
func (e *htmlLi ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("keyup" , h , options ...)
}
func (e *htmlLi ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlLi ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlLi ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlLi ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlLi ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlLi ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlLi ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlLi ) OnPaste (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("paste" , h , options ...)
}
func (e *htmlLi ) OnReset (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("reset" , h , options ...)
}
func (e *htmlLi ) OnScroll (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("scroll" , h , options ...)
}
func (e *htmlLi ) OnSearch (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("search" , h , options ...)
}
func (e *htmlLi ) OnSelect (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("select" , h , options ...)
}
func (e *htmlLi ) OnSubmit (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("submit" , h , options ...)
}
func (e *htmlLi ) OnWheel (h EventHandler , options ...EventOption ) HTMLLi {
return e .On ("wheel" , h , options ...)
}
func (e *htmlLi ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlLi ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlLi ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlLi ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlLi ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlLi ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLLink interface {
HTML
AccessKey (format string , v ...any ) HTMLLink
Aria (k string , v any ) HTMLLink
As (format string , v ...any ) HTMLLink
Attr (n string , v any ) HTMLLink
Class (v ...string ) HTMLLink
ContentEditable (v bool ) HTMLLink
CrossOrigin (format string , v ...any ) HTMLLink
DataSet (k string , v any ) HTMLLink
DataSets (ds map [string ]any ) HTMLLink
Dir (format string , v ...any ) HTMLLink
Draggable (v bool ) HTMLLink
FetchPriority (format string , v ...any ) HTMLLink
Hidden (v bool ) HTMLLink
Href (format string , v ...any ) HTMLLink
HrefLang (format string , v ...any ) HTMLLink
ID (format string , v ...any ) HTMLLink
Lang (format string , v ...any ) HTMLLink
Media (format string , v ...any ) HTMLLink
Rel (format string , v ...any ) HTMLLink
Role (format string , v ...any ) HTMLLink
Sizes (format string , v ...any ) HTMLLink
Spellcheck (v bool ) HTMLLink
Style (k, format string , v ...any ) HTMLLink
Styles (s map [string ]string ) HTMLLink
TabIndex (v int ) HTMLLink
Title (format string , v ...any ) HTMLLink
Type (format string , v ...any ) HTMLLink
On (event string , h EventHandler , options ...EventOption ) HTMLLink
OnBlur (h EventHandler , options ...EventOption ) HTMLLink
OnChange (h EventHandler , options ...EventOption ) HTMLLink
OnClick (h EventHandler , options ...EventOption ) HTMLLink
OnContextMenu (h EventHandler , options ...EventOption ) HTMLLink
OnCopy (h EventHandler , options ...EventOption ) HTMLLink
OnCut (h EventHandler , options ...EventOption ) HTMLLink
OnDblClick (h EventHandler , options ...EventOption ) HTMLLink
OnDrag (h EventHandler , options ...EventOption ) HTMLLink
OnDragEnd (h EventHandler , options ...EventOption ) HTMLLink
OnDragEnter (h EventHandler , options ...EventOption ) HTMLLink
OnDragLeave (h EventHandler , options ...EventOption ) HTMLLink
OnDragOver (h EventHandler , options ...EventOption ) HTMLLink
OnDragStart (h EventHandler , options ...EventOption ) HTMLLink
OnDrop (h EventHandler , options ...EventOption ) HTMLLink
OnFocus (h EventHandler , options ...EventOption ) HTMLLink
OnInput (h EventHandler , options ...EventOption ) HTMLLink
OnInvalid (h EventHandler , options ...EventOption ) HTMLLink
OnKeyDown (h EventHandler , options ...EventOption ) HTMLLink
OnKeyPress (h EventHandler , options ...EventOption ) HTMLLink
OnKeyUp (h EventHandler , options ...EventOption ) HTMLLink
OnLoad (h EventHandler , options ...EventOption ) HTMLLink
OnMouseDown (h EventHandler , options ...EventOption ) HTMLLink
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLink
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLink
OnMouseMove (h EventHandler , options ...EventOption ) HTMLLink
OnMouseOut (h EventHandler , options ...EventOption ) HTMLLink
OnMouseOver (h EventHandler , options ...EventOption ) HTMLLink
OnMouseUp (h EventHandler , options ...EventOption ) HTMLLink
OnPaste (h EventHandler , options ...EventOption ) HTMLLink
OnReset (h EventHandler , options ...EventOption ) HTMLLink
OnScroll (h EventHandler , options ...EventOption ) HTMLLink
OnSearch (h EventHandler , options ...EventOption ) HTMLLink
OnSelect (h EventHandler , options ...EventOption ) HTMLLink
OnSubmit (h EventHandler , options ...EventOption ) HTMLLink
OnWheel (h EventHandler , options ...EventOption ) HTMLLink
}
func Link () HTMLLink {
e := &htmlLink {
htmlElement : htmlElement {
tag : "link" ,
isSelfClosing : true ,
},
}
return e
}
type htmlLink struct {
htmlElement
}
func (e *htmlLink ) AccessKey (format string , v ...any ) HTMLLink {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Aria (k string , v any ) HTMLLink {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLink ) As (format string , v ...any ) HTMLLink {
e .setAttr ("as" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Attr (n string , v any ) HTMLLink {
e .setAttr (n , v )
return e
}
func (e *htmlLink ) Class (v ...string ) HTMLLink {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlLink ) ContentEditable (v bool ) HTMLLink {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlLink ) CrossOrigin (format string , v ...any ) HTMLLink {
e .setAttr ("crossorigin" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) DataSet (k string , v any ) HTMLLink {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlLink ) DataSets (ds map [string ]any ) HTMLLink {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlLink ) Dir (format string , v ...any ) HTMLLink {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Draggable (v bool ) HTMLLink {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlLink ) FetchPriority (format string , v ...any ) HTMLLink {
e .setAttr ("fetchpriority" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Hidden (v bool ) HTMLLink {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlLink ) Href (format string , v ...any ) HTMLLink {
e .setAttr ("href" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) HrefLang (format string , v ...any ) HTMLLink {
e .setAttr ("hreflang" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) ID (format string , v ...any ) HTMLLink {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Lang (format string , v ...any ) HTMLLink {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Media (format string , v ...any ) HTMLLink {
e .setAttr ("media" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Rel (format string , v ...any ) HTMLLink {
e .setAttr ("rel" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Role (format string , v ...any ) HTMLLink {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Sizes (format string , v ...any ) HTMLLink {
e .setAttr ("sizes" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Spellcheck (v bool ) HTMLLink {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlLink ) Style (k , format string , v ...any ) HTMLLink {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlLink ) Styles (s map [string ]string ) HTMLLink {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlLink ) TabIndex (v int ) HTMLLink {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlLink ) Title (format string , v ...any ) HTMLLink {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) Type (format string , v ...any ) HTMLLink {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlLink ) On (event string , h EventHandler , options ...EventOption ) HTMLLink {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlLink ) OnBlur (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("blur" , h , options ...)
}
func (e *htmlLink ) OnChange (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("change" , h , options ...)
}
func (e *htmlLink ) OnClick (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("click" , h , options ...)
}
func (e *htmlLink ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlLink ) OnCopy (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("copy" , h , options ...)
}
func (e *htmlLink ) OnCut (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("cut" , h , options ...)
}
func (e *htmlLink ) OnDblClick (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlLink ) OnDrag (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("drag" , h , options ...)
}
func (e *htmlLink ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("dragend" , h , options ...)
}
func (e *htmlLink ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlLink ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlLink ) OnDragOver (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("dragover" , h , options ...)
}
func (e *htmlLink ) OnDragStart (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlLink ) OnDrop (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("drop" , h , options ...)
}
func (e *htmlLink ) OnFocus (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("focus" , h , options ...)
}
func (e *htmlLink ) OnInput (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("input" , h , options ...)
}
func (e *htmlLink ) OnInvalid (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("invalid" , h , options ...)
}
func (e *htmlLink ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("keydown" , h , options ...)
}
func (e *htmlLink ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("keypress" , h , options ...)
}
func (e *htmlLink ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("keyup" , h , options ...)
}
func (e *htmlLink ) OnLoad (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("load" , h , options ...)
}
func (e *htmlLink ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlLink ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlLink ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlLink ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlLink ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlLink ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlLink ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlLink ) OnPaste (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("paste" , h , options ...)
}
func (e *htmlLink ) OnReset (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("reset" , h , options ...)
}
func (e *htmlLink ) OnScroll (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("scroll" , h , options ...)
}
func (e *htmlLink ) OnSearch (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("search" , h , options ...)
}
func (e *htmlLink ) OnSelect (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("select" , h , options ...)
}
func (e *htmlLink ) OnSubmit (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("submit" , h , options ...)
}
func (e *htmlLink ) OnWheel (h EventHandler , options ...EventOption ) HTMLLink {
return e .On ("wheel" , h , options ...)
}
func (e *htmlLink ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlLink ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlLink ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlLink ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlLink ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlLink ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLMain interface {
HTML
Body (elems ...UI ) HTMLMain
Text (v any ) HTMLMain
Textf (format string , v ...any ) HTMLMain
AccessKey (format string , v ...any ) HTMLMain
Aria (k string , v any ) HTMLMain
Attr (n string , v any ) HTMLMain
Class (v ...string ) HTMLMain
ContentEditable (v bool ) HTMLMain
DataSet (k string , v any ) HTMLMain
DataSets (ds map [string ]any ) HTMLMain
Dir (format string , v ...any ) HTMLMain
Draggable (v bool ) HTMLMain
Hidden (v bool ) HTMLMain
ID (format string , v ...any ) HTMLMain
Lang (format string , v ...any ) HTMLMain
Role (format string , v ...any ) HTMLMain
Spellcheck (v bool ) HTMLMain
Style (k, format string , v ...any ) HTMLMain
Styles (s map [string ]string ) HTMLMain
TabIndex (v int ) HTMLMain
Title (format string , v ...any ) HTMLMain
On (event string , h EventHandler , options ...EventOption ) HTMLMain
OnBlur (h EventHandler , options ...EventOption ) HTMLMain
OnChange (h EventHandler , options ...EventOption ) HTMLMain
OnClick (h EventHandler , options ...EventOption ) HTMLMain
OnContextMenu (h EventHandler , options ...EventOption ) HTMLMain
OnCopy (h EventHandler , options ...EventOption ) HTMLMain
OnCut (h EventHandler , options ...EventOption ) HTMLMain
OnDblClick (h EventHandler , options ...EventOption ) HTMLMain
OnDrag (h EventHandler , options ...EventOption ) HTMLMain
OnDragEnd (h EventHandler , options ...EventOption ) HTMLMain
OnDragEnter (h EventHandler , options ...EventOption ) HTMLMain
OnDragLeave (h EventHandler , options ...EventOption ) HTMLMain
OnDragOver (h EventHandler , options ...EventOption ) HTMLMain
OnDragStart (h EventHandler , options ...EventOption ) HTMLMain
OnDrop (h EventHandler , options ...EventOption ) HTMLMain
OnFocus (h EventHandler , options ...EventOption ) HTMLMain
OnInput (h EventHandler , options ...EventOption ) HTMLMain
OnInvalid (h EventHandler , options ...EventOption ) HTMLMain
OnKeyDown (h EventHandler , options ...EventOption ) HTMLMain
OnKeyPress (h EventHandler , options ...EventOption ) HTMLMain
OnKeyUp (h EventHandler , options ...EventOption ) HTMLMain
OnMouseDown (h EventHandler , options ...EventOption ) HTMLMain
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMain
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMain
OnMouseMove (h EventHandler , options ...EventOption ) HTMLMain
OnMouseOut (h EventHandler , options ...EventOption ) HTMLMain
OnMouseOver (h EventHandler , options ...EventOption ) HTMLMain
OnMouseUp (h EventHandler , options ...EventOption ) HTMLMain
OnPaste (h EventHandler , options ...EventOption ) HTMLMain
OnReset (h EventHandler , options ...EventOption ) HTMLMain
OnScroll (h EventHandler , options ...EventOption ) HTMLMain
OnSearch (h EventHandler , options ...EventOption ) HTMLMain
OnSelect (h EventHandler , options ...EventOption ) HTMLMain
OnSubmit (h EventHandler , options ...EventOption ) HTMLMain
OnWheel (h EventHandler , options ...EventOption ) HTMLMain
}
func Main () HTMLMain {
e := &htmlMain {
htmlElement : htmlElement {
tag : "main" ,
isSelfClosing : false ,
},
}
return e
}
type htmlMain struct {
htmlElement
}
func (e *htmlMain ) Body (v ...UI ) HTMLMain {
return e .setBody (FilterUIElems (v ...)).(*htmlMain )
}
func (e *htmlMain ) Text (v any ) HTMLMain {
return e .Body (Text (v ))
}
func (e *htmlMain ) Textf (format string , v ...any ) HTMLMain {
return e .Body (Textf (format , v ...))
}
func (e *htmlMain ) AccessKey (format string , v ...any ) HTMLMain {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlMain ) Aria (k string , v any ) HTMLMain {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMain ) Attr (n string , v any ) HTMLMain {
e .setAttr (n , v )
return e
}
func (e *htmlMain ) Class (v ...string ) HTMLMain {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlMain ) ContentEditable (v bool ) HTMLMain {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlMain ) DataSet (k string , v any ) HTMLMain {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMain ) DataSets (ds map [string ]any ) HTMLMain {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlMain ) Dir (format string , v ...any ) HTMLMain {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlMain ) Draggable (v bool ) HTMLMain {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlMain ) Hidden (v bool ) HTMLMain {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlMain ) ID (format string , v ...any ) HTMLMain {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlMain ) Lang (format string , v ...any ) HTMLMain {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlMain ) Role (format string , v ...any ) HTMLMain {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlMain ) Spellcheck (v bool ) HTMLMain {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlMain ) Style (k , format string , v ...any ) HTMLMain {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlMain ) Styles (s map [string ]string ) HTMLMain {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlMain ) TabIndex (v int ) HTMLMain {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlMain ) Title (format string , v ...any ) HTMLMain {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlMain ) On (event string , h EventHandler , options ...EventOption ) HTMLMain {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlMain ) OnBlur (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("blur" , h , options ...)
}
func (e *htmlMain ) OnChange (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("change" , h , options ...)
}
func (e *htmlMain ) OnClick (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("click" , h , options ...)
}
func (e *htmlMain ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlMain ) OnCopy (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("copy" , h , options ...)
}
func (e *htmlMain ) OnCut (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("cut" , h , options ...)
}
func (e *htmlMain ) OnDblClick (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlMain ) OnDrag (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("drag" , h , options ...)
}
func (e *htmlMain ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("dragend" , h , options ...)
}
func (e *htmlMain ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlMain ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlMain ) OnDragOver (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("dragover" , h , options ...)
}
func (e *htmlMain ) OnDragStart (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlMain ) OnDrop (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("drop" , h , options ...)
}
func (e *htmlMain ) OnFocus (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("focus" , h , options ...)
}
func (e *htmlMain ) OnInput (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("input" , h , options ...)
}
func (e *htmlMain ) OnInvalid (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("invalid" , h , options ...)
}
func (e *htmlMain ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("keydown" , h , options ...)
}
func (e *htmlMain ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("keypress" , h , options ...)
}
func (e *htmlMain ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("keyup" , h , options ...)
}
func (e *htmlMain ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlMain ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlMain ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlMain ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlMain ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlMain ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlMain ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlMain ) OnPaste (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("paste" , h , options ...)
}
func (e *htmlMain ) OnReset (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("reset" , h , options ...)
}
func (e *htmlMain ) OnScroll (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("scroll" , h , options ...)
}
func (e *htmlMain ) OnSearch (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("search" , h , options ...)
}
func (e *htmlMain ) OnSelect (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("select" , h , options ...)
}
func (e *htmlMain ) OnSubmit (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("submit" , h , options ...)
}
func (e *htmlMain ) OnWheel (h EventHandler , options ...EventOption ) HTMLMain {
return e .On ("wheel" , h , options ...)
}
func (e *htmlMain ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlMain ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlMain ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlMain ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlMain ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlMain ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLMap interface {
HTML
Body (elems ...UI ) HTMLMap
Text (v any ) HTMLMap
Textf (format string , v ...any ) HTMLMap
AccessKey (format string , v ...any ) HTMLMap
Aria (k string , v any ) HTMLMap
Attr (n string , v any ) HTMLMap
Class (v ...string ) HTMLMap
ContentEditable (v bool ) HTMLMap
DataSet (k string , v any ) HTMLMap
DataSets (ds map [string ]any ) HTMLMap
Dir (format string , v ...any ) HTMLMap
Draggable (v bool ) HTMLMap
Hidden (v bool ) HTMLMap
ID (format string , v ...any ) HTMLMap
Lang (format string , v ...any ) HTMLMap
Name (format string , v ...any ) HTMLMap
Role (format string , v ...any ) HTMLMap
Spellcheck (v bool ) HTMLMap
Style (k, format string , v ...any ) HTMLMap
Styles (s map [string ]string ) HTMLMap
TabIndex (v int ) HTMLMap
Title (format string , v ...any ) HTMLMap
On (event string , h EventHandler , options ...EventOption ) HTMLMap
OnBlur (h EventHandler , options ...EventOption ) HTMLMap
OnChange (h EventHandler , options ...EventOption ) HTMLMap
OnClick (h EventHandler , options ...EventOption ) HTMLMap
OnContextMenu (h EventHandler , options ...EventOption ) HTMLMap
OnCopy (h EventHandler , options ...EventOption ) HTMLMap
OnCut (h EventHandler , options ...EventOption ) HTMLMap
OnDblClick (h EventHandler , options ...EventOption ) HTMLMap
OnDrag (h EventHandler , options ...EventOption ) HTMLMap
OnDragEnd (h EventHandler , options ...EventOption ) HTMLMap
OnDragEnter (h EventHandler , options ...EventOption ) HTMLMap
OnDragLeave (h EventHandler , options ...EventOption ) HTMLMap
OnDragOver (h EventHandler , options ...EventOption ) HTMLMap
OnDragStart (h EventHandler , options ...EventOption ) HTMLMap
OnDrop (h EventHandler , options ...EventOption ) HTMLMap
OnFocus (h EventHandler , options ...EventOption ) HTMLMap
OnInput (h EventHandler , options ...EventOption ) HTMLMap
OnInvalid (h EventHandler , options ...EventOption ) HTMLMap
OnKeyDown (h EventHandler , options ...EventOption ) HTMLMap
OnKeyPress (h EventHandler , options ...EventOption ) HTMLMap
OnKeyUp (h EventHandler , options ...EventOption ) HTMLMap
OnMouseDown (h EventHandler , options ...EventOption ) HTMLMap
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMap
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMap
OnMouseMove (h EventHandler , options ...EventOption ) HTMLMap
OnMouseOut (h EventHandler , options ...EventOption ) HTMLMap
OnMouseOver (h EventHandler , options ...EventOption ) HTMLMap
OnMouseUp (h EventHandler , options ...EventOption ) HTMLMap
OnPaste (h EventHandler , options ...EventOption ) HTMLMap
OnReset (h EventHandler , options ...EventOption ) HTMLMap
OnScroll (h EventHandler , options ...EventOption ) HTMLMap
OnSearch (h EventHandler , options ...EventOption ) HTMLMap
OnSelect (h EventHandler , options ...EventOption ) HTMLMap
OnSubmit (h EventHandler , options ...EventOption ) HTMLMap
OnWheel (h EventHandler , options ...EventOption ) HTMLMap
}
func Map () HTMLMap {
e := &htmlMap {
htmlElement : htmlElement {
tag : "map" ,
isSelfClosing : false ,
},
}
return e
}
type htmlMap struct {
htmlElement
}
func (e *htmlMap ) Body (v ...UI ) HTMLMap {
return e .setBody (FilterUIElems (v ...)).(*htmlMap )
}
func (e *htmlMap ) Text (v any ) HTMLMap {
return e .Body (Text (v ))
}
func (e *htmlMap ) Textf (format string , v ...any ) HTMLMap {
return e .Body (Textf (format , v ...))
}
func (e *htmlMap ) AccessKey (format string , v ...any ) HTMLMap {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlMap ) Aria (k string , v any ) HTMLMap {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMap ) Attr (n string , v any ) HTMLMap {
e .setAttr (n , v )
return e
}
func (e *htmlMap ) Class (v ...string ) HTMLMap {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlMap ) ContentEditable (v bool ) HTMLMap {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlMap ) DataSet (k string , v any ) HTMLMap {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMap ) DataSets (ds map [string ]any ) HTMLMap {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlMap ) Dir (format string , v ...any ) HTMLMap {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlMap ) Draggable (v bool ) HTMLMap {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlMap ) Hidden (v bool ) HTMLMap {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlMap ) ID (format string , v ...any ) HTMLMap {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlMap ) Lang (format string , v ...any ) HTMLMap {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlMap ) Name (format string , v ...any ) HTMLMap {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlMap ) Role (format string , v ...any ) HTMLMap {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlMap ) Spellcheck (v bool ) HTMLMap {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlMap ) Style (k , format string , v ...any ) HTMLMap {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlMap ) Styles (s map [string ]string ) HTMLMap {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlMap ) TabIndex (v int ) HTMLMap {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlMap ) Title (format string , v ...any ) HTMLMap {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlMap ) On (event string , h EventHandler , options ...EventOption ) HTMLMap {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlMap ) OnBlur (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("blur" , h , options ...)
}
func (e *htmlMap ) OnChange (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("change" , h , options ...)
}
func (e *htmlMap ) OnClick (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("click" , h , options ...)
}
func (e *htmlMap ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlMap ) OnCopy (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("copy" , h , options ...)
}
func (e *htmlMap ) OnCut (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("cut" , h , options ...)
}
func (e *htmlMap ) OnDblClick (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlMap ) OnDrag (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("drag" , h , options ...)
}
func (e *htmlMap ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("dragend" , h , options ...)
}
func (e *htmlMap ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlMap ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlMap ) OnDragOver (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("dragover" , h , options ...)
}
func (e *htmlMap ) OnDragStart (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlMap ) OnDrop (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("drop" , h , options ...)
}
func (e *htmlMap ) OnFocus (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("focus" , h , options ...)
}
func (e *htmlMap ) OnInput (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("input" , h , options ...)
}
func (e *htmlMap ) OnInvalid (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("invalid" , h , options ...)
}
func (e *htmlMap ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("keydown" , h , options ...)
}
func (e *htmlMap ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("keypress" , h , options ...)
}
func (e *htmlMap ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("keyup" , h , options ...)
}
func (e *htmlMap ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlMap ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlMap ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlMap ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlMap ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlMap ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlMap ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlMap ) OnPaste (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("paste" , h , options ...)
}
func (e *htmlMap ) OnReset (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("reset" , h , options ...)
}
func (e *htmlMap ) OnScroll (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("scroll" , h , options ...)
}
func (e *htmlMap ) OnSearch (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("search" , h , options ...)
}
func (e *htmlMap ) OnSelect (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("select" , h , options ...)
}
func (e *htmlMap ) OnSubmit (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("submit" , h , options ...)
}
func (e *htmlMap ) OnWheel (h EventHandler , options ...EventOption ) HTMLMap {
return e .On ("wheel" , h , options ...)
}
func (e *htmlMap ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlMap ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlMap ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlMap ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlMap ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlMap ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLMark interface {
HTML
Body (elems ...UI ) HTMLMark
Text (v any ) HTMLMark
Textf (format string , v ...any ) HTMLMark
AccessKey (format string , v ...any ) HTMLMark
Aria (k string , v any ) HTMLMark
Attr (n string , v any ) HTMLMark
Class (v ...string ) HTMLMark
ContentEditable (v bool ) HTMLMark
DataSet (k string , v any ) HTMLMark
DataSets (ds map [string ]any ) HTMLMark
Dir (format string , v ...any ) HTMLMark
Draggable (v bool ) HTMLMark
Hidden (v bool ) HTMLMark
ID (format string , v ...any ) HTMLMark
Lang (format string , v ...any ) HTMLMark
Role (format string , v ...any ) HTMLMark
Spellcheck (v bool ) HTMLMark
Style (k, format string , v ...any ) HTMLMark
Styles (s map [string ]string ) HTMLMark
TabIndex (v int ) HTMLMark
Title (format string , v ...any ) HTMLMark
On (event string , h EventHandler , options ...EventOption ) HTMLMark
OnBlur (h EventHandler , options ...EventOption ) HTMLMark
OnChange (h EventHandler , options ...EventOption ) HTMLMark
OnClick (h EventHandler , options ...EventOption ) HTMLMark
OnContextMenu (h EventHandler , options ...EventOption ) HTMLMark
OnCopy (h EventHandler , options ...EventOption ) HTMLMark
OnCut (h EventHandler , options ...EventOption ) HTMLMark
OnDblClick (h EventHandler , options ...EventOption ) HTMLMark
OnDrag (h EventHandler , options ...EventOption ) HTMLMark
OnDragEnd (h EventHandler , options ...EventOption ) HTMLMark
OnDragEnter (h EventHandler , options ...EventOption ) HTMLMark
OnDragLeave (h EventHandler , options ...EventOption ) HTMLMark
OnDragOver (h EventHandler , options ...EventOption ) HTMLMark
OnDragStart (h EventHandler , options ...EventOption ) HTMLMark
OnDrop (h EventHandler , options ...EventOption ) HTMLMark
OnFocus (h EventHandler , options ...EventOption ) HTMLMark
OnInput (h EventHandler , options ...EventOption ) HTMLMark
OnInvalid (h EventHandler , options ...EventOption ) HTMLMark
OnKeyDown (h EventHandler , options ...EventOption ) HTMLMark
OnKeyPress (h EventHandler , options ...EventOption ) HTMLMark
OnKeyUp (h EventHandler , options ...EventOption ) HTMLMark
OnMouseDown (h EventHandler , options ...EventOption ) HTMLMark
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMark
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMark
OnMouseMove (h EventHandler , options ...EventOption ) HTMLMark
OnMouseOut (h EventHandler , options ...EventOption ) HTMLMark
OnMouseOver (h EventHandler , options ...EventOption ) HTMLMark
OnMouseUp (h EventHandler , options ...EventOption ) HTMLMark
OnPaste (h EventHandler , options ...EventOption ) HTMLMark
OnReset (h EventHandler , options ...EventOption ) HTMLMark
OnScroll (h EventHandler , options ...EventOption ) HTMLMark
OnSearch (h EventHandler , options ...EventOption ) HTMLMark
OnSelect (h EventHandler , options ...EventOption ) HTMLMark
OnSubmit (h EventHandler , options ...EventOption ) HTMLMark
OnWheel (h EventHandler , options ...EventOption ) HTMLMark
}
func Mark () HTMLMark {
e := &htmlMark {
htmlElement : htmlElement {
tag : "mark" ,
isSelfClosing : false ,
},
}
return e
}
type htmlMark struct {
htmlElement
}
func (e *htmlMark ) Body (v ...UI ) HTMLMark {
return e .setBody (FilterUIElems (v ...)).(*htmlMark )
}
func (e *htmlMark ) Text (v any ) HTMLMark {
return e .Body (Text (v ))
}
func (e *htmlMark ) Textf (format string , v ...any ) HTMLMark {
return e .Body (Textf (format , v ...))
}
func (e *htmlMark ) AccessKey (format string , v ...any ) HTMLMark {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlMark ) Aria (k string , v any ) HTMLMark {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMark ) Attr (n string , v any ) HTMLMark {
e .setAttr (n , v )
return e
}
func (e *htmlMark ) Class (v ...string ) HTMLMark {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlMark ) ContentEditable (v bool ) HTMLMark {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlMark ) DataSet (k string , v any ) HTMLMark {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMark ) DataSets (ds map [string ]any ) HTMLMark {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlMark ) Dir (format string , v ...any ) HTMLMark {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlMark ) Draggable (v bool ) HTMLMark {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlMark ) Hidden (v bool ) HTMLMark {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlMark ) ID (format string , v ...any ) HTMLMark {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlMark ) Lang (format string , v ...any ) HTMLMark {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlMark ) Role (format string , v ...any ) HTMLMark {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlMark ) Spellcheck (v bool ) HTMLMark {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlMark ) Style (k , format string , v ...any ) HTMLMark {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlMark ) Styles (s map [string ]string ) HTMLMark {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlMark ) TabIndex (v int ) HTMLMark {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlMark ) Title (format string , v ...any ) HTMLMark {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlMark ) On (event string , h EventHandler , options ...EventOption ) HTMLMark {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlMark ) OnBlur (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("blur" , h , options ...)
}
func (e *htmlMark ) OnChange (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("change" , h , options ...)
}
func (e *htmlMark ) OnClick (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("click" , h , options ...)
}
func (e *htmlMark ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlMark ) OnCopy (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("copy" , h , options ...)
}
func (e *htmlMark ) OnCut (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("cut" , h , options ...)
}
func (e *htmlMark ) OnDblClick (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlMark ) OnDrag (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("drag" , h , options ...)
}
func (e *htmlMark ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("dragend" , h , options ...)
}
func (e *htmlMark ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlMark ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlMark ) OnDragOver (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("dragover" , h , options ...)
}
func (e *htmlMark ) OnDragStart (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlMark ) OnDrop (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("drop" , h , options ...)
}
func (e *htmlMark ) OnFocus (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("focus" , h , options ...)
}
func (e *htmlMark ) OnInput (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("input" , h , options ...)
}
func (e *htmlMark ) OnInvalid (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("invalid" , h , options ...)
}
func (e *htmlMark ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("keydown" , h , options ...)
}
func (e *htmlMark ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("keypress" , h , options ...)
}
func (e *htmlMark ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("keyup" , h , options ...)
}
func (e *htmlMark ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlMark ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlMark ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlMark ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlMark ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlMark ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlMark ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlMark ) OnPaste (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("paste" , h , options ...)
}
func (e *htmlMark ) OnReset (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("reset" , h , options ...)
}
func (e *htmlMark ) OnScroll (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("scroll" , h , options ...)
}
func (e *htmlMark ) OnSearch (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("search" , h , options ...)
}
func (e *htmlMark ) OnSelect (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("select" , h , options ...)
}
func (e *htmlMark ) OnSubmit (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("submit" , h , options ...)
}
func (e *htmlMark ) OnWheel (h EventHandler , options ...EventOption ) HTMLMark {
return e .On ("wheel" , h , options ...)
}
func (e *htmlMark ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlMark ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlMark ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlMark ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlMark ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlMark ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLMeta interface {
HTML
AccessKey (format string , v ...any ) HTMLMeta
Aria (k string , v any ) HTMLMeta
Attr (n string , v any ) HTMLMeta
Charset (format string , v ...any ) HTMLMeta
Class (v ...string ) HTMLMeta
Content (format string , v ...any ) HTMLMeta
ContentEditable (v bool ) HTMLMeta
DataSet (k string , v any ) HTMLMeta
DataSets (ds map [string ]any ) HTMLMeta
Dir (format string , v ...any ) HTMLMeta
Draggable (v bool ) HTMLMeta
HTTPEquiv (format string , v ...any ) HTMLMeta
Hidden (v bool ) HTMLMeta
ID (format string , v ...any ) HTMLMeta
Lang (format string , v ...any ) HTMLMeta
Name (format string , v ...any ) HTMLMeta
Property (format string , v ...any ) HTMLMeta
Role (format string , v ...any ) HTMLMeta
Spellcheck (v bool ) HTMLMeta
Style (k, format string , v ...any ) HTMLMeta
Styles (s map [string ]string ) HTMLMeta
TabIndex (v int ) HTMLMeta
Title (format string , v ...any ) HTMLMeta
On (event string , h EventHandler , options ...EventOption ) HTMLMeta
}
func Meta () HTMLMeta {
e := &htmlMeta {
htmlElement : htmlElement {
tag : "meta" ,
isSelfClosing : true ,
},
}
return e
}
type htmlMeta struct {
htmlElement
}
func (e *htmlMeta ) AccessKey (format string , v ...any ) HTMLMeta {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Aria (k string , v any ) HTMLMeta {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMeta ) Attr (n string , v any ) HTMLMeta {
e .setAttr (n , v )
return e
}
func (e *htmlMeta ) Charset (format string , v ...any ) HTMLMeta {
e .setAttr ("charset" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Class (v ...string ) HTMLMeta {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlMeta ) Content (format string , v ...any ) HTMLMeta {
e .setAttr ("content" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) ContentEditable (v bool ) HTMLMeta {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlMeta ) DataSet (k string , v any ) HTMLMeta {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMeta ) DataSets (ds map [string ]any ) HTMLMeta {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlMeta ) Dir (format string , v ...any ) HTMLMeta {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Draggable (v bool ) HTMLMeta {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlMeta ) HTTPEquiv (format string , v ...any ) HTMLMeta {
e .setAttr ("http-equiv" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Hidden (v bool ) HTMLMeta {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlMeta ) ID (format string , v ...any ) HTMLMeta {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Lang (format string , v ...any ) HTMLMeta {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Name (format string , v ...any ) HTMLMeta {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Property (format string , v ...any ) HTMLMeta {
e .setAttr ("property" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Role (format string , v ...any ) HTMLMeta {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Spellcheck (v bool ) HTMLMeta {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlMeta ) Style (k , format string , v ...any ) HTMLMeta {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlMeta ) Styles (s map [string ]string ) HTMLMeta {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlMeta ) TabIndex (v int ) HTMLMeta {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlMeta ) Title (format string , v ...any ) HTMLMeta {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlMeta ) On (event string , h EventHandler , options ...EventOption ) HTMLMeta {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlMeta ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlMeta ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlMeta ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlMeta ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlMeta ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlMeta ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLMeter interface {
HTML
Body (elems ...UI ) HTMLMeter
Text (v any ) HTMLMeter
Textf (format string , v ...any ) HTMLMeter
AccessKey (format string , v ...any ) HTMLMeter
Aria (k string , v any ) HTMLMeter
Attr (n string , v any ) HTMLMeter
Class (v ...string ) HTMLMeter
ContentEditable (v bool ) HTMLMeter
DataSet (k string , v any ) HTMLMeter
DataSets (ds map [string ]any ) HTMLMeter
Dir (format string , v ...any ) HTMLMeter
Draggable (v bool ) HTMLMeter
Form (format string , v ...any ) HTMLMeter
Hidden (v bool ) HTMLMeter
High (v float64 ) HTMLMeter
ID (format string , v ...any ) HTMLMeter
Lang (format string , v ...any ) HTMLMeter
Low (v float64 ) HTMLMeter
Max (v any ) HTMLMeter
Min (v any ) HTMLMeter
Optimum (v float64 ) HTMLMeter
Role (format string , v ...any ) HTMLMeter
Spellcheck (v bool ) HTMLMeter
Style (k, format string , v ...any ) HTMLMeter
Styles (s map [string ]string ) HTMLMeter
TabIndex (v int ) HTMLMeter
Title (format string , v ...any ) HTMLMeter
Value (v any ) HTMLMeter
On (event string , h EventHandler , options ...EventOption ) HTMLMeter
OnBlur (h EventHandler , options ...EventOption ) HTMLMeter
OnChange (h EventHandler , options ...EventOption ) HTMLMeter
OnClick (h EventHandler , options ...EventOption ) HTMLMeter
OnContextMenu (h EventHandler , options ...EventOption ) HTMLMeter
OnCopy (h EventHandler , options ...EventOption ) HTMLMeter
OnCut (h EventHandler , options ...EventOption ) HTMLMeter
OnDblClick (h EventHandler , options ...EventOption ) HTMLMeter
OnDrag (h EventHandler , options ...EventOption ) HTMLMeter
OnDragEnd (h EventHandler , options ...EventOption ) HTMLMeter
OnDragEnter (h EventHandler , options ...EventOption ) HTMLMeter
OnDragLeave (h EventHandler , options ...EventOption ) HTMLMeter
OnDragOver (h EventHandler , options ...EventOption ) HTMLMeter
OnDragStart (h EventHandler , options ...EventOption ) HTMLMeter
OnDrop (h EventHandler , options ...EventOption ) HTMLMeter
OnFocus (h EventHandler , options ...EventOption ) HTMLMeter
OnInput (h EventHandler , options ...EventOption ) HTMLMeter
OnInvalid (h EventHandler , options ...EventOption ) HTMLMeter
OnKeyDown (h EventHandler , options ...EventOption ) HTMLMeter
OnKeyPress (h EventHandler , options ...EventOption ) HTMLMeter
OnKeyUp (h EventHandler , options ...EventOption ) HTMLMeter
OnMouseDown (h EventHandler , options ...EventOption ) HTMLMeter
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMeter
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMeter
OnMouseMove (h EventHandler , options ...EventOption ) HTMLMeter
OnMouseOut (h EventHandler , options ...EventOption ) HTMLMeter
OnMouseOver (h EventHandler , options ...EventOption ) HTMLMeter
OnMouseUp (h EventHandler , options ...EventOption ) HTMLMeter
OnPaste (h EventHandler , options ...EventOption ) HTMLMeter
OnReset (h EventHandler , options ...EventOption ) HTMLMeter
OnScroll (h EventHandler , options ...EventOption ) HTMLMeter
OnSearch (h EventHandler , options ...EventOption ) HTMLMeter
OnSelect (h EventHandler , options ...EventOption ) HTMLMeter
OnSubmit (h EventHandler , options ...EventOption ) HTMLMeter
OnWheel (h EventHandler , options ...EventOption ) HTMLMeter
}
func Meter () HTMLMeter {
e := &htmlMeter {
htmlElement : htmlElement {
tag : "meter" ,
isSelfClosing : false ,
},
}
return e
}
type htmlMeter struct {
htmlElement
}
func (e *htmlMeter ) Body (v ...UI ) HTMLMeter {
return e .setBody (FilterUIElems (v ...)).(*htmlMeter )
}
func (e *htmlMeter ) Text (v any ) HTMLMeter {
return e .Body (Text (v ))
}
func (e *htmlMeter ) Textf (format string , v ...any ) HTMLMeter {
return e .Body (Textf (format , v ...))
}
func (e *htmlMeter ) AccessKey (format string , v ...any ) HTMLMeter {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Aria (k string , v any ) HTMLMeter {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMeter ) Attr (n string , v any ) HTMLMeter {
e .setAttr (n , v )
return e
}
func (e *htmlMeter ) Class (v ...string ) HTMLMeter {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlMeter ) ContentEditable (v bool ) HTMLMeter {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlMeter ) DataSet (k string , v any ) HTMLMeter {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlMeter ) DataSets (ds map [string ]any ) HTMLMeter {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlMeter ) Dir (format string , v ...any ) HTMLMeter {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Draggable (v bool ) HTMLMeter {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlMeter ) Form (format string , v ...any ) HTMLMeter {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Hidden (v bool ) HTMLMeter {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlMeter ) High (v float64 ) HTMLMeter {
e .setAttr ("high" , v )
return e
}
func (e *htmlMeter ) ID (format string , v ...any ) HTMLMeter {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Lang (format string , v ...any ) HTMLMeter {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Low (v float64 ) HTMLMeter {
e .setAttr ("low" , v )
return e
}
func (e *htmlMeter ) Max (v any ) HTMLMeter {
e .setAttr ("max" , v )
return e
}
func (e *htmlMeter ) Min (v any ) HTMLMeter {
e .setAttr ("min" , v )
return e
}
func (e *htmlMeter ) Optimum (v float64 ) HTMLMeter {
e .setAttr ("optimum" , v )
return e
}
func (e *htmlMeter ) Role (format string , v ...any ) HTMLMeter {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Spellcheck (v bool ) HTMLMeter {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlMeter ) Style (k , format string , v ...any ) HTMLMeter {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Styles (s map [string ]string ) HTMLMeter {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlMeter ) TabIndex (v int ) HTMLMeter {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlMeter ) Title (format string , v ...any ) HTMLMeter {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlMeter ) Value (v any ) HTMLMeter {
e .setAttr ("value" , v )
return e
}
func (e *htmlMeter ) On (event string , h EventHandler , options ...EventOption ) HTMLMeter {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlMeter ) OnBlur (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("blur" , h , options ...)
}
func (e *htmlMeter ) OnChange (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("change" , h , options ...)
}
func (e *htmlMeter ) OnClick (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("click" , h , options ...)
}
func (e *htmlMeter ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlMeter ) OnCopy (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("copy" , h , options ...)
}
func (e *htmlMeter ) OnCut (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("cut" , h , options ...)
}
func (e *htmlMeter ) OnDblClick (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlMeter ) OnDrag (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("drag" , h , options ...)
}
func (e *htmlMeter ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("dragend" , h , options ...)
}
func (e *htmlMeter ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlMeter ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlMeter ) OnDragOver (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("dragover" , h , options ...)
}
func (e *htmlMeter ) OnDragStart (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlMeter ) OnDrop (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("drop" , h , options ...)
}
func (e *htmlMeter ) OnFocus (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("focus" , h , options ...)
}
func (e *htmlMeter ) OnInput (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("input" , h , options ...)
}
func (e *htmlMeter ) OnInvalid (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("invalid" , h , options ...)
}
func (e *htmlMeter ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("keydown" , h , options ...)
}
func (e *htmlMeter ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("keypress" , h , options ...)
}
func (e *htmlMeter ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("keyup" , h , options ...)
}
func (e *htmlMeter ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlMeter ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlMeter ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlMeter ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlMeter ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlMeter ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlMeter ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlMeter ) OnPaste (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("paste" , h , options ...)
}
func (e *htmlMeter ) OnReset (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("reset" , h , options ...)
}
func (e *htmlMeter ) OnScroll (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("scroll" , h , options ...)
}
func (e *htmlMeter ) OnSearch (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("search" , h , options ...)
}
func (e *htmlMeter ) OnSelect (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("select" , h , options ...)
}
func (e *htmlMeter ) OnSubmit (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("submit" , h , options ...)
}
func (e *htmlMeter ) OnWheel (h EventHandler , options ...EventOption ) HTMLMeter {
return e .On ("wheel" , h , options ...)
}
func (e *htmlMeter ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlMeter ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlMeter ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlMeter ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlMeter ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlMeter ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLNav interface {
HTML
Body (elems ...UI ) HTMLNav
Text (v any ) HTMLNav
Textf (format string , v ...any ) HTMLNav
AccessKey (format string , v ...any ) 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
DataSets (ds map [string ]any ) HTMLNav
Dir (format string , v ...any ) HTMLNav
Draggable (v bool ) HTMLNav
Hidden (v bool ) HTMLNav
ID (format string , v ...any ) HTMLNav
Lang (format string , v ...any ) HTMLNav
Role (format string , v ...any ) HTMLNav
Spellcheck (v bool ) HTMLNav
Style (k, format string , v ...any ) HTMLNav
Styles (s map [string ]string ) HTMLNav
TabIndex (v int ) HTMLNav
Title (format string , v ...any ) HTMLNav
On (event string , h EventHandler , options ...EventOption ) HTMLNav
OnBlur (h EventHandler , options ...EventOption ) HTMLNav
OnChange (h EventHandler , options ...EventOption ) HTMLNav
OnClick (h EventHandler , options ...EventOption ) HTMLNav
OnContextMenu (h EventHandler , options ...EventOption ) HTMLNav
OnCopy (h EventHandler , options ...EventOption ) HTMLNav
OnCut (h EventHandler , options ...EventOption ) HTMLNav
OnDblClick (h EventHandler , options ...EventOption ) HTMLNav
OnDrag (h EventHandler , options ...EventOption ) HTMLNav
OnDragEnd (h EventHandler , options ...EventOption ) HTMLNav
OnDragEnter (h EventHandler , options ...EventOption ) HTMLNav
OnDragLeave (h EventHandler , options ...EventOption ) HTMLNav
OnDragOver (h EventHandler , options ...EventOption ) HTMLNav
OnDragStart (h EventHandler , options ...EventOption ) HTMLNav
OnDrop (h EventHandler , options ...EventOption ) HTMLNav
OnFocus (h EventHandler , options ...EventOption ) HTMLNav
OnInput (h EventHandler , options ...EventOption ) HTMLNav
OnInvalid (h EventHandler , options ...EventOption ) HTMLNav
OnKeyDown (h EventHandler , options ...EventOption ) HTMLNav
OnKeyPress (h EventHandler , options ...EventOption ) HTMLNav
OnKeyUp (h EventHandler , options ...EventOption ) HTMLNav
OnMouseDown (h EventHandler , options ...EventOption ) HTMLNav
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLNav
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLNav
OnMouseMove (h EventHandler , options ...EventOption ) HTMLNav
OnMouseOut (h EventHandler , options ...EventOption ) HTMLNav
OnMouseOver (h EventHandler , options ...EventOption ) HTMLNav
OnMouseUp (h EventHandler , options ...EventOption ) HTMLNav
OnPaste (h EventHandler , options ...EventOption ) HTMLNav
OnReset (h EventHandler , options ...EventOption ) HTMLNav
OnScroll (h EventHandler , options ...EventOption ) HTMLNav
OnSearch (h EventHandler , options ...EventOption ) HTMLNav
OnSelect (h EventHandler , options ...EventOption ) HTMLNav
OnSubmit (h EventHandler , options ...EventOption ) HTMLNav
OnWheel (h EventHandler , options ...EventOption ) HTMLNav
}
func Nav () HTMLNav {
e := &htmlNav {
htmlElement : htmlElement {
tag : "nav" ,
isSelfClosing : false ,
},
}
return e
}
type htmlNav struct {
htmlElement
}
func (e *htmlNav ) Body (v ...UI ) HTMLNav {
return e .setBody (FilterUIElems (v ...)).(*htmlNav )
}
func (e *htmlNav ) Text (v any ) HTMLNav {
return e .Body (Text (v ))
}
func (e *htmlNav ) Textf (format string , v ...any ) HTMLNav {
return e .Body (Textf (format , v ...))
}
func (e *htmlNav ) AccessKey (format string , v ...any ) HTMLNav {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlNav ) Aria (k string , v any ) HTMLNav {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlNav ) Attr (n string , v any ) HTMLNav {
e .setAttr (n , v )
return e
}
func (e *htmlNav ) Class (v ...string ) HTMLNav {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlNav ) ContentEditable (v bool ) HTMLNav {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlNav ) DataSet (k string , v any ) HTMLNav {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlNav ) DataSets (ds map [string ]any ) HTMLNav {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlNav ) Dir (format string , v ...any ) HTMLNav {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlNav ) Draggable (v bool ) HTMLNav {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlNav ) Hidden (v bool ) HTMLNav {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlNav ) ID (format string , v ...any ) HTMLNav {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlNav ) Lang (format string , v ...any ) HTMLNav {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlNav ) Role (format string , v ...any ) HTMLNav {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlNav ) Spellcheck (v bool ) HTMLNav {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlNav ) Style (k , format string , v ...any ) HTMLNav {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlNav ) Styles (s map [string ]string ) HTMLNav {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlNav ) TabIndex (v int ) HTMLNav {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlNav ) Title (format string , v ...any ) HTMLNav {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlNav ) On (event string , h EventHandler , options ...EventOption ) HTMLNav {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlNav ) OnBlur (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("blur" , h , options ...)
}
func (e *htmlNav ) OnChange (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("change" , h , options ...)
}
func (e *htmlNav ) OnClick (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("click" , h , options ...)
}
func (e *htmlNav ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlNav ) OnCopy (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("copy" , h , options ...)
}
func (e *htmlNav ) OnCut (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("cut" , h , options ...)
}
func (e *htmlNav ) OnDblClick (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlNav ) OnDrag (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("drag" , h , options ...)
}
func (e *htmlNav ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("dragend" , h , options ...)
}
func (e *htmlNav ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlNav ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlNav ) OnDragOver (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("dragover" , h , options ...)
}
func (e *htmlNav ) OnDragStart (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlNav ) OnDrop (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("drop" , h , options ...)
}
func (e *htmlNav ) OnFocus (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("focus" , h , options ...)
}
func (e *htmlNav ) OnInput (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("input" , h , options ...)
}
func (e *htmlNav ) OnInvalid (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("invalid" , h , options ...)
}
func (e *htmlNav ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("keydown" , h , options ...)
}
func (e *htmlNav ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("keypress" , h , options ...)
}
func (e *htmlNav ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("keyup" , h , options ...)
}
func (e *htmlNav ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlNav ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlNav ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlNav ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlNav ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlNav ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlNav ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlNav ) OnPaste (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("paste" , h , options ...)
}
func (e *htmlNav ) OnReset (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("reset" , h , options ...)
}
func (e *htmlNav ) OnScroll (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("scroll" , h , options ...)
}
func (e *htmlNav ) OnSearch (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("search" , h , options ...)
}
func (e *htmlNav ) OnSelect (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("select" , h , options ...)
}
func (e *htmlNav ) OnSubmit (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("submit" , h , options ...)
}
func (e *htmlNav ) OnWheel (h EventHandler , options ...EventOption ) HTMLNav {
return e .On ("wheel" , h , options ...)
}
func (e *htmlNav ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlNav ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlNav ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlNav ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlNav ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlNav ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLNoScript interface {
HTML
Body (elems ...UI ) HTMLNoScript
Text (v any ) HTMLNoScript
Textf (format string , v ...any ) HTMLNoScript
AccessKey (format string , v ...any ) HTMLNoScript
Aria (k string , v any ) HTMLNoScript
Attr (n string , v any ) HTMLNoScript
Class (v ...string ) HTMLNoScript
ContentEditable (v bool ) HTMLNoScript
DataSet (k string , v any ) HTMLNoScript
DataSets (ds map [string ]any ) HTMLNoScript
Dir (format string , v ...any ) HTMLNoScript
Draggable (v bool ) HTMLNoScript
Hidden (v bool ) HTMLNoScript
ID (format string , v ...any ) HTMLNoScript
Lang (format string , v ...any ) HTMLNoScript
Role (format string , v ...any ) HTMLNoScript
Spellcheck (v bool ) HTMLNoScript
Style (k, format string , v ...any ) HTMLNoScript
Styles (s map [string ]string ) HTMLNoScript
TabIndex (v int ) HTMLNoScript
Title (format string , v ...any ) HTMLNoScript
On (event string , h EventHandler , options ...EventOption ) HTMLNoScript
}
func NoScript () HTMLNoScript {
e := &htmlNoScript {
htmlElement : htmlElement {
tag : "noscript" ,
isSelfClosing : false ,
},
}
return e
}
type htmlNoScript struct {
htmlElement
}
func (e *htmlNoScript ) Body (v ...UI ) HTMLNoScript {
return e .setBody (FilterUIElems (v ...)).(*htmlNoScript )
}
func (e *htmlNoScript ) Text (v any ) HTMLNoScript {
return e .Body (Text (v ))
}
func (e *htmlNoScript ) Textf (format string , v ...any ) HTMLNoScript {
return e .Body (Textf (format , v ...))
}
func (e *htmlNoScript ) AccessKey (format string , v ...any ) HTMLNoScript {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlNoScript ) Aria (k string , v any ) HTMLNoScript {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlNoScript ) Attr (n string , v any ) HTMLNoScript {
e .setAttr (n , v )
return e
}
func (e *htmlNoScript ) Class (v ...string ) HTMLNoScript {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlNoScript ) ContentEditable (v bool ) HTMLNoScript {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlNoScript ) DataSet (k string , v any ) HTMLNoScript {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlNoScript ) DataSets (ds map [string ]any ) HTMLNoScript {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlNoScript ) Dir (format string , v ...any ) HTMLNoScript {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlNoScript ) Draggable (v bool ) HTMLNoScript {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlNoScript ) Hidden (v bool ) HTMLNoScript {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlNoScript ) ID (format string , v ...any ) HTMLNoScript {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlNoScript ) Lang (format string , v ...any ) HTMLNoScript {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlNoScript ) Role (format string , v ...any ) HTMLNoScript {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlNoScript ) Spellcheck (v bool ) HTMLNoScript {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlNoScript ) Style (k , format string , v ...any ) HTMLNoScript {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlNoScript ) Styles (s map [string ]string ) HTMLNoScript {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlNoScript ) TabIndex (v int ) HTMLNoScript {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlNoScript ) Title (format string , v ...any ) HTMLNoScript {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlNoScript ) On (event string , h EventHandler , options ...EventOption ) HTMLNoScript {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlNoScript ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlNoScript ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlNoScript ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlNoScript ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlNoScript ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlNoScript ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLObject interface {
HTML
Body (elems ...UI ) HTMLObject
Text (v any ) HTMLObject
Textf (format string , v ...any ) HTMLObject
AccessKey (format string , v ...any ) HTMLObject
Aria (k string , v any ) HTMLObject
Attr (n string , v any ) HTMLObject
Class (v ...string ) HTMLObject
ContentEditable (v bool ) HTMLObject
Data (format string , v ...any ) HTMLObject
DataSet (k string , v any ) HTMLObject
DataSets (ds map [string ]any ) HTMLObject
Dir (format string , v ...any ) HTMLObject
Draggable (v bool ) HTMLObject
Form (format string , v ...any ) HTMLObject
Height (v int ) HTMLObject
Hidden (v bool ) HTMLObject
ID (format string , v ...any ) HTMLObject
Lang (format string , v ...any ) HTMLObject
Name (format string , v ...any ) HTMLObject
Role (format string , v ...any ) HTMLObject
Spellcheck (v bool ) HTMLObject
Style (k, format string , v ...any ) HTMLObject
Styles (s map [string ]string ) HTMLObject
TabIndex (v int ) HTMLObject
Title (format string , v ...any ) HTMLObject
Type (format string , v ...any ) HTMLObject
UseMap (format string , v ...any ) HTMLObject
Width (v int ) HTMLObject
On (event string , h EventHandler , options ...EventOption ) HTMLObject
OnAbort (h EventHandler , options ...EventOption ) HTMLObject
OnBlur (h EventHandler , options ...EventOption ) HTMLObject
OnCanPlay (h EventHandler , options ...EventOption ) HTMLObject
OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLObject
OnChange (h EventHandler , options ...EventOption ) HTMLObject
OnClick (h EventHandler , options ...EventOption ) HTMLObject
OnContextMenu (h EventHandler , options ...EventOption ) HTMLObject
OnCopy (h EventHandler , options ...EventOption ) HTMLObject
OnCueChange (h EventHandler , options ...EventOption ) HTMLObject
OnCut (h EventHandler , options ...EventOption ) HTMLObject
OnDblClick (h EventHandler , options ...EventOption ) HTMLObject
OnDrag (h EventHandler , options ...EventOption ) HTMLObject
OnDragEnd (h EventHandler , options ...EventOption ) HTMLObject
OnDragEnter (h EventHandler , options ...EventOption ) HTMLObject
OnDragLeave (h EventHandler , options ...EventOption ) HTMLObject
OnDragOver (h EventHandler , options ...EventOption ) HTMLObject
OnDragStart (h EventHandler , options ...EventOption ) HTMLObject
OnDrop (h EventHandler , options ...EventOption ) HTMLObject
OnDurationChange (h EventHandler , options ...EventOption ) HTMLObject
OnEmptied (h EventHandler , options ...EventOption ) HTMLObject
OnEnded (h EventHandler , options ...EventOption ) HTMLObject
OnError (h EventHandler , options ...EventOption ) HTMLObject
OnFocus (h EventHandler , options ...EventOption ) HTMLObject
OnInput (h EventHandler , options ...EventOption ) HTMLObject
OnInvalid (h EventHandler , options ...EventOption ) HTMLObject
OnKeyDown (h EventHandler , options ...EventOption ) HTMLObject
OnKeyPress (h EventHandler , options ...EventOption ) HTMLObject
OnKeyUp (h EventHandler , options ...EventOption ) HTMLObject
OnLoadStart (h EventHandler , options ...EventOption ) HTMLObject
OnLoadedData (h EventHandler , options ...EventOption ) HTMLObject
OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLObject
OnMouseDown (h EventHandler , options ...EventOption ) HTMLObject
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLObject
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLObject
OnMouseMove (h EventHandler , options ...EventOption ) HTMLObject
OnMouseOut (h EventHandler , options ...EventOption ) HTMLObject
OnMouseOver (h EventHandler , options ...EventOption ) HTMLObject
OnMouseUp (h EventHandler , options ...EventOption ) HTMLObject
OnPaste (h EventHandler , options ...EventOption ) HTMLObject
OnPause (h EventHandler , options ...EventOption ) HTMLObject
OnPlay (h EventHandler , options ...EventOption ) HTMLObject
OnPlaying (h EventHandler , options ...EventOption ) HTMLObject
OnProgress (h EventHandler , options ...EventOption ) HTMLObject
OnRateChange (h EventHandler , options ...EventOption ) HTMLObject
OnReset (h EventHandler , options ...EventOption ) HTMLObject
OnScroll (h EventHandler , options ...EventOption ) HTMLObject
OnSearch (h EventHandler , options ...EventOption ) HTMLObject
OnSeeked (h EventHandler , options ...EventOption ) HTMLObject
OnSeeking (h EventHandler , options ...EventOption ) HTMLObject
OnSelect (h EventHandler , options ...EventOption ) HTMLObject
OnStalled (h EventHandler , options ...EventOption ) HTMLObject
OnSubmit (h EventHandler , options ...EventOption ) HTMLObject
OnSuspend (h EventHandler , options ...EventOption ) HTMLObject
OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLObject
OnVolumeChange (h EventHandler , options ...EventOption ) HTMLObject
OnWaiting (h EventHandler , options ...EventOption ) HTMLObject
OnWheel (h EventHandler , options ...EventOption ) HTMLObject
}
func Object () HTMLObject {
e := &htmlObject {
htmlElement : htmlElement {
tag : "object" ,
isSelfClosing : false ,
},
}
return e
}
type htmlObject struct {
htmlElement
}
func (e *htmlObject ) Body (v ...UI ) HTMLObject {
return e .setBody (FilterUIElems (v ...)).(*htmlObject )
}
func (e *htmlObject ) Text (v any ) HTMLObject {
return e .Body (Text (v ))
}
func (e *htmlObject ) Textf (format string , v ...any ) HTMLObject {
return e .Body (Textf (format , v ...))
}
func (e *htmlObject ) AccessKey (format string , v ...any ) HTMLObject {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Aria (k string , v any ) HTMLObject {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlObject ) Attr (n string , v any ) HTMLObject {
e .setAttr (n , v )
return e
}
func (e *htmlObject ) Class (v ...string ) HTMLObject {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlObject ) ContentEditable (v bool ) HTMLObject {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlObject ) Data (format string , v ...any ) HTMLObject {
e .setAttr ("data" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) DataSet (k string , v any ) HTMLObject {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlObject ) DataSets (ds map [string ]any ) HTMLObject {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlObject ) Dir (format string , v ...any ) HTMLObject {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Draggable (v bool ) HTMLObject {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlObject ) Form (format string , v ...any ) HTMLObject {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Height (v int ) HTMLObject {
e .setAttr ("height" , v )
return e
}
func (e *htmlObject ) Hidden (v bool ) HTMLObject {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlObject ) ID (format string , v ...any ) HTMLObject {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Lang (format string , v ...any ) HTMLObject {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Name (format string , v ...any ) HTMLObject {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Role (format string , v ...any ) HTMLObject {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Spellcheck (v bool ) HTMLObject {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlObject ) Style (k , format string , v ...any ) HTMLObject {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlObject ) Styles (s map [string ]string ) HTMLObject {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlObject ) TabIndex (v int ) HTMLObject {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlObject ) Title (format string , v ...any ) HTMLObject {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Type (format string , v ...any ) HTMLObject {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) UseMap (format string , v ...any ) HTMLObject {
e .setAttr ("usemap" , FormatString (format , v ...))
return e
}
func (e *htmlObject ) Width (v int ) HTMLObject {
e .setAttr ("width" , v )
return e
}
func (e *htmlObject ) On (event string , h EventHandler , options ...EventOption ) HTMLObject {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlObject ) OnAbort (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("abort" , h , options ...)
}
func (e *htmlObject ) OnBlur (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("blur" , h , options ...)
}
func (e *htmlObject ) OnCanPlay (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("canplay" , h , options ...)
}
func (e *htmlObject ) OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("canplaythrough" , h , options ...)
}
func (e *htmlObject ) OnChange (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("change" , h , options ...)
}
func (e *htmlObject ) OnClick (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("click" , h , options ...)
}
func (e *htmlObject ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlObject ) OnCopy (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("copy" , h , options ...)
}
func (e *htmlObject ) OnCueChange (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("cuechange" , h , options ...)
}
func (e *htmlObject ) OnCut (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("cut" , h , options ...)
}
func (e *htmlObject ) OnDblClick (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlObject ) OnDrag (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("drag" , h , options ...)
}
func (e *htmlObject ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("dragend" , h , options ...)
}
func (e *htmlObject ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlObject ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlObject ) OnDragOver (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("dragover" , h , options ...)
}
func (e *htmlObject ) OnDragStart (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlObject ) OnDrop (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("drop" , h , options ...)
}
func (e *htmlObject ) OnDurationChange (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("durationchange" , h , options ...)
}
func (e *htmlObject ) OnEmptied (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("emptied" , h , options ...)
}
func (e *htmlObject ) OnEnded (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("ended" , h , options ...)
}
func (e *htmlObject ) OnError (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("error" , h , options ...)
}
func (e *htmlObject ) OnFocus (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("focus" , h , options ...)
}
func (e *htmlObject ) OnInput (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("input" , h , options ...)
}
func (e *htmlObject ) OnInvalid (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("invalid" , h , options ...)
}
func (e *htmlObject ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("keydown" , h , options ...)
}
func (e *htmlObject ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("keypress" , h , options ...)
}
func (e *htmlObject ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("keyup" , h , options ...)
}
func (e *htmlObject ) OnLoadStart (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("loadstart" , h , options ...)
}
func (e *htmlObject ) OnLoadedData (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("loadeddata" , h , options ...)
}
func (e *htmlObject ) OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("loadedmetadata" , h , options ...)
}
func (e *htmlObject ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlObject ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlObject ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlObject ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlObject ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlObject ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlObject ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlObject ) OnPaste (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("paste" , h , options ...)
}
func (e *htmlObject ) OnPause (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("pause" , h , options ...)
}
func (e *htmlObject ) OnPlay (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("play" , h , options ...)
}
func (e *htmlObject ) OnPlaying (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("playing" , h , options ...)
}
func (e *htmlObject ) OnProgress (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("progress" , h , options ...)
}
func (e *htmlObject ) OnRateChange (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("ratechange" , h , options ...)
}
func (e *htmlObject ) OnReset (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("reset" , h , options ...)
}
func (e *htmlObject ) OnScroll (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("scroll" , h , options ...)
}
func (e *htmlObject ) OnSearch (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("search" , h , options ...)
}
func (e *htmlObject ) OnSeeked (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("seeked" , h , options ...)
}
func (e *htmlObject ) OnSeeking (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("seeking" , h , options ...)
}
func (e *htmlObject ) OnSelect (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("select" , h , options ...)
}
func (e *htmlObject ) OnStalled (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("stalled" , h , options ...)
}
func (e *htmlObject ) OnSubmit (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("submit" , h , options ...)
}
func (e *htmlObject ) OnSuspend (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("suspend" , h , options ...)
}
func (e *htmlObject ) OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("timeupdate" , h , options ...)
}
func (e *htmlObject ) OnVolumeChange (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("volumechange" , h , options ...)
}
func (e *htmlObject ) OnWaiting (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("waiting" , h , options ...)
}
func (e *htmlObject ) OnWheel (h EventHandler , options ...EventOption ) HTMLObject {
return e .On ("wheel" , h , options ...)
}
func (e *htmlObject ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlObject ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlObject ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlObject ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlObject ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlObject ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLOl interface {
HTML
Body (elems ...UI ) HTMLOl
Text (v any ) HTMLOl
Textf (format string , v ...any ) HTMLOl
AccessKey (format string , v ...any ) HTMLOl
Aria (k string , v any ) HTMLOl
Attr (n string , v any ) HTMLOl
Class (v ...string ) HTMLOl
ContentEditable (v bool ) HTMLOl
DataSet (k string , v any ) HTMLOl
DataSets (ds map [string ]any ) HTMLOl
Dir (format string , v ...any ) HTMLOl
Draggable (v bool ) HTMLOl
Hidden (v bool ) HTMLOl
ID (format string , v ...any ) HTMLOl
Lang (format string , v ...any ) HTMLOl
Reversed (v bool ) HTMLOl
Role (format string , v ...any ) HTMLOl
Spellcheck (v bool ) HTMLOl
Start (v int ) HTMLOl
Style (k, format string , v ...any ) HTMLOl
Styles (s map [string ]string ) HTMLOl
TabIndex (v int ) HTMLOl
Title (format string , v ...any ) HTMLOl
Type (format string , v ...any ) HTMLOl
On (event string , h EventHandler , options ...EventOption ) HTMLOl
OnBlur (h EventHandler , options ...EventOption ) HTMLOl
OnChange (h EventHandler , options ...EventOption ) HTMLOl
OnClick (h EventHandler , options ...EventOption ) HTMLOl
OnContextMenu (h EventHandler , options ...EventOption ) HTMLOl
OnCopy (h EventHandler , options ...EventOption ) HTMLOl
OnCut (h EventHandler , options ...EventOption ) HTMLOl
OnDblClick (h EventHandler , options ...EventOption ) HTMLOl
OnDrag (h EventHandler , options ...EventOption ) HTMLOl
OnDragEnd (h EventHandler , options ...EventOption ) HTMLOl
OnDragEnter (h EventHandler , options ...EventOption ) HTMLOl
OnDragLeave (h EventHandler , options ...EventOption ) HTMLOl
OnDragOver (h EventHandler , options ...EventOption ) HTMLOl
OnDragStart (h EventHandler , options ...EventOption ) HTMLOl
OnDrop (h EventHandler , options ...EventOption ) HTMLOl
OnFocus (h EventHandler , options ...EventOption ) HTMLOl
OnInput (h EventHandler , options ...EventOption ) HTMLOl
OnInvalid (h EventHandler , options ...EventOption ) HTMLOl
OnKeyDown (h EventHandler , options ...EventOption ) HTMLOl
OnKeyPress (h EventHandler , options ...EventOption ) HTMLOl
OnKeyUp (h EventHandler , options ...EventOption ) HTMLOl
OnMouseDown (h EventHandler , options ...EventOption ) HTMLOl
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOl
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOl
OnMouseMove (h EventHandler , options ...EventOption ) HTMLOl
OnMouseOut (h EventHandler , options ...EventOption ) HTMLOl
OnMouseOver (h EventHandler , options ...EventOption ) HTMLOl
OnMouseUp (h EventHandler , options ...EventOption ) HTMLOl
OnPaste (h EventHandler , options ...EventOption ) HTMLOl
OnReset (h EventHandler , options ...EventOption ) HTMLOl
OnScroll (h EventHandler , options ...EventOption ) HTMLOl
OnSearch (h EventHandler , options ...EventOption ) HTMLOl
OnSelect (h EventHandler , options ...EventOption ) HTMLOl
OnSubmit (h EventHandler , options ...EventOption ) HTMLOl
OnWheel (h EventHandler , options ...EventOption ) HTMLOl
}
func Ol () HTMLOl {
e := &htmlOl {
htmlElement : htmlElement {
tag : "ol" ,
isSelfClosing : false ,
},
}
return e
}
type htmlOl struct {
htmlElement
}
func (e *htmlOl ) Body (v ...UI ) HTMLOl {
return e .setBody (FilterUIElems (v ...)).(*htmlOl )
}
func (e *htmlOl ) Text (v any ) HTMLOl {
return e .Body (Text (v ))
}
func (e *htmlOl ) Textf (format string , v ...any ) HTMLOl {
return e .Body (Textf (format , v ...))
}
func (e *htmlOl ) AccessKey (format string , v ...any ) HTMLOl {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlOl ) Aria (k string , v any ) HTMLOl {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOl ) Attr (n string , v any ) HTMLOl {
e .setAttr (n , v )
return e
}
func (e *htmlOl ) Class (v ...string ) HTMLOl {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlOl ) ContentEditable (v bool ) HTMLOl {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlOl ) DataSet (k string , v any ) HTMLOl {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOl ) DataSets (ds map [string ]any ) HTMLOl {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlOl ) Dir (format string , v ...any ) HTMLOl {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlOl ) Draggable (v bool ) HTMLOl {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlOl ) Hidden (v bool ) HTMLOl {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlOl ) ID (format string , v ...any ) HTMLOl {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlOl ) Lang (format string , v ...any ) HTMLOl {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlOl ) Reversed (v bool ) HTMLOl {
e .setAttr ("reversed" , v )
return e
}
func (e *htmlOl ) Role (format string , v ...any ) HTMLOl {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlOl ) Spellcheck (v bool ) HTMLOl {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlOl ) Start (v int ) HTMLOl {
e .setAttr ("start" , v )
return e
}
func (e *htmlOl ) Style (k , format string , v ...any ) HTMLOl {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlOl ) Styles (s map [string ]string ) HTMLOl {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlOl ) TabIndex (v int ) HTMLOl {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlOl ) Title (format string , v ...any ) HTMLOl {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlOl ) Type (format string , v ...any ) HTMLOl {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlOl ) On (event string , h EventHandler , options ...EventOption ) HTMLOl {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlOl ) OnBlur (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("blur" , h , options ...)
}
func (e *htmlOl ) OnChange (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("change" , h , options ...)
}
func (e *htmlOl ) OnClick (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("click" , h , options ...)
}
func (e *htmlOl ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlOl ) OnCopy (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("copy" , h , options ...)
}
func (e *htmlOl ) OnCut (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("cut" , h , options ...)
}
func (e *htmlOl ) OnDblClick (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlOl ) OnDrag (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("drag" , h , options ...)
}
func (e *htmlOl ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("dragend" , h , options ...)
}
func (e *htmlOl ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlOl ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlOl ) OnDragOver (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("dragover" , h , options ...)
}
func (e *htmlOl ) OnDragStart (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlOl ) OnDrop (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("drop" , h , options ...)
}
func (e *htmlOl ) OnFocus (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("focus" , h , options ...)
}
func (e *htmlOl ) OnInput (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("input" , h , options ...)
}
func (e *htmlOl ) OnInvalid (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("invalid" , h , options ...)
}
func (e *htmlOl ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("keydown" , h , options ...)
}
func (e *htmlOl ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("keypress" , h , options ...)
}
func (e *htmlOl ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("keyup" , h , options ...)
}
func (e *htmlOl ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlOl ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlOl ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlOl ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlOl ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlOl ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlOl ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlOl ) OnPaste (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("paste" , h , options ...)
}
func (e *htmlOl ) OnReset (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("reset" , h , options ...)
}
func (e *htmlOl ) OnScroll (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("scroll" , h , options ...)
}
func (e *htmlOl ) OnSearch (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("search" , h , options ...)
}
func (e *htmlOl ) OnSelect (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("select" , h , options ...)
}
func (e *htmlOl ) OnSubmit (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("submit" , h , options ...)
}
func (e *htmlOl ) OnWheel (h EventHandler , options ...EventOption ) HTMLOl {
return e .On ("wheel" , h , options ...)
}
func (e *htmlOl ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlOl ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlOl ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlOl ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlOl ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlOl ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLOptGroup interface {
HTML
Body (elems ...UI ) HTMLOptGroup
Text (v any ) HTMLOptGroup
Textf (format string , v ...any ) HTMLOptGroup
AccessKey (format string , v ...any ) HTMLOptGroup
Aria (k string , v any ) HTMLOptGroup
Attr (n string , v any ) HTMLOptGroup
Class (v ...string ) HTMLOptGroup
ContentEditable (v bool ) HTMLOptGroup
DataSet (k string , v any ) HTMLOptGroup
DataSets (ds map [string ]any ) HTMLOptGroup
Dir (format string , v ...any ) HTMLOptGroup
Disabled (v bool ) HTMLOptGroup
Draggable (v bool ) HTMLOptGroup
Hidden (v bool ) HTMLOptGroup
ID (format string , v ...any ) HTMLOptGroup
Label (format string , v ...any ) HTMLOptGroup
Lang (format string , v ...any ) HTMLOptGroup
Role (format string , v ...any ) HTMLOptGroup
Spellcheck (v bool ) HTMLOptGroup
Style (k, format string , v ...any ) HTMLOptGroup
Styles (s map [string ]string ) HTMLOptGroup
TabIndex (v int ) HTMLOptGroup
Title (format string , v ...any ) HTMLOptGroup
On (event string , h EventHandler , options ...EventOption ) HTMLOptGroup
OnBlur (h EventHandler , options ...EventOption ) HTMLOptGroup
OnChange (h EventHandler , options ...EventOption ) HTMLOptGroup
OnClick (h EventHandler , options ...EventOption ) HTMLOptGroup
OnContextMenu (h EventHandler , options ...EventOption ) HTMLOptGroup
OnCopy (h EventHandler , options ...EventOption ) HTMLOptGroup
OnCut (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDblClick (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDrag (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDragEnd (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDragEnter (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDragLeave (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDragOver (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDragStart (h EventHandler , options ...EventOption ) HTMLOptGroup
OnDrop (h EventHandler , options ...EventOption ) HTMLOptGroup
OnFocus (h EventHandler , options ...EventOption ) HTMLOptGroup
OnInput (h EventHandler , options ...EventOption ) HTMLOptGroup
OnInvalid (h EventHandler , options ...EventOption ) HTMLOptGroup
OnKeyDown (h EventHandler , options ...EventOption ) HTMLOptGroup
OnKeyPress (h EventHandler , options ...EventOption ) HTMLOptGroup
OnKeyUp (h EventHandler , options ...EventOption ) HTMLOptGroup
OnMouseDown (h EventHandler , options ...EventOption ) HTMLOptGroup
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOptGroup
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOptGroup
OnMouseMove (h EventHandler , options ...EventOption ) HTMLOptGroup
OnMouseOut (h EventHandler , options ...EventOption ) HTMLOptGroup
OnMouseOver (h EventHandler , options ...EventOption ) HTMLOptGroup
OnMouseUp (h EventHandler , options ...EventOption ) HTMLOptGroup
OnPaste (h EventHandler , options ...EventOption ) HTMLOptGroup
OnReset (h EventHandler , options ...EventOption ) HTMLOptGroup
OnScroll (h EventHandler , options ...EventOption ) HTMLOptGroup
OnSearch (h EventHandler , options ...EventOption ) HTMLOptGroup
OnSelect (h EventHandler , options ...EventOption ) HTMLOptGroup
OnSubmit (h EventHandler , options ...EventOption ) HTMLOptGroup
OnWheel (h EventHandler , options ...EventOption ) HTMLOptGroup
}
func OptGroup () HTMLOptGroup {
e := &htmlOptGroup {
htmlElement : htmlElement {
tag : "optgroup" ,
isSelfClosing : false ,
},
}
return e
}
type htmlOptGroup struct {
htmlElement
}
func (e *htmlOptGroup ) Body (v ...UI ) HTMLOptGroup {
return e .setBody (FilterUIElems (v ...)).(*htmlOptGroup )
}
func (e *htmlOptGroup ) Text (v any ) HTMLOptGroup {
return e .Body (Text (v ))
}
func (e *htmlOptGroup ) Textf (format string , v ...any ) HTMLOptGroup {
return e .Body (Textf (format , v ...))
}
func (e *htmlOptGroup ) AccessKey (format string , v ...any ) HTMLOptGroup {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) Aria (k string , v any ) HTMLOptGroup {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOptGroup ) Attr (n string , v any ) HTMLOptGroup {
e .setAttr (n , v )
return e
}
func (e *htmlOptGroup ) Class (v ...string ) HTMLOptGroup {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlOptGroup ) ContentEditable (v bool ) HTMLOptGroup {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlOptGroup ) DataSet (k string , v any ) HTMLOptGroup {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOptGroup ) DataSets (ds map [string ]any ) HTMLOptGroup {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlOptGroup ) Dir (format string , v ...any ) HTMLOptGroup {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) Disabled (v bool ) HTMLOptGroup {
e .setAttr ("disabled" , v )
return e
}
func (e *htmlOptGroup ) Draggable (v bool ) HTMLOptGroup {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlOptGroup ) Hidden (v bool ) HTMLOptGroup {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlOptGroup ) ID (format string , v ...any ) HTMLOptGroup {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) Label (format string , v ...any ) HTMLOptGroup {
e .setAttr ("label" , FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) Lang (format string , v ...any ) HTMLOptGroup {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) Role (format string , v ...any ) HTMLOptGroup {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) Spellcheck (v bool ) HTMLOptGroup {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlOptGroup ) Style (k , format string , v ...any ) HTMLOptGroup {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) Styles (s map [string ]string ) HTMLOptGroup {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlOptGroup ) TabIndex (v int ) HTMLOptGroup {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlOptGroup ) Title (format string , v ...any ) HTMLOptGroup {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlOptGroup ) On (event string , h EventHandler , options ...EventOption ) HTMLOptGroup {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlOptGroup ) OnBlur (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("blur" , h , options ...)
}
func (e *htmlOptGroup ) OnChange (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("change" , h , options ...)
}
func (e *htmlOptGroup ) OnClick (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("click" , h , options ...)
}
func (e *htmlOptGroup ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlOptGroup ) OnCopy (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("copy" , h , options ...)
}
func (e *htmlOptGroup ) OnCut (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("cut" , h , options ...)
}
func (e *htmlOptGroup ) OnDblClick (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlOptGroup ) OnDrag (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("drag" , h , options ...)
}
func (e *htmlOptGroup ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("dragend" , h , options ...)
}
func (e *htmlOptGroup ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlOptGroup ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlOptGroup ) OnDragOver (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("dragover" , h , options ...)
}
func (e *htmlOptGroup ) OnDragStart (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlOptGroup ) OnDrop (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("drop" , h , options ...)
}
func (e *htmlOptGroup ) OnFocus (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("focus" , h , options ...)
}
func (e *htmlOptGroup ) OnInput (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("input" , h , options ...)
}
func (e *htmlOptGroup ) OnInvalid (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("invalid" , h , options ...)
}
func (e *htmlOptGroup ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("keydown" , h , options ...)
}
func (e *htmlOptGroup ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("keypress" , h , options ...)
}
func (e *htmlOptGroup ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("keyup" , h , options ...)
}
func (e *htmlOptGroup ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlOptGroup ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlOptGroup ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlOptGroup ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlOptGroup ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlOptGroup ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlOptGroup ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlOptGroup ) OnPaste (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("paste" , h , options ...)
}
func (e *htmlOptGroup ) OnReset (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("reset" , h , options ...)
}
func (e *htmlOptGroup ) OnScroll (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("scroll" , h , options ...)
}
func (e *htmlOptGroup ) OnSearch (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("search" , h , options ...)
}
func (e *htmlOptGroup ) OnSelect (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("select" , h , options ...)
}
func (e *htmlOptGroup ) OnSubmit (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("submit" , h , options ...)
}
func (e *htmlOptGroup ) OnWheel (h EventHandler , options ...EventOption ) HTMLOptGroup {
return e .On ("wheel" , h , options ...)
}
func (e *htmlOptGroup ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlOptGroup ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlOptGroup ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlOptGroup ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlOptGroup ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlOptGroup ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLOption interface {
HTML
Body (elems ...UI ) HTMLOption
Text (v any ) HTMLOption
Textf (format string , v ...any ) HTMLOption
AccessKey (format string , v ...any ) HTMLOption
Aria (k string , v any ) HTMLOption
Attr (n string , v any ) HTMLOption
Class (v ...string ) HTMLOption
ContentEditable (v bool ) HTMLOption
DataSet (k string , v any ) HTMLOption
DataSets (ds map [string ]any ) HTMLOption
Dir (format string , v ...any ) HTMLOption
Disabled (v bool ) HTMLOption
Draggable (v bool ) HTMLOption
Hidden (v bool ) HTMLOption
ID (format string , v ...any ) HTMLOption
Label (format string , v ...any ) HTMLOption
Lang (format string , v ...any ) HTMLOption
Role (format string , v ...any ) HTMLOption
Selected (v bool ) HTMLOption
Spellcheck (v bool ) HTMLOption
Style (k, format string , v ...any ) HTMLOption
Styles (s map [string ]string ) HTMLOption
TabIndex (v int ) HTMLOption
Title (format string , v ...any ) HTMLOption
Value (v any ) HTMLOption
On (event string , h EventHandler , options ...EventOption ) HTMLOption
OnBlur (h EventHandler , options ...EventOption ) HTMLOption
OnChange (h EventHandler , options ...EventOption ) HTMLOption
OnClick (h EventHandler , options ...EventOption ) HTMLOption
OnContextMenu (h EventHandler , options ...EventOption ) HTMLOption
OnCopy (h EventHandler , options ...EventOption ) HTMLOption
OnCut (h EventHandler , options ...EventOption ) HTMLOption
OnDblClick (h EventHandler , options ...EventOption ) HTMLOption
OnDrag (h EventHandler , options ...EventOption ) HTMLOption
OnDragEnd (h EventHandler , options ...EventOption ) HTMLOption
OnDragEnter (h EventHandler , options ...EventOption ) HTMLOption
OnDragLeave (h EventHandler , options ...EventOption ) HTMLOption
OnDragOver (h EventHandler , options ...EventOption ) HTMLOption
OnDragStart (h EventHandler , options ...EventOption ) HTMLOption
OnDrop (h EventHandler , options ...EventOption ) HTMLOption
OnFocus (h EventHandler , options ...EventOption ) HTMLOption
OnInput (h EventHandler , options ...EventOption ) HTMLOption
OnInvalid (h EventHandler , options ...EventOption ) HTMLOption
OnKeyDown (h EventHandler , options ...EventOption ) HTMLOption
OnKeyPress (h EventHandler , options ...EventOption ) HTMLOption
OnKeyUp (h EventHandler , options ...EventOption ) HTMLOption
OnMouseDown (h EventHandler , options ...EventOption ) HTMLOption
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOption
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOption
OnMouseMove (h EventHandler , options ...EventOption ) HTMLOption
OnMouseOut (h EventHandler , options ...EventOption ) HTMLOption
OnMouseOver (h EventHandler , options ...EventOption ) HTMLOption
OnMouseUp (h EventHandler , options ...EventOption ) HTMLOption
OnPaste (h EventHandler , options ...EventOption ) HTMLOption
OnReset (h EventHandler , options ...EventOption ) HTMLOption
OnScroll (h EventHandler , options ...EventOption ) HTMLOption
OnSearch (h EventHandler , options ...EventOption ) HTMLOption
OnSelect (h EventHandler , options ...EventOption ) HTMLOption
OnSubmit (h EventHandler , options ...EventOption ) HTMLOption
OnWheel (h EventHandler , options ...EventOption ) HTMLOption
}
func Option () HTMLOption {
e := &htmlOption {
htmlElement : htmlElement {
tag : "option" ,
isSelfClosing : false ,
},
}
return e
}
type htmlOption struct {
htmlElement
}
func (e *htmlOption ) Body (v ...UI ) HTMLOption {
return e .setBody (FilterUIElems (v ...)).(*htmlOption )
}
func (e *htmlOption ) Text (v any ) HTMLOption {
return e .Body (Text (v ))
}
func (e *htmlOption ) Textf (format string , v ...any ) HTMLOption {
return e .Body (Textf (format , v ...))
}
func (e *htmlOption ) AccessKey (format string , v ...any ) HTMLOption {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlOption ) Aria (k string , v any ) HTMLOption {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOption ) Attr (n string , v any ) HTMLOption {
e .setAttr (n , v )
return e
}
func (e *htmlOption ) Class (v ...string ) HTMLOption {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlOption ) ContentEditable (v bool ) HTMLOption {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlOption ) DataSet (k string , v any ) HTMLOption {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOption ) DataSets (ds map [string ]any ) HTMLOption {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlOption ) Dir (format string , v ...any ) HTMLOption {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlOption ) Disabled (v bool ) HTMLOption {
e .setAttr ("disabled" , v )
return e
}
func (e *htmlOption ) Draggable (v bool ) HTMLOption {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlOption ) Hidden (v bool ) HTMLOption {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlOption ) ID (format string , v ...any ) HTMLOption {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlOption ) Label (format string , v ...any ) HTMLOption {
e .setAttr ("label" , FormatString (format , v ...))
return e
}
func (e *htmlOption ) Lang (format string , v ...any ) HTMLOption {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlOption ) Role (format string , v ...any ) HTMLOption {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlOption ) Selected (v bool ) HTMLOption {
e .setAttr ("selected" , v )
return e
}
func (e *htmlOption ) Spellcheck (v bool ) HTMLOption {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlOption ) Style (k , format string , v ...any ) HTMLOption {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlOption ) Styles (s map [string ]string ) HTMLOption {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlOption ) TabIndex (v int ) HTMLOption {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlOption ) Title (format string , v ...any ) HTMLOption {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlOption ) Value (v any ) HTMLOption {
e .setAttr ("value" , v )
return e
}
func (e *htmlOption ) On (event string , h EventHandler , options ...EventOption ) HTMLOption {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlOption ) OnBlur (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("blur" , h , options ...)
}
func (e *htmlOption ) OnChange (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("change" , h , options ...)
}
func (e *htmlOption ) OnClick (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("click" , h , options ...)
}
func (e *htmlOption ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlOption ) OnCopy (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("copy" , h , options ...)
}
func (e *htmlOption ) OnCut (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("cut" , h , options ...)
}
func (e *htmlOption ) OnDblClick (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlOption ) OnDrag (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("drag" , h , options ...)
}
func (e *htmlOption ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("dragend" , h , options ...)
}
func (e *htmlOption ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlOption ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlOption ) OnDragOver (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("dragover" , h , options ...)
}
func (e *htmlOption ) OnDragStart (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlOption ) OnDrop (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("drop" , h , options ...)
}
func (e *htmlOption ) OnFocus (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("focus" , h , options ...)
}
func (e *htmlOption ) OnInput (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("input" , h , options ...)
}
func (e *htmlOption ) OnInvalid (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("invalid" , h , options ...)
}
func (e *htmlOption ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("keydown" , h , options ...)
}
func (e *htmlOption ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("keypress" , h , options ...)
}
func (e *htmlOption ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("keyup" , h , options ...)
}
func (e *htmlOption ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlOption ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlOption ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlOption ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlOption ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlOption ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlOption ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlOption ) OnPaste (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("paste" , h , options ...)
}
func (e *htmlOption ) OnReset (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("reset" , h , options ...)
}
func (e *htmlOption ) OnScroll (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("scroll" , h , options ...)
}
func (e *htmlOption ) OnSearch (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("search" , h , options ...)
}
func (e *htmlOption ) OnSelect (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("select" , h , options ...)
}
func (e *htmlOption ) OnSubmit (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("submit" , h , options ...)
}
func (e *htmlOption ) OnWheel (h EventHandler , options ...EventOption ) HTMLOption {
return e .On ("wheel" , h , options ...)
}
func (e *htmlOption ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlOption ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlOption ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlOption ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlOption ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlOption ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLOutput interface {
HTML
Body (elems ...UI ) HTMLOutput
Text (v any ) HTMLOutput
Textf (format string , v ...any ) HTMLOutput
AccessKey (format string , v ...any ) HTMLOutput
Aria (k string , v any ) HTMLOutput
Attr (n string , v any ) HTMLOutput
Class (v ...string ) HTMLOutput
ContentEditable (v bool ) HTMLOutput
DataSet (k string , v any ) HTMLOutput
DataSets (ds map [string ]any ) HTMLOutput
Dir (format string , v ...any ) HTMLOutput
Draggable (v bool ) HTMLOutput
For (format string , v ...any ) HTMLOutput
Form (format string , v ...any ) HTMLOutput
Hidden (v bool ) HTMLOutput
ID (format string , v ...any ) HTMLOutput
Lang (format string , v ...any ) HTMLOutput
Name (format string , v ...any ) HTMLOutput
Role (format string , v ...any ) HTMLOutput
Spellcheck (v bool ) HTMLOutput
Style (k, format string , v ...any ) HTMLOutput
Styles (s map [string ]string ) HTMLOutput
TabIndex (v int ) HTMLOutput
Title (format string , v ...any ) HTMLOutput
On (event string , h EventHandler , options ...EventOption ) HTMLOutput
OnBlur (h EventHandler , options ...EventOption ) HTMLOutput
OnChange (h EventHandler , options ...EventOption ) HTMLOutput
OnClick (h EventHandler , options ...EventOption ) HTMLOutput
OnContextMenu (h EventHandler , options ...EventOption ) HTMLOutput
OnCopy (h EventHandler , options ...EventOption ) HTMLOutput
OnCut (h EventHandler , options ...EventOption ) HTMLOutput
OnDblClick (h EventHandler , options ...EventOption ) HTMLOutput
OnDrag (h EventHandler , options ...EventOption ) HTMLOutput
OnDragEnd (h EventHandler , options ...EventOption ) HTMLOutput
OnDragEnter (h EventHandler , options ...EventOption ) HTMLOutput
OnDragLeave (h EventHandler , options ...EventOption ) HTMLOutput
OnDragOver (h EventHandler , options ...EventOption ) HTMLOutput
OnDragStart (h EventHandler , options ...EventOption ) HTMLOutput
OnDrop (h EventHandler , options ...EventOption ) HTMLOutput
OnFocus (h EventHandler , options ...EventOption ) HTMLOutput
OnInput (h EventHandler , options ...EventOption ) HTMLOutput
OnInvalid (h EventHandler , options ...EventOption ) HTMLOutput
OnKeyDown (h EventHandler , options ...EventOption ) HTMLOutput
OnKeyPress (h EventHandler , options ...EventOption ) HTMLOutput
OnKeyUp (h EventHandler , options ...EventOption ) HTMLOutput
OnMouseDown (h EventHandler , options ...EventOption ) HTMLOutput
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOutput
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOutput
OnMouseMove (h EventHandler , options ...EventOption ) HTMLOutput
OnMouseOut (h EventHandler , options ...EventOption ) HTMLOutput
OnMouseOver (h EventHandler , options ...EventOption ) HTMLOutput
OnMouseUp (h EventHandler , options ...EventOption ) HTMLOutput
OnPaste (h EventHandler , options ...EventOption ) HTMLOutput
OnReset (h EventHandler , options ...EventOption ) HTMLOutput
OnScroll (h EventHandler , options ...EventOption ) HTMLOutput
OnSearch (h EventHandler , options ...EventOption ) HTMLOutput
OnSelect (h EventHandler , options ...EventOption ) HTMLOutput
OnSubmit (h EventHandler , options ...EventOption ) HTMLOutput
OnWheel (h EventHandler , options ...EventOption ) HTMLOutput
}
func Output () HTMLOutput {
e := &htmlOutput {
htmlElement : htmlElement {
tag : "output" ,
isSelfClosing : false ,
},
}
return e
}
type htmlOutput struct {
htmlElement
}
func (e *htmlOutput ) Body (v ...UI ) HTMLOutput {
return e .setBody (FilterUIElems (v ...)).(*htmlOutput )
}
func (e *htmlOutput ) Text (v any ) HTMLOutput {
return e .Body (Text (v ))
}
func (e *htmlOutput ) Textf (format string , v ...any ) HTMLOutput {
return e .Body (Textf (format , v ...))
}
func (e *htmlOutput ) AccessKey (format string , v ...any ) HTMLOutput {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Aria (k string , v any ) HTMLOutput {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOutput ) Attr (n string , v any ) HTMLOutput {
e .setAttr (n , v )
return e
}
func (e *htmlOutput ) Class (v ...string ) HTMLOutput {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlOutput ) ContentEditable (v bool ) HTMLOutput {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlOutput ) DataSet (k string , v any ) HTMLOutput {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlOutput ) DataSets (ds map [string ]any ) HTMLOutput {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlOutput ) Dir (format string , v ...any ) HTMLOutput {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Draggable (v bool ) HTMLOutput {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlOutput ) For (format string , v ...any ) HTMLOutput {
e .setAttr ("for" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Form (format string , v ...any ) HTMLOutput {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Hidden (v bool ) HTMLOutput {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlOutput ) ID (format string , v ...any ) HTMLOutput {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Lang (format string , v ...any ) HTMLOutput {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Name (format string , v ...any ) HTMLOutput {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Role (format string , v ...any ) HTMLOutput {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Spellcheck (v bool ) HTMLOutput {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlOutput ) Style (k , format string , v ...any ) HTMLOutput {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlOutput ) Styles (s map [string ]string ) HTMLOutput {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlOutput ) TabIndex (v int ) HTMLOutput {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlOutput ) Title (format string , v ...any ) HTMLOutput {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlOutput ) On (event string , h EventHandler , options ...EventOption ) HTMLOutput {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlOutput ) OnBlur (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("blur" , h , options ...)
}
func (e *htmlOutput ) OnChange (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("change" , h , options ...)
}
func (e *htmlOutput ) OnClick (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("click" , h , options ...)
}
func (e *htmlOutput ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlOutput ) OnCopy (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("copy" , h , options ...)
}
func (e *htmlOutput ) OnCut (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("cut" , h , options ...)
}
func (e *htmlOutput ) OnDblClick (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlOutput ) OnDrag (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("drag" , h , options ...)
}
func (e *htmlOutput ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("dragend" , h , options ...)
}
func (e *htmlOutput ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlOutput ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlOutput ) OnDragOver (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("dragover" , h , options ...)
}
func (e *htmlOutput ) OnDragStart (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlOutput ) OnDrop (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("drop" , h , options ...)
}
func (e *htmlOutput ) OnFocus (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("focus" , h , options ...)
}
func (e *htmlOutput ) OnInput (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("input" , h , options ...)
}
func (e *htmlOutput ) OnInvalid (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("invalid" , h , options ...)
}
func (e *htmlOutput ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("keydown" , h , options ...)
}
func (e *htmlOutput ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("keypress" , h , options ...)
}
func (e *htmlOutput ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("keyup" , h , options ...)
}
func (e *htmlOutput ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlOutput ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlOutput ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlOutput ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlOutput ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlOutput ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlOutput ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlOutput ) OnPaste (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("paste" , h , options ...)
}
func (e *htmlOutput ) OnReset (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("reset" , h , options ...)
}
func (e *htmlOutput ) OnScroll (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("scroll" , h , options ...)
}
func (e *htmlOutput ) OnSearch (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("search" , h , options ...)
}
func (e *htmlOutput ) OnSelect (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("select" , h , options ...)
}
func (e *htmlOutput ) OnSubmit (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("submit" , h , options ...)
}
func (e *htmlOutput ) OnWheel (h EventHandler , options ...EventOption ) HTMLOutput {
return e .On ("wheel" , h , options ...)
}
func (e *htmlOutput ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlOutput ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlOutput ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlOutput ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlOutput ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlOutput ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLP interface {
HTML
Body (elems ...UI ) HTMLP
Text (v any ) HTMLP
Textf (format string , v ...any ) HTMLP
AccessKey (format string , v ...any ) HTMLP
Aria (k string , v any ) HTMLP
Attr (n string , v any ) HTMLP
Class (v ...string ) HTMLP
ContentEditable (v bool ) HTMLP
DataSet (k string , v any ) HTMLP
DataSets (ds map [string ]any ) HTMLP
Dir (format string , v ...any ) HTMLP
Draggable (v bool ) HTMLP
Hidden (v bool ) HTMLP
ID (format string , v ...any ) HTMLP
Lang (format string , v ...any ) HTMLP
Role (format string , v ...any ) HTMLP
Spellcheck (v bool ) HTMLP
Style (k, format string , v ...any ) HTMLP
Styles (s map [string ]string ) HTMLP
TabIndex (v int ) HTMLP
Title (format string , v ...any ) HTMLP
On (event string , h EventHandler , options ...EventOption ) HTMLP
OnBlur (h EventHandler , options ...EventOption ) HTMLP
OnChange (h EventHandler , options ...EventOption ) HTMLP
OnClick (h EventHandler , options ...EventOption ) HTMLP
OnContextMenu (h EventHandler , options ...EventOption ) HTMLP
OnCopy (h EventHandler , options ...EventOption ) HTMLP
OnCut (h EventHandler , options ...EventOption ) HTMLP
OnDblClick (h EventHandler , options ...EventOption ) HTMLP
OnDrag (h EventHandler , options ...EventOption ) HTMLP
OnDragEnd (h EventHandler , options ...EventOption ) HTMLP
OnDragEnter (h EventHandler , options ...EventOption ) HTMLP
OnDragLeave (h EventHandler , options ...EventOption ) HTMLP
OnDragOver (h EventHandler , options ...EventOption ) HTMLP
OnDragStart (h EventHandler , options ...EventOption ) HTMLP
OnDrop (h EventHandler , options ...EventOption ) HTMLP
OnFocus (h EventHandler , options ...EventOption ) HTMLP
OnInput (h EventHandler , options ...EventOption ) HTMLP
OnInvalid (h EventHandler , options ...EventOption ) HTMLP
OnKeyDown (h EventHandler , options ...EventOption ) HTMLP
OnKeyPress (h EventHandler , options ...EventOption ) HTMLP
OnKeyUp (h EventHandler , options ...EventOption ) HTMLP
OnMouseDown (h EventHandler , options ...EventOption ) HTMLP
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLP
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLP
OnMouseMove (h EventHandler , options ...EventOption ) HTMLP
OnMouseOut (h EventHandler , options ...EventOption ) HTMLP
OnMouseOver (h EventHandler , options ...EventOption ) HTMLP
OnMouseUp (h EventHandler , options ...EventOption ) HTMLP
OnPaste (h EventHandler , options ...EventOption ) HTMLP
OnReset (h EventHandler , options ...EventOption ) HTMLP
OnScroll (h EventHandler , options ...EventOption ) HTMLP
OnSearch (h EventHandler , options ...EventOption ) HTMLP
OnSelect (h EventHandler , options ...EventOption ) HTMLP
OnSubmit (h EventHandler , options ...EventOption ) HTMLP
OnWheel (h EventHandler , options ...EventOption ) HTMLP
}
func P () HTMLP {
e := &htmlP {
htmlElement : htmlElement {
tag : "p" ,
isSelfClosing : false ,
},
}
return e
}
type htmlP struct {
htmlElement
}
func (e *htmlP ) Body (v ...UI ) HTMLP {
return e .setBody (FilterUIElems (v ...)).(*htmlP )
}
func (e *htmlP ) Text (v any ) HTMLP {
return e .Body (Text (v ))
}
func (e *htmlP ) Textf (format string , v ...any ) HTMLP {
return e .Body (Textf (format , v ...))
}
func (e *htmlP ) AccessKey (format string , v ...any ) HTMLP {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlP ) Aria (k string , v any ) HTMLP {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlP ) Attr (n string , v any ) HTMLP {
e .setAttr (n , v )
return e
}
func (e *htmlP ) Class (v ...string ) HTMLP {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlP ) ContentEditable (v bool ) HTMLP {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlP ) DataSet (k string , v any ) HTMLP {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlP ) DataSets (ds map [string ]any ) HTMLP {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlP ) Dir (format string , v ...any ) HTMLP {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlP ) Draggable (v bool ) HTMLP {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlP ) Hidden (v bool ) HTMLP {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlP ) ID (format string , v ...any ) HTMLP {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlP ) Lang (format string , v ...any ) HTMLP {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlP ) Role (format string , v ...any ) HTMLP {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlP ) Spellcheck (v bool ) HTMLP {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlP ) Style (k , format string , v ...any ) HTMLP {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlP ) Styles (s map [string ]string ) HTMLP {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlP ) TabIndex (v int ) HTMLP {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlP ) Title (format string , v ...any ) HTMLP {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlP ) On (event string , h EventHandler , options ...EventOption ) HTMLP {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlP ) OnBlur (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("blur" , h , options ...)
}
func (e *htmlP ) OnChange (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("change" , h , options ...)
}
func (e *htmlP ) OnClick (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("click" , h , options ...)
}
func (e *htmlP ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlP ) OnCopy (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("copy" , h , options ...)
}
func (e *htmlP ) OnCut (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("cut" , h , options ...)
}
func (e *htmlP ) OnDblClick (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlP ) OnDrag (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("drag" , h , options ...)
}
func (e *htmlP ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("dragend" , h , options ...)
}
func (e *htmlP ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlP ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlP ) OnDragOver (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("dragover" , h , options ...)
}
func (e *htmlP ) OnDragStart (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlP ) OnDrop (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("drop" , h , options ...)
}
func (e *htmlP ) OnFocus (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("focus" , h , options ...)
}
func (e *htmlP ) OnInput (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("input" , h , options ...)
}
func (e *htmlP ) OnInvalid (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("invalid" , h , options ...)
}
func (e *htmlP ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("keydown" , h , options ...)
}
func (e *htmlP ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("keypress" , h , options ...)
}
func (e *htmlP ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("keyup" , h , options ...)
}
func (e *htmlP ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlP ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlP ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlP ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlP ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlP ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlP ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlP ) OnPaste (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("paste" , h , options ...)
}
func (e *htmlP ) OnReset (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("reset" , h , options ...)
}
func (e *htmlP ) OnScroll (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("scroll" , h , options ...)
}
func (e *htmlP ) OnSearch (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("search" , h , options ...)
}
func (e *htmlP ) OnSelect (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("select" , h , options ...)
}
func (e *htmlP ) OnSubmit (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("submit" , h , options ...)
}
func (e *htmlP ) OnWheel (h EventHandler , options ...EventOption ) HTMLP {
return e .On ("wheel" , h , options ...)
}
func (e *htmlP ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlP ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlP ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlP ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlP ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlP ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLParam interface {
HTML
AccessKey (format string , v ...any ) HTMLParam
Aria (k string , v any ) HTMLParam
Attr (n string , v any ) HTMLParam
Class (v ...string ) HTMLParam
ContentEditable (v bool ) HTMLParam
DataSet (k string , v any ) HTMLParam
DataSets (ds map [string ]any ) HTMLParam
Dir (format string , v ...any ) HTMLParam
Draggable (v bool ) HTMLParam
Hidden (v bool ) HTMLParam
ID (format string , v ...any ) HTMLParam
Lang (format string , v ...any ) HTMLParam
Name (format string , v ...any ) HTMLParam
Role (format string , v ...any ) HTMLParam
Spellcheck (v bool ) HTMLParam
Style (k, format string , v ...any ) HTMLParam
Styles (s map [string ]string ) HTMLParam
TabIndex (v int ) HTMLParam
Title (format string , v ...any ) HTMLParam
Value (v any ) HTMLParam
On (event string , h EventHandler , options ...EventOption ) HTMLParam
OnBlur (h EventHandler , options ...EventOption ) HTMLParam
OnChange (h EventHandler , options ...EventOption ) HTMLParam
OnClick (h EventHandler , options ...EventOption ) HTMLParam
OnContextMenu (h EventHandler , options ...EventOption ) HTMLParam
OnCopy (h EventHandler , options ...EventOption ) HTMLParam
OnCut (h EventHandler , options ...EventOption ) HTMLParam
OnDblClick (h EventHandler , options ...EventOption ) HTMLParam
OnDrag (h EventHandler , options ...EventOption ) HTMLParam
OnDragEnd (h EventHandler , options ...EventOption ) HTMLParam
OnDragEnter (h EventHandler , options ...EventOption ) HTMLParam
OnDragLeave (h EventHandler , options ...EventOption ) HTMLParam
OnDragOver (h EventHandler , options ...EventOption ) HTMLParam
OnDragStart (h EventHandler , options ...EventOption ) HTMLParam
OnDrop (h EventHandler , options ...EventOption ) HTMLParam
OnFocus (h EventHandler , options ...EventOption ) HTMLParam
OnInput (h EventHandler , options ...EventOption ) HTMLParam
OnInvalid (h EventHandler , options ...EventOption ) HTMLParam
OnKeyDown (h EventHandler , options ...EventOption ) HTMLParam
OnKeyPress (h EventHandler , options ...EventOption ) HTMLParam
OnKeyUp (h EventHandler , options ...EventOption ) HTMLParam
OnMouseDown (h EventHandler , options ...EventOption ) HTMLParam
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLParam
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLParam
OnMouseMove (h EventHandler , options ...EventOption ) HTMLParam
OnMouseOut (h EventHandler , options ...EventOption ) HTMLParam
OnMouseOver (h EventHandler , options ...EventOption ) HTMLParam
OnMouseUp (h EventHandler , options ...EventOption ) HTMLParam
OnPaste (h EventHandler , options ...EventOption ) HTMLParam
OnReset (h EventHandler , options ...EventOption ) HTMLParam
OnScroll (h EventHandler , options ...EventOption ) HTMLParam
OnSearch (h EventHandler , options ...EventOption ) HTMLParam
OnSelect (h EventHandler , options ...EventOption ) HTMLParam
OnSubmit (h EventHandler , options ...EventOption ) HTMLParam
OnWheel (h EventHandler , options ...EventOption ) HTMLParam
}
func Param () HTMLParam {
e := &htmlParam {
htmlElement : htmlElement {
tag : "param" ,
isSelfClosing : true ,
},
}
return e
}
type htmlParam struct {
htmlElement
}
func (e *htmlParam ) AccessKey (format string , v ...any ) HTMLParam {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlParam ) Aria (k string , v any ) HTMLParam {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlParam ) Attr (n string , v any ) HTMLParam {
e .setAttr (n , v )
return e
}
func (e *htmlParam ) Class (v ...string ) HTMLParam {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlParam ) ContentEditable (v bool ) HTMLParam {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlParam ) DataSet (k string , v any ) HTMLParam {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlParam ) DataSets (ds map [string ]any ) HTMLParam {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlParam ) Dir (format string , v ...any ) HTMLParam {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlParam ) Draggable (v bool ) HTMLParam {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlParam ) Hidden (v bool ) HTMLParam {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlParam ) ID (format string , v ...any ) HTMLParam {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlParam ) Lang (format string , v ...any ) HTMLParam {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlParam ) Name (format string , v ...any ) HTMLParam {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlParam ) Role (format string , v ...any ) HTMLParam {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlParam ) Spellcheck (v bool ) HTMLParam {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlParam ) Style (k , format string , v ...any ) HTMLParam {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlParam ) Styles (s map [string ]string ) HTMLParam {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlParam ) TabIndex (v int ) HTMLParam {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlParam ) Title (format string , v ...any ) HTMLParam {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlParam ) Value (v any ) HTMLParam {
e .setAttr ("value" , v )
return e
}
func (e *htmlParam ) On (event string , h EventHandler , options ...EventOption ) HTMLParam {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlParam ) OnBlur (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("blur" , h , options ...)
}
func (e *htmlParam ) OnChange (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("change" , h , options ...)
}
func (e *htmlParam ) OnClick (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("click" , h , options ...)
}
func (e *htmlParam ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlParam ) OnCopy (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("copy" , h , options ...)
}
func (e *htmlParam ) OnCut (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("cut" , h , options ...)
}
func (e *htmlParam ) OnDblClick (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlParam ) OnDrag (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("drag" , h , options ...)
}
func (e *htmlParam ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("dragend" , h , options ...)
}
func (e *htmlParam ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlParam ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlParam ) OnDragOver (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("dragover" , h , options ...)
}
func (e *htmlParam ) OnDragStart (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlParam ) OnDrop (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("drop" , h , options ...)
}
func (e *htmlParam ) OnFocus (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("focus" , h , options ...)
}
func (e *htmlParam ) OnInput (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("input" , h , options ...)
}
func (e *htmlParam ) OnInvalid (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("invalid" , h , options ...)
}
func (e *htmlParam ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("keydown" , h , options ...)
}
func (e *htmlParam ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("keypress" , h , options ...)
}
func (e *htmlParam ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("keyup" , h , options ...)
}
func (e *htmlParam ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlParam ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlParam ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlParam ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlParam ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlParam ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlParam ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlParam ) OnPaste (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("paste" , h , options ...)
}
func (e *htmlParam ) OnReset (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("reset" , h , options ...)
}
func (e *htmlParam ) OnScroll (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("scroll" , h , options ...)
}
func (e *htmlParam ) OnSearch (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("search" , h , options ...)
}
func (e *htmlParam ) OnSelect (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("select" , h , options ...)
}
func (e *htmlParam ) OnSubmit (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("submit" , h , options ...)
}
func (e *htmlParam ) OnWheel (h EventHandler , options ...EventOption ) HTMLParam {
return e .On ("wheel" , h , options ...)
}
func (e *htmlParam ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlParam ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlParam ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlParam ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlParam ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlParam ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLPicture interface {
HTML
Body (elems ...UI ) HTMLPicture
Text (v any ) HTMLPicture
Textf (format string , v ...any ) HTMLPicture
AccessKey (format string , v ...any ) HTMLPicture
Aria (k string , v any ) HTMLPicture
Attr (n string , v any ) HTMLPicture
Class (v ...string ) HTMLPicture
ContentEditable (v bool ) HTMLPicture
DataSet (k string , v any ) HTMLPicture
DataSets (ds map [string ]any ) HTMLPicture
Dir (format string , v ...any ) HTMLPicture
Draggable (v bool ) HTMLPicture
Hidden (v bool ) HTMLPicture
ID (format string , v ...any ) HTMLPicture
Lang (format string , v ...any ) HTMLPicture
Role (format string , v ...any ) HTMLPicture
Spellcheck (v bool ) HTMLPicture
Style (k, format string , v ...any ) HTMLPicture
Styles (s map [string ]string ) HTMLPicture
TabIndex (v int ) HTMLPicture
Title (format string , v ...any ) HTMLPicture
On (event string , h EventHandler , options ...EventOption ) HTMLPicture
OnBlur (h EventHandler , options ...EventOption ) HTMLPicture
OnChange (h EventHandler , options ...EventOption ) HTMLPicture
OnClick (h EventHandler , options ...EventOption ) HTMLPicture
OnContextMenu (h EventHandler , options ...EventOption ) HTMLPicture
OnCopy (h EventHandler , options ...EventOption ) HTMLPicture
OnCut (h EventHandler , options ...EventOption ) HTMLPicture
OnDblClick (h EventHandler , options ...EventOption ) HTMLPicture
OnDrag (h EventHandler , options ...EventOption ) HTMLPicture
OnDragEnd (h EventHandler , options ...EventOption ) HTMLPicture
OnDragEnter (h EventHandler , options ...EventOption ) HTMLPicture
OnDragLeave (h EventHandler , options ...EventOption ) HTMLPicture
OnDragOver (h EventHandler , options ...EventOption ) HTMLPicture
OnDragStart (h EventHandler , options ...EventOption ) HTMLPicture
OnDrop (h EventHandler , options ...EventOption ) HTMLPicture
OnFocus (h EventHandler , options ...EventOption ) HTMLPicture
OnInput (h EventHandler , options ...EventOption ) HTMLPicture
OnInvalid (h EventHandler , options ...EventOption ) HTMLPicture
OnKeyDown (h EventHandler , options ...EventOption ) HTMLPicture
OnKeyPress (h EventHandler , options ...EventOption ) HTMLPicture
OnKeyUp (h EventHandler , options ...EventOption ) HTMLPicture
OnMouseDown (h EventHandler , options ...EventOption ) HTMLPicture
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLPicture
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLPicture
OnMouseMove (h EventHandler , options ...EventOption ) HTMLPicture
OnMouseOut (h EventHandler , options ...EventOption ) HTMLPicture
OnMouseOver (h EventHandler , options ...EventOption ) HTMLPicture
OnMouseUp (h EventHandler , options ...EventOption ) HTMLPicture
OnPaste (h EventHandler , options ...EventOption ) HTMLPicture
OnReset (h EventHandler , options ...EventOption ) HTMLPicture
OnScroll (h EventHandler , options ...EventOption ) HTMLPicture
OnSearch (h EventHandler , options ...EventOption ) HTMLPicture
OnSelect (h EventHandler , options ...EventOption ) HTMLPicture
OnSubmit (h EventHandler , options ...EventOption ) HTMLPicture
OnWheel (h EventHandler , options ...EventOption ) HTMLPicture
}
func Picture () HTMLPicture {
e := &htmlPicture {
htmlElement : htmlElement {
tag : "picture" ,
isSelfClosing : false ,
},
}
return e
}
type htmlPicture struct {
htmlElement
}
func (e *htmlPicture ) Body (v ...UI ) HTMLPicture {
return e .setBody (FilterUIElems (v ...)).(*htmlPicture )
}
func (e *htmlPicture ) Text (v any ) HTMLPicture {
return e .Body (Text (v ))
}
func (e *htmlPicture ) Textf (format string , v ...any ) HTMLPicture {
return e .Body (Textf (format , v ...))
}
func (e *htmlPicture ) AccessKey (format string , v ...any ) HTMLPicture {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlPicture ) Aria (k string , v any ) HTMLPicture {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlPicture ) Attr (n string , v any ) HTMLPicture {
e .setAttr (n , v )
return e
}
func (e *htmlPicture ) Class (v ...string ) HTMLPicture {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlPicture ) ContentEditable (v bool ) HTMLPicture {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlPicture ) DataSet (k string , v any ) HTMLPicture {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlPicture ) DataSets (ds map [string ]any ) HTMLPicture {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlPicture ) Dir (format string , v ...any ) HTMLPicture {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlPicture ) Draggable (v bool ) HTMLPicture {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlPicture ) Hidden (v bool ) HTMLPicture {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlPicture ) ID (format string , v ...any ) HTMLPicture {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlPicture ) Lang (format string , v ...any ) HTMLPicture {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlPicture ) Role (format string , v ...any ) HTMLPicture {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlPicture ) Spellcheck (v bool ) HTMLPicture {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlPicture ) Style (k , format string , v ...any ) HTMLPicture {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlPicture ) Styles (s map [string ]string ) HTMLPicture {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlPicture ) TabIndex (v int ) HTMLPicture {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlPicture ) Title (format string , v ...any ) HTMLPicture {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlPicture ) On (event string , h EventHandler , options ...EventOption ) HTMLPicture {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlPicture ) OnBlur (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("blur" , h , options ...)
}
func (e *htmlPicture ) OnChange (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("change" , h , options ...)
}
func (e *htmlPicture ) OnClick (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("click" , h , options ...)
}
func (e *htmlPicture ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlPicture ) OnCopy (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("copy" , h , options ...)
}
func (e *htmlPicture ) OnCut (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("cut" , h , options ...)
}
func (e *htmlPicture ) OnDblClick (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlPicture ) OnDrag (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("drag" , h , options ...)
}
func (e *htmlPicture ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("dragend" , h , options ...)
}
func (e *htmlPicture ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlPicture ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlPicture ) OnDragOver (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("dragover" , h , options ...)
}
func (e *htmlPicture ) OnDragStart (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlPicture ) OnDrop (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("drop" , h , options ...)
}
func (e *htmlPicture ) OnFocus (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("focus" , h , options ...)
}
func (e *htmlPicture ) OnInput (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("input" , h , options ...)
}
func (e *htmlPicture ) OnInvalid (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("invalid" , h , options ...)
}
func (e *htmlPicture ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("keydown" , h , options ...)
}
func (e *htmlPicture ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("keypress" , h , options ...)
}
func (e *htmlPicture ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("keyup" , h , options ...)
}
func (e *htmlPicture ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlPicture ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlPicture ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlPicture ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlPicture ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlPicture ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlPicture ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlPicture ) OnPaste (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("paste" , h , options ...)
}
func (e *htmlPicture ) OnReset (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("reset" , h , options ...)
}
func (e *htmlPicture ) OnScroll (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("scroll" , h , options ...)
}
func (e *htmlPicture ) OnSearch (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("search" , h , options ...)
}
func (e *htmlPicture ) OnSelect (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("select" , h , options ...)
}
func (e *htmlPicture ) OnSubmit (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("submit" , h , options ...)
}
func (e *htmlPicture ) OnWheel (h EventHandler , options ...EventOption ) HTMLPicture {
return e .On ("wheel" , h , options ...)
}
func (e *htmlPicture ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlPicture ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlPicture ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlPicture ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlPicture ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlPicture ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLPre interface {
HTML
Body (elems ...UI ) HTMLPre
Text (v any ) HTMLPre
Textf (format string , v ...any ) HTMLPre
AccessKey (format string , v ...any ) HTMLPre
Aria (k string , v any ) HTMLPre
Attr (n string , v any ) HTMLPre
Class (v ...string ) HTMLPre
ContentEditable (v bool ) HTMLPre
DataSet (k string , v any ) HTMLPre
DataSets (ds map [string ]any ) HTMLPre
Dir (format string , v ...any ) HTMLPre
Draggable (v bool ) HTMLPre
Hidden (v bool ) HTMLPre
ID (format string , v ...any ) HTMLPre
Lang (format string , v ...any ) HTMLPre
Role (format string , v ...any ) HTMLPre
Spellcheck (v bool ) HTMLPre
Style (k, format string , v ...any ) HTMLPre
Styles (s map [string ]string ) HTMLPre
TabIndex (v int ) HTMLPre
Title (format string , v ...any ) HTMLPre
On (event string , h EventHandler , options ...EventOption ) HTMLPre
OnBlur (h EventHandler , options ...EventOption ) HTMLPre
OnChange (h EventHandler , options ...EventOption ) HTMLPre
OnClick (h EventHandler , options ...EventOption ) HTMLPre
OnContextMenu (h EventHandler , options ...EventOption ) HTMLPre
OnCopy (h EventHandler , options ...EventOption ) HTMLPre
OnCut (h EventHandler , options ...EventOption ) HTMLPre
OnDblClick (h EventHandler , options ...EventOption ) HTMLPre
OnDrag (h EventHandler , options ...EventOption ) HTMLPre
OnDragEnd (h EventHandler , options ...EventOption ) HTMLPre
OnDragEnter (h EventHandler , options ...EventOption ) HTMLPre
OnDragLeave (h EventHandler , options ...EventOption ) HTMLPre
OnDragOver (h EventHandler , options ...EventOption ) HTMLPre
OnDragStart (h EventHandler , options ...EventOption ) HTMLPre
OnDrop (h EventHandler , options ...EventOption ) HTMLPre
OnFocus (h EventHandler , options ...EventOption ) HTMLPre
OnInput (h EventHandler , options ...EventOption ) HTMLPre
OnInvalid (h EventHandler , options ...EventOption ) HTMLPre
OnKeyDown (h EventHandler , options ...EventOption ) HTMLPre
OnKeyPress (h EventHandler , options ...EventOption ) HTMLPre
OnKeyUp (h EventHandler , options ...EventOption ) HTMLPre
OnMouseDown (h EventHandler , options ...EventOption ) HTMLPre
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLPre
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLPre
OnMouseMove (h EventHandler , options ...EventOption ) HTMLPre
OnMouseOut (h EventHandler , options ...EventOption ) HTMLPre
OnMouseOver (h EventHandler , options ...EventOption ) HTMLPre
OnMouseUp (h EventHandler , options ...EventOption ) HTMLPre
OnPaste (h EventHandler , options ...EventOption ) HTMLPre
OnReset (h EventHandler , options ...EventOption ) HTMLPre
OnScroll (h EventHandler , options ...EventOption ) HTMLPre
OnSearch (h EventHandler , options ...EventOption ) HTMLPre
OnSelect (h EventHandler , options ...EventOption ) HTMLPre
OnSubmit (h EventHandler , options ...EventOption ) HTMLPre
OnWheel (h EventHandler , options ...EventOption ) HTMLPre
}
func Pre () HTMLPre {
e := &htmlPre {
htmlElement : htmlElement {
tag : "pre" ,
isSelfClosing : false ,
},
}
return e
}
type htmlPre struct {
htmlElement
}
func (e *htmlPre ) Body (v ...UI ) HTMLPre {
return e .setBody (FilterUIElems (v ...)).(*htmlPre )
}
func (e *htmlPre ) Text (v any ) HTMLPre {
return e .Body (Text (v ))
}
func (e *htmlPre ) Textf (format string , v ...any ) HTMLPre {
return e .Body (Textf (format , v ...))
}
func (e *htmlPre ) AccessKey (format string , v ...any ) HTMLPre {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlPre ) Aria (k string , v any ) HTMLPre {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlPre ) Attr (n string , v any ) HTMLPre {
e .setAttr (n , v )
return e
}
func (e *htmlPre ) Class (v ...string ) HTMLPre {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlPre ) ContentEditable (v bool ) HTMLPre {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlPre ) DataSet (k string , v any ) HTMLPre {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlPre ) DataSets (ds map [string ]any ) HTMLPre {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlPre ) Dir (format string , v ...any ) HTMLPre {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlPre ) Draggable (v bool ) HTMLPre {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlPre ) Hidden (v bool ) HTMLPre {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlPre ) ID (format string , v ...any ) HTMLPre {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlPre ) Lang (format string , v ...any ) HTMLPre {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlPre ) Role (format string , v ...any ) HTMLPre {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlPre ) Spellcheck (v bool ) HTMLPre {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlPre ) Style (k , format string , v ...any ) HTMLPre {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlPre ) Styles (s map [string ]string ) HTMLPre {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlPre ) TabIndex (v int ) HTMLPre {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlPre ) Title (format string , v ...any ) HTMLPre {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlPre ) On (event string , h EventHandler , options ...EventOption ) HTMLPre {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlPre ) OnBlur (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("blur" , h , options ...)
}
func (e *htmlPre ) OnChange (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("change" , h , options ...)
}
func (e *htmlPre ) OnClick (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("click" , h , options ...)
}
func (e *htmlPre ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlPre ) OnCopy (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("copy" , h , options ...)
}
func (e *htmlPre ) OnCut (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("cut" , h , options ...)
}
func (e *htmlPre ) OnDblClick (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlPre ) OnDrag (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("drag" , h , options ...)
}
func (e *htmlPre ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("dragend" , h , options ...)
}
func (e *htmlPre ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlPre ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlPre ) OnDragOver (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("dragover" , h , options ...)
}
func (e *htmlPre ) OnDragStart (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlPre ) OnDrop (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("drop" , h , options ...)
}
func (e *htmlPre ) OnFocus (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("focus" , h , options ...)
}
func (e *htmlPre ) OnInput (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("input" , h , options ...)
}
func (e *htmlPre ) OnInvalid (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("invalid" , h , options ...)
}
func (e *htmlPre ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("keydown" , h , options ...)
}
func (e *htmlPre ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("keypress" , h , options ...)
}
func (e *htmlPre ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("keyup" , h , options ...)
}
func (e *htmlPre ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlPre ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlPre ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlPre ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlPre ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlPre ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlPre ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlPre ) OnPaste (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("paste" , h , options ...)
}
func (e *htmlPre ) OnReset (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("reset" , h , options ...)
}
func (e *htmlPre ) OnScroll (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("scroll" , h , options ...)
}
func (e *htmlPre ) OnSearch (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("search" , h , options ...)
}
func (e *htmlPre ) OnSelect (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("select" , h , options ...)
}
func (e *htmlPre ) OnSubmit (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("submit" , h , options ...)
}
func (e *htmlPre ) OnWheel (h EventHandler , options ...EventOption ) HTMLPre {
return e .On ("wheel" , h , options ...)
}
func (e *htmlPre ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlPre ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlPre ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlPre ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlPre ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlPre ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLProgress interface {
HTML
Body (elems ...UI ) HTMLProgress
Text (v any ) HTMLProgress
Textf (format string , v ...any ) HTMLProgress
AccessKey (format string , v ...any ) HTMLProgress
Aria (k string , v any ) HTMLProgress
Attr (n string , v any ) HTMLProgress
Class (v ...string ) HTMLProgress
ContentEditable (v bool ) HTMLProgress
DataSet (k string , v any ) HTMLProgress
DataSets (ds map [string ]any ) HTMLProgress
Dir (format string , v ...any ) HTMLProgress
Draggable (v bool ) HTMLProgress
Hidden (v bool ) HTMLProgress
ID (format string , v ...any ) HTMLProgress
Lang (format string , v ...any ) HTMLProgress
Max (v any ) HTMLProgress
Role (format string , v ...any ) HTMLProgress
Spellcheck (v bool ) HTMLProgress
Style (k, format string , v ...any ) HTMLProgress
Styles (s map [string ]string ) HTMLProgress
TabIndex (v int ) HTMLProgress
Title (format string , v ...any ) HTMLProgress
Value (v any ) HTMLProgress
On (event string , h EventHandler , options ...EventOption ) HTMLProgress
OnBlur (h EventHandler , options ...EventOption ) HTMLProgress
OnChange (h EventHandler , options ...EventOption ) HTMLProgress
OnClick (h EventHandler , options ...EventOption ) HTMLProgress
OnContextMenu (h EventHandler , options ...EventOption ) HTMLProgress
OnCopy (h EventHandler , options ...EventOption ) HTMLProgress
OnCut (h EventHandler , options ...EventOption ) HTMLProgress
OnDblClick (h EventHandler , options ...EventOption ) HTMLProgress
OnDrag (h EventHandler , options ...EventOption ) HTMLProgress
OnDragEnd (h EventHandler , options ...EventOption ) HTMLProgress
OnDragEnter (h EventHandler , options ...EventOption ) HTMLProgress
OnDragLeave (h EventHandler , options ...EventOption ) HTMLProgress
OnDragOver (h EventHandler , options ...EventOption ) HTMLProgress
OnDragStart (h EventHandler , options ...EventOption ) HTMLProgress
OnDrop (h EventHandler , options ...EventOption ) HTMLProgress
OnFocus (h EventHandler , options ...EventOption ) HTMLProgress
OnInput (h EventHandler , options ...EventOption ) HTMLProgress
OnInvalid (h EventHandler , options ...EventOption ) HTMLProgress
OnKeyDown (h EventHandler , options ...EventOption ) HTMLProgress
OnKeyPress (h EventHandler , options ...EventOption ) HTMLProgress
OnKeyUp (h EventHandler , options ...EventOption ) HTMLProgress
OnMouseDown (h EventHandler , options ...EventOption ) HTMLProgress
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLProgress
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLProgress
OnMouseMove (h EventHandler , options ...EventOption ) HTMLProgress
OnMouseOut (h EventHandler , options ...EventOption ) HTMLProgress
OnMouseOver (h EventHandler , options ...EventOption ) HTMLProgress
OnMouseUp (h EventHandler , options ...EventOption ) HTMLProgress
OnPaste (h EventHandler , options ...EventOption ) HTMLProgress
OnReset (h EventHandler , options ...EventOption ) HTMLProgress
OnScroll (h EventHandler , options ...EventOption ) HTMLProgress
OnSearch (h EventHandler , options ...EventOption ) HTMLProgress
OnSelect (h EventHandler , options ...EventOption ) HTMLProgress
OnSubmit (h EventHandler , options ...EventOption ) HTMLProgress
OnWheel (h EventHandler , options ...EventOption ) HTMLProgress
}
func Progress () HTMLProgress {
e := &htmlProgress {
htmlElement : htmlElement {
tag : "progress" ,
isSelfClosing : false ,
},
}
return e
}
type htmlProgress struct {
htmlElement
}
func (e *htmlProgress ) Body (v ...UI ) HTMLProgress {
return e .setBody (FilterUIElems (v ...)).(*htmlProgress )
}
func (e *htmlProgress ) Text (v any ) HTMLProgress {
return e .Body (Text (v ))
}
func (e *htmlProgress ) Textf (format string , v ...any ) HTMLProgress {
return e .Body (Textf (format , v ...))
}
func (e *htmlProgress ) AccessKey (format string , v ...any ) HTMLProgress {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlProgress ) Aria (k string , v any ) HTMLProgress {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlProgress ) Attr (n string , v any ) HTMLProgress {
e .setAttr (n , v )
return e
}
func (e *htmlProgress ) Class (v ...string ) HTMLProgress {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlProgress ) ContentEditable (v bool ) HTMLProgress {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlProgress ) DataSet (k string , v any ) HTMLProgress {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlProgress ) DataSets (ds map [string ]any ) HTMLProgress {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlProgress ) Dir (format string , v ...any ) HTMLProgress {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlProgress ) Draggable (v bool ) HTMLProgress {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlProgress ) Hidden (v bool ) HTMLProgress {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlProgress ) ID (format string , v ...any ) HTMLProgress {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlProgress ) Lang (format string , v ...any ) HTMLProgress {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlProgress ) Max (v any ) HTMLProgress {
e .setAttr ("max" , v )
return e
}
func (e *htmlProgress ) Role (format string , v ...any ) HTMLProgress {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlProgress ) Spellcheck (v bool ) HTMLProgress {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlProgress ) Style (k , format string , v ...any ) HTMLProgress {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlProgress ) Styles (s map [string ]string ) HTMLProgress {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlProgress ) TabIndex (v int ) HTMLProgress {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlProgress ) Title (format string , v ...any ) HTMLProgress {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlProgress ) Value (v any ) HTMLProgress {
e .setAttr ("value" , v )
return e
}
func (e *htmlProgress ) On (event string , h EventHandler , options ...EventOption ) HTMLProgress {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlProgress ) OnBlur (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("blur" , h , options ...)
}
func (e *htmlProgress ) OnChange (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("change" , h , options ...)
}
func (e *htmlProgress ) OnClick (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("click" , h , options ...)
}
func (e *htmlProgress ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlProgress ) OnCopy (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("copy" , h , options ...)
}
func (e *htmlProgress ) OnCut (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("cut" , h , options ...)
}
func (e *htmlProgress ) OnDblClick (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlProgress ) OnDrag (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("drag" , h , options ...)
}
func (e *htmlProgress ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("dragend" , h , options ...)
}
func (e *htmlProgress ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlProgress ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlProgress ) OnDragOver (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("dragover" , h , options ...)
}
func (e *htmlProgress ) OnDragStart (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlProgress ) OnDrop (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("drop" , h , options ...)
}
func (e *htmlProgress ) OnFocus (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("focus" , h , options ...)
}
func (e *htmlProgress ) OnInput (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("input" , h , options ...)
}
func (e *htmlProgress ) OnInvalid (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("invalid" , h , options ...)
}
func (e *htmlProgress ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("keydown" , h , options ...)
}
func (e *htmlProgress ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("keypress" , h , options ...)
}
func (e *htmlProgress ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("keyup" , h , options ...)
}
func (e *htmlProgress ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlProgress ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlProgress ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlProgress ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlProgress ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlProgress ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlProgress ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlProgress ) OnPaste (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("paste" , h , options ...)
}
func (e *htmlProgress ) OnReset (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("reset" , h , options ...)
}
func (e *htmlProgress ) OnScroll (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("scroll" , h , options ...)
}
func (e *htmlProgress ) OnSearch (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("search" , h , options ...)
}
func (e *htmlProgress ) OnSelect (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("select" , h , options ...)
}
func (e *htmlProgress ) OnSubmit (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("submit" , h , options ...)
}
func (e *htmlProgress ) OnWheel (h EventHandler , options ...EventOption ) HTMLProgress {
return e .On ("wheel" , h , options ...)
}
func (e *htmlProgress ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlProgress ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlProgress ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlProgress ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlProgress ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlProgress ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLQ interface {
HTML
Body (elems ...UI ) HTMLQ
Text (v any ) HTMLQ
Textf (format string , v ...any ) HTMLQ
AccessKey (format string , v ...any ) HTMLQ
Aria (k string , v any ) HTMLQ
Attr (n string , v any ) HTMLQ
Cite (format string , v ...any ) HTMLQ
Class (v ...string ) HTMLQ
ContentEditable (v bool ) HTMLQ
DataSet (k string , v any ) HTMLQ
DataSets (ds map [string ]any ) HTMLQ
Dir (format string , v ...any ) HTMLQ
Draggable (v bool ) HTMLQ
Hidden (v bool ) HTMLQ
ID (format string , v ...any ) HTMLQ
Lang (format string , v ...any ) HTMLQ
Role (format string , v ...any ) HTMLQ
Spellcheck (v bool ) HTMLQ
Style (k, format string , v ...any ) HTMLQ
Styles (s map [string ]string ) HTMLQ
TabIndex (v int ) HTMLQ
Title (format string , v ...any ) HTMLQ
On (event string , h EventHandler , options ...EventOption ) HTMLQ
OnBlur (h EventHandler , options ...EventOption ) HTMLQ
OnChange (h EventHandler , options ...EventOption ) HTMLQ
OnClick (h EventHandler , options ...EventOption ) HTMLQ
OnContextMenu (h EventHandler , options ...EventOption ) HTMLQ
OnCopy (h EventHandler , options ...EventOption ) HTMLQ
OnCut (h EventHandler , options ...EventOption ) HTMLQ
OnDblClick (h EventHandler , options ...EventOption ) HTMLQ
OnDrag (h EventHandler , options ...EventOption ) HTMLQ
OnDragEnd (h EventHandler , options ...EventOption ) HTMLQ
OnDragEnter (h EventHandler , options ...EventOption ) HTMLQ
OnDragLeave (h EventHandler , options ...EventOption ) HTMLQ
OnDragOver (h EventHandler , options ...EventOption ) HTMLQ
OnDragStart (h EventHandler , options ...EventOption ) HTMLQ
OnDrop (h EventHandler , options ...EventOption ) HTMLQ
OnFocus (h EventHandler , options ...EventOption ) HTMLQ
OnInput (h EventHandler , options ...EventOption ) HTMLQ
OnInvalid (h EventHandler , options ...EventOption ) HTMLQ
OnKeyDown (h EventHandler , options ...EventOption ) HTMLQ
OnKeyPress (h EventHandler , options ...EventOption ) HTMLQ
OnKeyUp (h EventHandler , options ...EventOption ) HTMLQ
OnMouseDown (h EventHandler , options ...EventOption ) HTMLQ
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLQ
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLQ
OnMouseMove (h EventHandler , options ...EventOption ) HTMLQ
OnMouseOut (h EventHandler , options ...EventOption ) HTMLQ
OnMouseOver (h EventHandler , options ...EventOption ) HTMLQ
OnMouseUp (h EventHandler , options ...EventOption ) HTMLQ
OnPaste (h EventHandler , options ...EventOption ) HTMLQ
OnReset (h EventHandler , options ...EventOption ) HTMLQ
OnScroll (h EventHandler , options ...EventOption ) HTMLQ
OnSearch (h EventHandler , options ...EventOption ) HTMLQ
OnSelect (h EventHandler , options ...EventOption ) HTMLQ
OnSubmit (h EventHandler , options ...EventOption ) HTMLQ
OnWheel (h EventHandler , options ...EventOption ) HTMLQ
}
func Q () HTMLQ {
e := &htmlQ {
htmlElement : htmlElement {
tag : "q" ,
isSelfClosing : false ,
},
}
return e
}
type htmlQ struct {
htmlElement
}
func (e *htmlQ ) Body (v ...UI ) HTMLQ {
return e .setBody (FilterUIElems (v ...)).(*htmlQ )
}
func (e *htmlQ ) Text (v any ) HTMLQ {
return e .Body (Text (v ))
}
func (e *htmlQ ) Textf (format string , v ...any ) HTMLQ {
return e .Body (Textf (format , v ...))
}
func (e *htmlQ ) AccessKey (format string , v ...any ) HTMLQ {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlQ ) Aria (k string , v any ) HTMLQ {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlQ ) Attr (n string , v any ) HTMLQ {
e .setAttr (n , v )
return e
}
func (e *htmlQ ) Cite (format string , v ...any ) HTMLQ {
e .setAttr ("cite" , FormatString (format , v ...))
return e
}
func (e *htmlQ ) Class (v ...string ) HTMLQ {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlQ ) ContentEditable (v bool ) HTMLQ {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlQ ) DataSet (k string , v any ) HTMLQ {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlQ ) DataSets (ds map [string ]any ) HTMLQ {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlQ ) Dir (format string , v ...any ) HTMLQ {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlQ ) Draggable (v bool ) HTMLQ {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlQ ) Hidden (v bool ) HTMLQ {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlQ ) ID (format string , v ...any ) HTMLQ {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlQ ) Lang (format string , v ...any ) HTMLQ {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlQ ) Role (format string , v ...any ) HTMLQ {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlQ ) Spellcheck (v bool ) HTMLQ {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlQ ) Style (k , format string , v ...any ) HTMLQ {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlQ ) Styles (s map [string ]string ) HTMLQ {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlQ ) TabIndex (v int ) HTMLQ {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlQ ) Title (format string , v ...any ) HTMLQ {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlQ ) On (event string , h EventHandler , options ...EventOption ) HTMLQ {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlQ ) OnBlur (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("blur" , h , options ...)
}
func (e *htmlQ ) OnChange (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("change" , h , options ...)
}
func (e *htmlQ ) OnClick (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("click" , h , options ...)
}
func (e *htmlQ ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlQ ) OnCopy (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("copy" , h , options ...)
}
func (e *htmlQ ) OnCut (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("cut" , h , options ...)
}
func (e *htmlQ ) OnDblClick (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlQ ) OnDrag (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("drag" , h , options ...)
}
func (e *htmlQ ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("dragend" , h , options ...)
}
func (e *htmlQ ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlQ ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlQ ) OnDragOver (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("dragover" , h , options ...)
}
func (e *htmlQ ) OnDragStart (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlQ ) OnDrop (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("drop" , h , options ...)
}
func (e *htmlQ ) OnFocus (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("focus" , h , options ...)
}
func (e *htmlQ ) OnInput (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("input" , h , options ...)
}
func (e *htmlQ ) OnInvalid (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("invalid" , h , options ...)
}
func (e *htmlQ ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("keydown" , h , options ...)
}
func (e *htmlQ ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("keypress" , h , options ...)
}
func (e *htmlQ ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("keyup" , h , options ...)
}
func (e *htmlQ ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlQ ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlQ ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlQ ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlQ ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlQ ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlQ ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlQ ) OnPaste (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("paste" , h , options ...)
}
func (e *htmlQ ) OnReset (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("reset" , h , options ...)
}
func (e *htmlQ ) OnScroll (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("scroll" , h , options ...)
}
func (e *htmlQ ) OnSearch (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("search" , h , options ...)
}
func (e *htmlQ ) OnSelect (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("select" , h , options ...)
}
func (e *htmlQ ) OnSubmit (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("submit" , h , options ...)
}
func (e *htmlQ ) OnWheel (h EventHandler , options ...EventOption ) HTMLQ {
return e .On ("wheel" , h , options ...)
}
func (e *htmlQ ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlQ ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlQ ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlQ ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlQ ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlQ ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLRp interface {
HTML
Body (elems ...UI ) HTMLRp
Text (v any ) HTMLRp
Textf (format string , v ...any ) HTMLRp
AccessKey (format string , v ...any ) HTMLRp
Aria (k string , v any ) HTMLRp
Attr (n string , v any ) HTMLRp
Class (v ...string ) HTMLRp
ContentEditable (v bool ) HTMLRp
DataSet (k string , v any ) HTMLRp
DataSets (ds map [string ]any ) HTMLRp
Dir (format string , v ...any ) HTMLRp
Draggable (v bool ) HTMLRp
Hidden (v bool ) HTMLRp
ID (format string , v ...any ) HTMLRp
Lang (format string , v ...any ) HTMLRp
Role (format string , v ...any ) HTMLRp
Spellcheck (v bool ) HTMLRp
Style (k, format string , v ...any ) HTMLRp
Styles (s map [string ]string ) HTMLRp
TabIndex (v int ) HTMLRp
Title (format string , v ...any ) HTMLRp
On (event string , h EventHandler , options ...EventOption ) HTMLRp
OnBlur (h EventHandler , options ...EventOption ) HTMLRp
OnChange (h EventHandler , options ...EventOption ) HTMLRp
OnClick (h EventHandler , options ...EventOption ) HTMLRp
OnContextMenu (h EventHandler , options ...EventOption ) HTMLRp
OnCopy (h EventHandler , options ...EventOption ) HTMLRp
OnCut (h EventHandler , options ...EventOption ) HTMLRp
OnDblClick (h EventHandler , options ...EventOption ) HTMLRp
OnDrag (h EventHandler , options ...EventOption ) HTMLRp
OnDragEnd (h EventHandler , options ...EventOption ) HTMLRp
OnDragEnter (h EventHandler , options ...EventOption ) HTMLRp
OnDragLeave (h EventHandler , options ...EventOption ) HTMLRp
OnDragOver (h EventHandler , options ...EventOption ) HTMLRp
OnDragStart (h EventHandler , options ...EventOption ) HTMLRp
OnDrop (h EventHandler , options ...EventOption ) HTMLRp
OnFocus (h EventHandler , options ...EventOption ) HTMLRp
OnInput (h EventHandler , options ...EventOption ) HTMLRp
OnInvalid (h EventHandler , options ...EventOption ) HTMLRp
OnKeyDown (h EventHandler , options ...EventOption ) HTMLRp
OnKeyPress (h EventHandler , options ...EventOption ) HTMLRp
OnKeyUp (h EventHandler , options ...EventOption ) HTMLRp
OnMouseDown (h EventHandler , options ...EventOption ) HTMLRp
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLRp
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLRp
OnMouseMove (h EventHandler , options ...EventOption ) HTMLRp
OnMouseOut (h EventHandler , options ...EventOption ) HTMLRp
OnMouseOver (h EventHandler , options ...EventOption ) HTMLRp
OnMouseUp (h EventHandler , options ...EventOption ) HTMLRp
OnPaste (h EventHandler , options ...EventOption ) HTMLRp
OnReset (h EventHandler , options ...EventOption ) HTMLRp
OnScroll (h EventHandler , options ...EventOption ) HTMLRp
OnSearch (h EventHandler , options ...EventOption ) HTMLRp
OnSelect (h EventHandler , options ...EventOption ) HTMLRp
OnSubmit (h EventHandler , options ...EventOption ) HTMLRp
OnWheel (h EventHandler , options ...EventOption ) HTMLRp
}
func Rp () HTMLRp {
e := &htmlRp {
htmlElement : htmlElement {
tag : "rp" ,
isSelfClosing : false ,
},
}
return e
}
type htmlRp struct {
htmlElement
}
func (e *htmlRp ) Body (v ...UI ) HTMLRp {
return e .setBody (FilterUIElems (v ...)).(*htmlRp )
}
func (e *htmlRp ) Text (v any ) HTMLRp {
return e .Body (Text (v ))
}
func (e *htmlRp ) Textf (format string , v ...any ) HTMLRp {
return e .Body (Textf (format , v ...))
}
func (e *htmlRp ) AccessKey (format string , v ...any ) HTMLRp {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlRp ) Aria (k string , v any ) HTMLRp {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlRp ) Attr (n string , v any ) HTMLRp {
e .setAttr (n , v )
return e
}
func (e *htmlRp ) Class (v ...string ) HTMLRp {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlRp ) ContentEditable (v bool ) HTMLRp {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlRp ) DataSet (k string , v any ) HTMLRp {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlRp ) DataSets (ds map [string ]any ) HTMLRp {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlRp ) Dir (format string , v ...any ) HTMLRp {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlRp ) Draggable (v bool ) HTMLRp {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlRp ) Hidden (v bool ) HTMLRp {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlRp ) ID (format string , v ...any ) HTMLRp {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlRp ) Lang (format string , v ...any ) HTMLRp {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlRp ) Role (format string , v ...any ) HTMLRp {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlRp ) Spellcheck (v bool ) HTMLRp {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlRp ) Style (k , format string , v ...any ) HTMLRp {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlRp ) Styles (s map [string ]string ) HTMLRp {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlRp ) TabIndex (v int ) HTMLRp {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlRp ) Title (format string , v ...any ) HTMLRp {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlRp ) On (event string , h EventHandler , options ...EventOption ) HTMLRp {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlRp ) OnBlur (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("blur" , h , options ...)
}
func (e *htmlRp ) OnChange (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("change" , h , options ...)
}
func (e *htmlRp ) OnClick (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("click" , h , options ...)
}
func (e *htmlRp ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlRp ) OnCopy (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("copy" , h , options ...)
}
func (e *htmlRp ) OnCut (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("cut" , h , options ...)
}
func (e *htmlRp ) OnDblClick (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlRp ) OnDrag (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("drag" , h , options ...)
}
func (e *htmlRp ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("dragend" , h , options ...)
}
func (e *htmlRp ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlRp ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlRp ) OnDragOver (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("dragover" , h , options ...)
}
func (e *htmlRp ) OnDragStart (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlRp ) OnDrop (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("drop" , h , options ...)
}
func (e *htmlRp ) OnFocus (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("focus" , h , options ...)
}
func (e *htmlRp ) OnInput (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("input" , h , options ...)
}
func (e *htmlRp ) OnInvalid (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("invalid" , h , options ...)
}
func (e *htmlRp ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("keydown" , h , options ...)
}
func (e *htmlRp ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("keypress" , h , options ...)
}
func (e *htmlRp ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("keyup" , h , options ...)
}
func (e *htmlRp ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlRp ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlRp ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlRp ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlRp ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlRp ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlRp ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlRp ) OnPaste (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("paste" , h , options ...)
}
func (e *htmlRp ) OnReset (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("reset" , h , options ...)
}
func (e *htmlRp ) OnScroll (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("scroll" , h , options ...)
}
func (e *htmlRp ) OnSearch (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("search" , h , options ...)
}
func (e *htmlRp ) OnSelect (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("select" , h , options ...)
}
func (e *htmlRp ) OnSubmit (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("submit" , h , options ...)
}
func (e *htmlRp ) OnWheel (h EventHandler , options ...EventOption ) HTMLRp {
return e .On ("wheel" , h , options ...)
}
func (e *htmlRp ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlRp ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlRp ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlRp ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlRp ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlRp ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLRt interface {
HTML
Body (elems ...UI ) HTMLRt
Text (v any ) HTMLRt
Textf (format string , v ...any ) HTMLRt
AccessKey (format string , v ...any ) HTMLRt
Aria (k string , v any ) HTMLRt
Attr (n string , v any ) HTMLRt
Class (v ...string ) HTMLRt
ContentEditable (v bool ) HTMLRt
DataSet (k string , v any ) HTMLRt
DataSets (ds map [string ]any ) HTMLRt
Dir (format string , v ...any ) HTMLRt
Draggable (v bool ) HTMLRt
Hidden (v bool ) HTMLRt
ID (format string , v ...any ) HTMLRt
Lang (format string , v ...any ) HTMLRt
Role (format string , v ...any ) HTMLRt
Spellcheck (v bool ) HTMLRt
Style (k, format string , v ...any ) HTMLRt
Styles (s map [string ]string ) HTMLRt
TabIndex (v int ) HTMLRt
Title (format string , v ...any ) HTMLRt
On (event string , h EventHandler , options ...EventOption ) HTMLRt
OnBlur (h EventHandler , options ...EventOption ) HTMLRt
OnChange (h EventHandler , options ...EventOption ) HTMLRt
OnClick (h EventHandler , options ...EventOption ) HTMLRt
OnContextMenu (h EventHandler , options ...EventOption ) HTMLRt
OnCopy (h EventHandler , options ...EventOption ) HTMLRt
OnCut (h EventHandler , options ...EventOption ) HTMLRt
OnDblClick (h EventHandler , options ...EventOption ) HTMLRt
OnDrag (h EventHandler , options ...EventOption ) HTMLRt
OnDragEnd (h EventHandler , options ...EventOption ) HTMLRt
OnDragEnter (h EventHandler , options ...EventOption ) HTMLRt
OnDragLeave (h EventHandler , options ...EventOption ) HTMLRt
OnDragOver (h EventHandler , options ...EventOption ) HTMLRt
OnDragStart (h EventHandler , options ...EventOption ) HTMLRt
OnDrop (h EventHandler , options ...EventOption ) HTMLRt
OnFocus (h EventHandler , options ...EventOption ) HTMLRt
OnInput (h EventHandler , options ...EventOption ) HTMLRt
OnInvalid (h EventHandler , options ...EventOption ) HTMLRt
OnKeyDown (h EventHandler , options ...EventOption ) HTMLRt
OnKeyPress (h EventHandler , options ...EventOption ) HTMLRt
OnKeyUp (h EventHandler , options ...EventOption ) HTMLRt
OnMouseDown (h EventHandler , options ...EventOption ) HTMLRt
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLRt
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLRt
OnMouseMove (h EventHandler , options ...EventOption ) HTMLRt
OnMouseOut (h EventHandler , options ...EventOption ) HTMLRt
OnMouseOver (h EventHandler , options ...EventOption ) HTMLRt
OnMouseUp (h EventHandler , options ...EventOption ) HTMLRt
OnPaste (h EventHandler , options ...EventOption ) HTMLRt
OnReset (h EventHandler , options ...EventOption ) HTMLRt
OnScroll (h EventHandler , options ...EventOption ) HTMLRt
OnSearch (h EventHandler , options ...EventOption ) HTMLRt
OnSelect (h EventHandler , options ...EventOption ) HTMLRt
OnSubmit (h EventHandler , options ...EventOption ) HTMLRt
OnWheel (h EventHandler , options ...EventOption ) HTMLRt
}
func Rt () HTMLRt {
e := &htmlRt {
htmlElement : htmlElement {
tag : "rt" ,
isSelfClosing : false ,
},
}
return e
}
type htmlRt struct {
htmlElement
}
func (e *htmlRt ) Body (v ...UI ) HTMLRt {
return e .setBody (FilterUIElems (v ...)).(*htmlRt )
}
func (e *htmlRt ) Text (v any ) HTMLRt {
return e .Body (Text (v ))
}
func (e *htmlRt ) Textf (format string , v ...any ) HTMLRt {
return e .Body (Textf (format , v ...))
}
func (e *htmlRt ) AccessKey (format string , v ...any ) HTMLRt {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlRt ) Aria (k string , v any ) HTMLRt {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlRt ) Attr (n string , v any ) HTMLRt {
e .setAttr (n , v )
return e
}
func (e *htmlRt ) Class (v ...string ) HTMLRt {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlRt ) ContentEditable (v bool ) HTMLRt {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlRt ) DataSet (k string , v any ) HTMLRt {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlRt ) DataSets (ds map [string ]any ) HTMLRt {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlRt ) Dir (format string , v ...any ) HTMLRt {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlRt ) Draggable (v bool ) HTMLRt {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlRt ) Hidden (v bool ) HTMLRt {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlRt ) ID (format string , v ...any ) HTMLRt {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlRt ) Lang (format string , v ...any ) HTMLRt {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlRt ) Role (format string , v ...any ) HTMLRt {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlRt ) Spellcheck (v bool ) HTMLRt {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlRt ) Style (k , format string , v ...any ) HTMLRt {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlRt ) Styles (s map [string ]string ) HTMLRt {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlRt ) TabIndex (v int ) HTMLRt {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlRt ) Title (format string , v ...any ) HTMLRt {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlRt ) On (event string , h EventHandler , options ...EventOption ) HTMLRt {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlRt ) OnBlur (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("blur" , h , options ...)
}
func (e *htmlRt ) OnChange (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("change" , h , options ...)
}
func (e *htmlRt ) OnClick (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("click" , h , options ...)
}
func (e *htmlRt ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlRt ) OnCopy (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("copy" , h , options ...)
}
func (e *htmlRt ) OnCut (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("cut" , h , options ...)
}
func (e *htmlRt ) OnDblClick (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlRt ) OnDrag (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("drag" , h , options ...)
}
func (e *htmlRt ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("dragend" , h , options ...)
}
func (e *htmlRt ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlRt ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlRt ) OnDragOver (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("dragover" , h , options ...)
}
func (e *htmlRt ) OnDragStart (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlRt ) OnDrop (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("drop" , h , options ...)
}
func (e *htmlRt ) OnFocus (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("focus" , h , options ...)
}
func (e *htmlRt ) OnInput (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("input" , h , options ...)
}
func (e *htmlRt ) OnInvalid (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("invalid" , h , options ...)
}
func (e *htmlRt ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("keydown" , h , options ...)
}
func (e *htmlRt ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("keypress" , h , options ...)
}
func (e *htmlRt ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("keyup" , h , options ...)
}
func (e *htmlRt ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlRt ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlRt ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlRt ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlRt ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlRt ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlRt ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlRt ) OnPaste (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("paste" , h , options ...)
}
func (e *htmlRt ) OnReset (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("reset" , h , options ...)
}
func (e *htmlRt ) OnScroll (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("scroll" , h , options ...)
}
func (e *htmlRt ) OnSearch (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("search" , h , options ...)
}
func (e *htmlRt ) OnSelect (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("select" , h , options ...)
}
func (e *htmlRt ) OnSubmit (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("submit" , h , options ...)
}
func (e *htmlRt ) OnWheel (h EventHandler , options ...EventOption ) HTMLRt {
return e .On ("wheel" , h , options ...)
}
func (e *htmlRt ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlRt ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlRt ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlRt ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlRt ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlRt ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLRuby interface {
HTML
Body (elems ...UI ) HTMLRuby
Text (v any ) HTMLRuby
Textf (format string , v ...any ) HTMLRuby
AccessKey (format string , v ...any ) HTMLRuby
Aria (k string , v any ) HTMLRuby
Attr (n string , v any ) HTMLRuby
Class (v ...string ) HTMLRuby
ContentEditable (v bool ) HTMLRuby
DataSet (k string , v any ) HTMLRuby
DataSets (ds map [string ]any ) HTMLRuby
Dir (format string , v ...any ) HTMLRuby
Draggable (v bool ) HTMLRuby
Hidden (v bool ) HTMLRuby
ID (format string , v ...any ) HTMLRuby
Lang (format string , v ...any ) HTMLRuby
Role (format string , v ...any ) HTMLRuby
Spellcheck (v bool ) HTMLRuby
Style (k, format string , v ...any ) HTMLRuby
Styles (s map [string ]string ) HTMLRuby
TabIndex (v int ) HTMLRuby
Title (format string , v ...any ) HTMLRuby
On (event string , h EventHandler , options ...EventOption ) HTMLRuby
OnBlur (h EventHandler , options ...EventOption ) HTMLRuby
OnChange (h EventHandler , options ...EventOption ) HTMLRuby
OnClick (h EventHandler , options ...EventOption ) HTMLRuby
OnContextMenu (h EventHandler , options ...EventOption ) HTMLRuby
OnCopy (h EventHandler , options ...EventOption ) HTMLRuby
OnCut (h EventHandler , options ...EventOption ) HTMLRuby
OnDblClick (h EventHandler , options ...EventOption ) HTMLRuby
OnDrag (h EventHandler , options ...EventOption ) HTMLRuby
OnDragEnd (h EventHandler , options ...EventOption ) HTMLRuby
OnDragEnter (h EventHandler , options ...EventOption ) HTMLRuby
OnDragLeave (h EventHandler , options ...EventOption ) HTMLRuby
OnDragOver (h EventHandler , options ...EventOption ) HTMLRuby
OnDragStart (h EventHandler , options ...EventOption ) HTMLRuby
OnDrop (h EventHandler , options ...EventOption ) HTMLRuby
OnFocus (h EventHandler , options ...EventOption ) HTMLRuby
OnInput (h EventHandler , options ...EventOption ) HTMLRuby
OnInvalid (h EventHandler , options ...EventOption ) HTMLRuby
OnKeyDown (h EventHandler , options ...EventOption ) HTMLRuby
OnKeyPress (h EventHandler , options ...EventOption ) HTMLRuby
OnKeyUp (h EventHandler , options ...EventOption ) HTMLRuby
OnMouseDown (h EventHandler , options ...EventOption ) HTMLRuby
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLRuby
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLRuby
OnMouseMove (h EventHandler , options ...EventOption ) HTMLRuby
OnMouseOut (h EventHandler , options ...EventOption ) HTMLRuby
OnMouseOver (h EventHandler , options ...EventOption ) HTMLRuby
OnMouseUp (h EventHandler , options ...EventOption ) HTMLRuby
OnPaste (h EventHandler , options ...EventOption ) HTMLRuby
OnReset (h EventHandler , options ...EventOption ) HTMLRuby
OnScroll (h EventHandler , options ...EventOption ) HTMLRuby
OnSearch (h EventHandler , options ...EventOption ) HTMLRuby
OnSelect (h EventHandler , options ...EventOption ) HTMLRuby
OnSubmit (h EventHandler , options ...EventOption ) HTMLRuby
OnWheel (h EventHandler , options ...EventOption ) HTMLRuby
}
func Ruby () HTMLRuby {
e := &htmlRuby {
htmlElement : htmlElement {
tag : "ruby" ,
isSelfClosing : false ,
},
}
return e
}
type htmlRuby struct {
htmlElement
}
func (e *htmlRuby ) Body (v ...UI ) HTMLRuby {
return e .setBody (FilterUIElems (v ...)).(*htmlRuby )
}
func (e *htmlRuby ) Text (v any ) HTMLRuby {
return e .Body (Text (v ))
}
func (e *htmlRuby ) Textf (format string , v ...any ) HTMLRuby {
return e .Body (Textf (format , v ...))
}
func (e *htmlRuby ) AccessKey (format string , v ...any ) HTMLRuby {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlRuby ) Aria (k string , v any ) HTMLRuby {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlRuby ) Attr (n string , v any ) HTMLRuby {
e .setAttr (n , v )
return e
}
func (e *htmlRuby ) Class (v ...string ) HTMLRuby {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlRuby ) ContentEditable (v bool ) HTMLRuby {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlRuby ) DataSet (k string , v any ) HTMLRuby {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlRuby ) DataSets (ds map [string ]any ) HTMLRuby {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlRuby ) Dir (format string , v ...any ) HTMLRuby {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlRuby ) Draggable (v bool ) HTMLRuby {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlRuby ) Hidden (v bool ) HTMLRuby {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlRuby ) ID (format string , v ...any ) HTMLRuby {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlRuby ) Lang (format string , v ...any ) HTMLRuby {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlRuby ) Role (format string , v ...any ) HTMLRuby {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlRuby ) Spellcheck (v bool ) HTMLRuby {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlRuby ) Style (k , format string , v ...any ) HTMLRuby {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlRuby ) Styles (s map [string ]string ) HTMLRuby {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlRuby ) TabIndex (v int ) HTMLRuby {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlRuby ) Title (format string , v ...any ) HTMLRuby {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlRuby ) On (event string , h EventHandler , options ...EventOption ) HTMLRuby {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlRuby ) OnBlur (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("blur" , h , options ...)
}
func (e *htmlRuby ) OnChange (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("change" , h , options ...)
}
func (e *htmlRuby ) OnClick (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("click" , h , options ...)
}
func (e *htmlRuby ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlRuby ) OnCopy (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("copy" , h , options ...)
}
func (e *htmlRuby ) OnCut (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("cut" , h , options ...)
}
func (e *htmlRuby ) OnDblClick (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlRuby ) OnDrag (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("drag" , h , options ...)
}
func (e *htmlRuby ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("dragend" , h , options ...)
}
func (e *htmlRuby ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlRuby ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlRuby ) OnDragOver (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("dragover" , h , options ...)
}
func (e *htmlRuby ) OnDragStart (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlRuby ) OnDrop (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("drop" , h , options ...)
}
func (e *htmlRuby ) OnFocus (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("focus" , h , options ...)
}
func (e *htmlRuby ) OnInput (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("input" , h , options ...)
}
func (e *htmlRuby ) OnInvalid (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("invalid" , h , options ...)
}
func (e *htmlRuby ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("keydown" , h , options ...)
}
func (e *htmlRuby ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("keypress" , h , options ...)
}
func (e *htmlRuby ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("keyup" , h , options ...)
}
func (e *htmlRuby ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlRuby ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlRuby ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlRuby ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlRuby ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlRuby ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlRuby ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlRuby ) OnPaste (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("paste" , h , options ...)
}
func (e *htmlRuby ) OnReset (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("reset" , h , options ...)
}
func (e *htmlRuby ) OnScroll (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("scroll" , h , options ...)
}
func (e *htmlRuby ) OnSearch (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("search" , h , options ...)
}
func (e *htmlRuby ) OnSelect (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("select" , h , options ...)
}
func (e *htmlRuby ) OnSubmit (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("submit" , h , options ...)
}
func (e *htmlRuby ) OnWheel (h EventHandler , options ...EventOption ) HTMLRuby {
return e .On ("wheel" , h , options ...)
}
func (e *htmlRuby ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlRuby ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlRuby ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlRuby ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlRuby ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlRuby ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLS interface {
HTML
Body (elems ...UI ) HTMLS
Text (v any ) HTMLS
Textf (format string , v ...any ) HTMLS
AccessKey (format string , v ...any ) HTMLS
Aria (k string , v any ) HTMLS
Attr (n string , v any ) HTMLS
Class (v ...string ) HTMLS
ContentEditable (v bool ) HTMLS
DataSet (k string , v any ) HTMLS
DataSets (ds map [string ]any ) HTMLS
Dir (format string , v ...any ) HTMLS
Draggable (v bool ) HTMLS
Hidden (v bool ) HTMLS
ID (format string , v ...any ) HTMLS
Lang (format string , v ...any ) HTMLS
Role (format string , v ...any ) HTMLS
Spellcheck (v bool ) HTMLS
Style (k, format string , v ...any ) HTMLS
Styles (s map [string ]string ) HTMLS
TabIndex (v int ) HTMLS
Title (format string , v ...any ) HTMLS
On (event string , h EventHandler , options ...EventOption ) HTMLS
OnBlur (h EventHandler , options ...EventOption ) HTMLS
OnChange (h EventHandler , options ...EventOption ) HTMLS
OnClick (h EventHandler , options ...EventOption ) HTMLS
OnContextMenu (h EventHandler , options ...EventOption ) HTMLS
OnCopy (h EventHandler , options ...EventOption ) HTMLS
OnCut (h EventHandler , options ...EventOption ) HTMLS
OnDblClick (h EventHandler , options ...EventOption ) HTMLS
OnDrag (h EventHandler , options ...EventOption ) HTMLS
OnDragEnd (h EventHandler , options ...EventOption ) HTMLS
OnDragEnter (h EventHandler , options ...EventOption ) HTMLS
OnDragLeave (h EventHandler , options ...EventOption ) HTMLS
OnDragOver (h EventHandler , options ...EventOption ) HTMLS
OnDragStart (h EventHandler , options ...EventOption ) HTMLS
OnDrop (h EventHandler , options ...EventOption ) HTMLS
OnFocus (h EventHandler , options ...EventOption ) HTMLS
OnInput (h EventHandler , options ...EventOption ) HTMLS
OnInvalid (h EventHandler , options ...EventOption ) HTMLS
OnKeyDown (h EventHandler , options ...EventOption ) HTMLS
OnKeyPress (h EventHandler , options ...EventOption ) HTMLS
OnKeyUp (h EventHandler , options ...EventOption ) HTMLS
OnMouseDown (h EventHandler , options ...EventOption ) HTMLS
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLS
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLS
OnMouseMove (h EventHandler , options ...EventOption ) HTMLS
OnMouseOut (h EventHandler , options ...EventOption ) HTMLS
OnMouseOver (h EventHandler , options ...EventOption ) HTMLS
OnMouseUp (h EventHandler , options ...EventOption ) HTMLS
OnPaste (h EventHandler , options ...EventOption ) HTMLS
OnReset (h EventHandler , options ...EventOption ) HTMLS
OnScroll (h EventHandler , options ...EventOption ) HTMLS
OnSearch (h EventHandler , options ...EventOption ) HTMLS
OnSelect (h EventHandler , options ...EventOption ) HTMLS
OnSubmit (h EventHandler , options ...EventOption ) HTMLS
OnWheel (h EventHandler , options ...EventOption ) HTMLS
}
func S () HTMLS {
e := &htmlS {
htmlElement : htmlElement {
tag : "s" ,
isSelfClosing : false ,
},
}
return e
}
type htmlS struct {
htmlElement
}
func (e *htmlS ) Body (v ...UI ) HTMLS {
return e .setBody (FilterUIElems (v ...)).(*htmlS )
}
func (e *htmlS ) Text (v any ) HTMLS {
return e .Body (Text (v ))
}
func (e *htmlS ) Textf (format string , v ...any ) HTMLS {
return e .Body (Textf (format , v ...))
}
func (e *htmlS ) AccessKey (format string , v ...any ) HTMLS {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlS ) Aria (k string , v any ) HTMLS {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlS ) Attr (n string , v any ) HTMLS {
e .setAttr (n , v )
return e
}
func (e *htmlS ) Class (v ...string ) HTMLS {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlS ) ContentEditable (v bool ) HTMLS {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlS ) DataSet (k string , v any ) HTMLS {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlS ) DataSets (ds map [string ]any ) HTMLS {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlS ) Dir (format string , v ...any ) HTMLS {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlS ) Draggable (v bool ) HTMLS {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlS ) Hidden (v bool ) HTMLS {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlS ) ID (format string , v ...any ) HTMLS {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlS ) Lang (format string , v ...any ) HTMLS {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlS ) Role (format string , v ...any ) HTMLS {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlS ) Spellcheck (v bool ) HTMLS {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlS ) Style (k , format string , v ...any ) HTMLS {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlS ) Styles (s map [string ]string ) HTMLS {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlS ) TabIndex (v int ) HTMLS {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlS ) Title (format string , v ...any ) HTMLS {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlS ) On (event string , h EventHandler , options ...EventOption ) HTMLS {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlS ) OnBlur (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("blur" , h , options ...)
}
func (e *htmlS ) OnChange (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("change" , h , options ...)
}
func (e *htmlS ) OnClick (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("click" , h , options ...)
}
func (e *htmlS ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlS ) OnCopy (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("copy" , h , options ...)
}
func (e *htmlS ) OnCut (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("cut" , h , options ...)
}
func (e *htmlS ) OnDblClick (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlS ) OnDrag (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("drag" , h , options ...)
}
func (e *htmlS ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("dragend" , h , options ...)
}
func (e *htmlS ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlS ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlS ) OnDragOver (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("dragover" , h , options ...)
}
func (e *htmlS ) OnDragStart (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlS ) OnDrop (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("drop" , h , options ...)
}
func (e *htmlS ) OnFocus (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("focus" , h , options ...)
}
func (e *htmlS ) OnInput (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("input" , h , options ...)
}
func (e *htmlS ) OnInvalid (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("invalid" , h , options ...)
}
func (e *htmlS ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("keydown" , h , options ...)
}
func (e *htmlS ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("keypress" , h , options ...)
}
func (e *htmlS ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("keyup" , h , options ...)
}
func (e *htmlS ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlS ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlS ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlS ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlS ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlS ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlS ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlS ) OnPaste (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("paste" , h , options ...)
}
func (e *htmlS ) OnReset (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("reset" , h , options ...)
}
func (e *htmlS ) OnScroll (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("scroll" , h , options ...)
}
func (e *htmlS ) OnSearch (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("search" , h , options ...)
}
func (e *htmlS ) OnSelect (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("select" , h , options ...)
}
func (e *htmlS ) OnSubmit (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("submit" , h , options ...)
}
func (e *htmlS ) OnWheel (h EventHandler , options ...EventOption ) HTMLS {
return e .On ("wheel" , h , options ...)
}
func (e *htmlS ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlS ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlS ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlS ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlS ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlS ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSamp interface {
HTML
Body (elems ...UI ) HTMLSamp
Text (v any ) HTMLSamp
Textf (format string , v ...any ) HTMLSamp
AccessKey (format string , v ...any ) HTMLSamp
Aria (k string , v any ) HTMLSamp
Attr (n string , v any ) HTMLSamp
Class (v ...string ) HTMLSamp
ContentEditable (v bool ) HTMLSamp
DataSet (k string , v any ) HTMLSamp
DataSets (ds map [string ]any ) HTMLSamp
Dir (format string , v ...any ) HTMLSamp
Draggable (v bool ) HTMLSamp
Hidden (v bool ) HTMLSamp
ID (format string , v ...any ) HTMLSamp
Lang (format string , v ...any ) HTMLSamp
Role (format string , v ...any ) HTMLSamp
Spellcheck (v bool ) HTMLSamp
Style (k, format string , v ...any ) HTMLSamp
Styles (s map [string ]string ) HTMLSamp
TabIndex (v int ) HTMLSamp
Title (format string , v ...any ) HTMLSamp
On (event string , h EventHandler , options ...EventOption ) HTMLSamp
OnBlur (h EventHandler , options ...EventOption ) HTMLSamp
OnChange (h EventHandler , options ...EventOption ) HTMLSamp
OnClick (h EventHandler , options ...EventOption ) HTMLSamp
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSamp
OnCopy (h EventHandler , options ...EventOption ) HTMLSamp
OnCut (h EventHandler , options ...EventOption ) HTMLSamp
OnDblClick (h EventHandler , options ...EventOption ) HTMLSamp
OnDrag (h EventHandler , options ...EventOption ) HTMLSamp
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSamp
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSamp
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSamp
OnDragOver (h EventHandler , options ...EventOption ) HTMLSamp
OnDragStart (h EventHandler , options ...EventOption ) HTMLSamp
OnDrop (h EventHandler , options ...EventOption ) HTMLSamp
OnFocus (h EventHandler , options ...EventOption ) HTMLSamp
OnInput (h EventHandler , options ...EventOption ) HTMLSamp
OnInvalid (h EventHandler , options ...EventOption ) HTMLSamp
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSamp
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSamp
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSamp
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSamp
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSamp
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSamp
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSamp
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSamp
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSamp
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSamp
OnPaste (h EventHandler , options ...EventOption ) HTMLSamp
OnReset (h EventHandler , options ...EventOption ) HTMLSamp
OnScroll (h EventHandler , options ...EventOption ) HTMLSamp
OnSearch (h EventHandler , options ...EventOption ) HTMLSamp
OnSelect (h EventHandler , options ...EventOption ) HTMLSamp
OnSubmit (h EventHandler , options ...EventOption ) HTMLSamp
OnWheel (h EventHandler , options ...EventOption ) HTMLSamp
}
func Samp () HTMLSamp {
e := &htmlSamp {
htmlElement : htmlElement {
tag : "samp" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSamp struct {
htmlElement
}
func (e *htmlSamp ) Body (v ...UI ) HTMLSamp {
return e .setBody (FilterUIElems (v ...)).(*htmlSamp )
}
func (e *htmlSamp ) Text (v any ) HTMLSamp {
return e .Body (Text (v ))
}
func (e *htmlSamp ) Textf (format string , v ...any ) HTMLSamp {
return e .Body (Textf (format , v ...))
}
func (e *htmlSamp ) AccessKey (format string , v ...any ) HTMLSamp {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSamp ) Aria (k string , v any ) HTMLSamp {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSamp ) Attr (n string , v any ) HTMLSamp {
e .setAttr (n , v )
return e
}
func (e *htmlSamp ) Class (v ...string ) HTMLSamp {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSamp ) ContentEditable (v bool ) HTMLSamp {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSamp ) DataSet (k string , v any ) HTMLSamp {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSamp ) DataSets (ds map [string ]any ) HTMLSamp {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSamp ) Dir (format string , v ...any ) HTMLSamp {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSamp ) Draggable (v bool ) HTMLSamp {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSamp ) Hidden (v bool ) HTMLSamp {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSamp ) ID (format string , v ...any ) HTMLSamp {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSamp ) Lang (format string , v ...any ) HTMLSamp {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSamp ) Role (format string , v ...any ) HTMLSamp {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSamp ) Spellcheck (v bool ) HTMLSamp {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSamp ) Style (k , format string , v ...any ) HTMLSamp {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSamp ) Styles (s map [string ]string ) HTMLSamp {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSamp ) TabIndex (v int ) HTMLSamp {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSamp ) Title (format string , v ...any ) HTMLSamp {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSamp ) On (event string , h EventHandler , options ...EventOption ) HTMLSamp {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSamp ) OnBlur (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("blur" , h , options ...)
}
func (e *htmlSamp ) OnChange (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("change" , h , options ...)
}
func (e *htmlSamp ) OnClick (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("click" , h , options ...)
}
func (e *htmlSamp ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSamp ) OnCopy (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("copy" , h , options ...)
}
func (e *htmlSamp ) OnCut (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("cut" , h , options ...)
}
func (e *htmlSamp ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSamp ) OnDrag (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("drag" , h , options ...)
}
func (e *htmlSamp ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSamp ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSamp ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSamp ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSamp ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSamp ) OnDrop (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("drop" , h , options ...)
}
func (e *htmlSamp ) OnFocus (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("focus" , h , options ...)
}
func (e *htmlSamp ) OnInput (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("input" , h , options ...)
}
func (e *htmlSamp ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSamp ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSamp ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSamp ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSamp ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSamp ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSamp ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSamp ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSamp ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSamp ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSamp ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSamp ) OnPaste (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("paste" , h , options ...)
}
func (e *htmlSamp ) OnReset (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("reset" , h , options ...)
}
func (e *htmlSamp ) OnScroll (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSamp ) OnSearch (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("search" , h , options ...)
}
func (e *htmlSamp ) OnSelect (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("select" , h , options ...)
}
func (e *htmlSamp ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("submit" , h , options ...)
}
func (e *htmlSamp ) OnWheel (h EventHandler , options ...EventOption ) HTMLSamp {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSamp ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSamp ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSamp ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSamp ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSamp ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSamp ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLScript interface {
HTML
Body (elems ...UI ) HTMLScript
Text (v any ) HTMLScript
Textf (format string , v ...any ) HTMLScript
AccessKey (format string , v ...any ) HTMLScript
Aria (k string , v any ) HTMLScript
Async (v bool ) HTMLScript
Attr (n string , v any ) HTMLScript
Charset (format string , v ...any ) HTMLScript
Class (v ...string ) HTMLScript
ContentEditable (v bool ) HTMLScript
CrossOrigin (format string , v ...any ) HTMLScript
DataSet (k string , v any ) HTMLScript
DataSets (ds map [string ]any ) HTMLScript
Defer (v bool ) HTMLScript
Dir (format string , v ...any ) HTMLScript
Draggable (v bool ) HTMLScript
Hidden (v bool ) HTMLScript
ID (format string , v ...any ) HTMLScript
Lang (format string , v ...any ) HTMLScript
Role (format string , v ...any ) HTMLScript
Spellcheck (v bool ) HTMLScript
Src (format string , v ...any ) HTMLScript
Style (k, format string , v ...any ) HTMLScript
Styles (s map [string ]string ) HTMLScript
TabIndex (v int ) HTMLScript
Title (format string , v ...any ) HTMLScript
Type (format string , v ...any ) HTMLScript
On (event string , h EventHandler , options ...EventOption ) HTMLScript
OnLoad (h EventHandler , options ...EventOption ) HTMLScript
}
func Script () HTMLScript {
e := &htmlScript {
htmlElement : htmlElement {
tag : "script" ,
isSelfClosing : false ,
},
}
return e
}
type htmlScript struct {
htmlElement
}
func (e *htmlScript ) Body (v ...UI ) HTMLScript {
return e .setBody (FilterUIElems (v ...)).(*htmlScript )
}
func (e *htmlScript ) Text (v any ) HTMLScript {
return e .Body (Text (v ))
}
func (e *htmlScript ) Textf (format string , v ...any ) HTMLScript {
return e .Body (Textf (format , v ...))
}
func (e *htmlScript ) AccessKey (format string , v ...any ) HTMLScript {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Aria (k string , v any ) HTMLScript {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlScript ) Async (v bool ) HTMLScript {
e .setAttr ("async" , v )
return e
}
func (e *htmlScript ) Attr (n string , v any ) HTMLScript {
e .setAttr (n , v )
return e
}
func (e *htmlScript ) Charset (format string , v ...any ) HTMLScript {
e .setAttr ("charset" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Class (v ...string ) HTMLScript {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlScript ) ContentEditable (v bool ) HTMLScript {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlScript ) CrossOrigin (format string , v ...any ) HTMLScript {
e .setAttr ("crossorigin" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) DataSet (k string , v any ) HTMLScript {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlScript ) DataSets (ds map [string ]any ) HTMLScript {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlScript ) Defer (v bool ) HTMLScript {
e .setAttr ("defer" , v )
return e
}
func (e *htmlScript ) Dir (format string , v ...any ) HTMLScript {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Draggable (v bool ) HTMLScript {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlScript ) Hidden (v bool ) HTMLScript {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlScript ) ID (format string , v ...any ) HTMLScript {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Lang (format string , v ...any ) HTMLScript {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Role (format string , v ...any ) HTMLScript {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Spellcheck (v bool ) HTMLScript {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlScript ) Src (format string , v ...any ) HTMLScript {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Style (k , format string , v ...any ) HTMLScript {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlScript ) Styles (s map [string ]string ) HTMLScript {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlScript ) TabIndex (v int ) HTMLScript {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlScript ) Title (format string , v ...any ) HTMLScript {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) Type (format string , v ...any ) HTMLScript {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlScript ) On (event string , h EventHandler , options ...EventOption ) HTMLScript {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlScript ) OnLoad (h EventHandler , options ...EventOption ) HTMLScript {
return e .On ("load" , h , options ...)
}
func (e *htmlScript ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlScript ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlScript ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlScript ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlScript ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlScript ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSection interface {
HTML
Body (elems ...UI ) HTMLSection
Text (v any ) HTMLSection
Textf (format string , v ...any ) HTMLSection
AccessKey (format string , v ...any ) HTMLSection
Aria (k string , v any ) HTMLSection
Attr (n string , v any ) HTMLSection
Class (v ...string ) HTMLSection
ContentEditable (v bool ) HTMLSection
DataSet (k string , v any ) HTMLSection
DataSets (ds map [string ]any ) HTMLSection
Dir (format string , v ...any ) HTMLSection
Draggable (v bool ) HTMLSection
Hidden (v bool ) HTMLSection
ID (format string , v ...any ) HTMLSection
Lang (format string , v ...any ) HTMLSection
Role (format string , v ...any ) HTMLSection
Spellcheck (v bool ) HTMLSection
Style (k, format string , v ...any ) HTMLSection
Styles (s map [string ]string ) HTMLSection
TabIndex (v int ) HTMLSection
Title (format string , v ...any ) HTMLSection
On (event string , h EventHandler , options ...EventOption ) HTMLSection
OnBlur (h EventHandler , options ...EventOption ) HTMLSection
OnChange (h EventHandler , options ...EventOption ) HTMLSection
OnClick (h EventHandler , options ...EventOption ) HTMLSection
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSection
OnCopy (h EventHandler , options ...EventOption ) HTMLSection
OnCut (h EventHandler , options ...EventOption ) HTMLSection
OnDblClick (h EventHandler , options ...EventOption ) HTMLSection
OnDrag (h EventHandler , options ...EventOption ) HTMLSection
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSection
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSection
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSection
OnDragOver (h EventHandler , options ...EventOption ) HTMLSection
OnDragStart (h EventHandler , options ...EventOption ) HTMLSection
OnDrop (h EventHandler , options ...EventOption ) HTMLSection
OnFocus (h EventHandler , options ...EventOption ) HTMLSection
OnInput (h EventHandler , options ...EventOption ) HTMLSection
OnInvalid (h EventHandler , options ...EventOption ) HTMLSection
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSection
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSection
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSection
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSection
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSection
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSection
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSection
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSection
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSection
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSection
OnPaste (h EventHandler , options ...EventOption ) HTMLSection
OnReset (h EventHandler , options ...EventOption ) HTMLSection
OnScroll (h EventHandler , options ...EventOption ) HTMLSection
OnSearch (h EventHandler , options ...EventOption ) HTMLSection
OnSelect (h EventHandler , options ...EventOption ) HTMLSection
OnSubmit (h EventHandler , options ...EventOption ) HTMLSection
OnWheel (h EventHandler , options ...EventOption ) HTMLSection
}
func Section () HTMLSection {
e := &htmlSection {
htmlElement : htmlElement {
tag : "section" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSection struct {
htmlElement
}
func (e *htmlSection ) Body (v ...UI ) HTMLSection {
return e .setBody (FilterUIElems (v ...)).(*htmlSection )
}
func (e *htmlSection ) Text (v any ) HTMLSection {
return e .Body (Text (v ))
}
func (e *htmlSection ) Textf (format string , v ...any ) HTMLSection {
return e .Body (Textf (format , v ...))
}
func (e *htmlSection ) AccessKey (format string , v ...any ) HTMLSection {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSection ) Aria (k string , v any ) HTMLSection {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSection ) Attr (n string , v any ) HTMLSection {
e .setAttr (n , v )
return e
}
func (e *htmlSection ) Class (v ...string ) HTMLSection {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSection ) ContentEditable (v bool ) HTMLSection {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSection ) DataSet (k string , v any ) HTMLSection {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSection ) DataSets (ds map [string ]any ) HTMLSection {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSection ) Dir (format string , v ...any ) HTMLSection {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSection ) Draggable (v bool ) HTMLSection {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSection ) Hidden (v bool ) HTMLSection {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSection ) ID (format string , v ...any ) HTMLSection {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSection ) Lang (format string , v ...any ) HTMLSection {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSection ) Role (format string , v ...any ) HTMLSection {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSection ) Spellcheck (v bool ) HTMLSection {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSection ) Style (k , format string , v ...any ) HTMLSection {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSection ) Styles (s map [string ]string ) HTMLSection {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSection ) TabIndex (v int ) HTMLSection {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSection ) Title (format string , v ...any ) HTMLSection {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSection ) On (event string , h EventHandler , options ...EventOption ) HTMLSection {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSection ) OnBlur (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("blur" , h , options ...)
}
func (e *htmlSection ) OnChange (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("change" , h , options ...)
}
func (e *htmlSection ) OnClick (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("click" , h , options ...)
}
func (e *htmlSection ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSection ) OnCopy (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("copy" , h , options ...)
}
func (e *htmlSection ) OnCut (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("cut" , h , options ...)
}
func (e *htmlSection ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSection ) OnDrag (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("drag" , h , options ...)
}
func (e *htmlSection ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSection ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSection ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSection ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSection ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSection ) OnDrop (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("drop" , h , options ...)
}
func (e *htmlSection ) OnFocus (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("focus" , h , options ...)
}
func (e *htmlSection ) OnInput (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("input" , h , options ...)
}
func (e *htmlSection ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSection ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSection ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSection ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSection ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSection ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSection ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSection ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSection ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSection ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSection ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSection ) OnPaste (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("paste" , h , options ...)
}
func (e *htmlSection ) OnReset (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("reset" , h , options ...)
}
func (e *htmlSection ) OnScroll (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSection ) OnSearch (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("search" , h , options ...)
}
func (e *htmlSection ) OnSelect (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("select" , h , options ...)
}
func (e *htmlSection ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("submit" , h , options ...)
}
func (e *htmlSection ) OnWheel (h EventHandler , options ...EventOption ) HTMLSection {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSection ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSection ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSection ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSection ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSection ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSection ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSelect interface {
HTML
Body (elems ...UI ) HTMLSelect
Text (v any ) HTMLSelect
Textf (format string , v ...any ) HTMLSelect
AccessKey (format string , v ...any ) HTMLSelect
Aria (k string , v any ) HTMLSelect
Attr (n string , v any ) HTMLSelect
AutoFocus (v bool ) HTMLSelect
Class (v ...string ) HTMLSelect
ContentEditable (v bool ) HTMLSelect
DataSet (k string , v any ) HTMLSelect
DataSets (ds map [string ]any ) HTMLSelect
Dir (format string , v ...any ) HTMLSelect
Disabled (v bool ) HTMLSelect
Draggable (v bool ) HTMLSelect
Form (format string , v ...any ) HTMLSelect
Hidden (v bool ) HTMLSelect
ID (format string , v ...any ) HTMLSelect
Lang (format string , v ...any ) HTMLSelect
Multiple (v bool ) HTMLSelect
Name (format string , v ...any ) HTMLSelect
Required (v bool ) HTMLSelect
Role (format string , v ...any ) HTMLSelect
Size (v int ) HTMLSelect
Spellcheck (v bool ) HTMLSelect
Style (k, format string , v ...any ) HTMLSelect
Styles (s map [string ]string ) HTMLSelect
TabIndex (v int ) HTMLSelect
Title (format string , v ...any ) HTMLSelect
On (event string , h EventHandler , options ...EventOption ) HTMLSelect
OnBlur (h EventHandler , options ...EventOption ) HTMLSelect
OnChange (h EventHandler , options ...EventOption ) HTMLSelect
OnClick (h EventHandler , options ...EventOption ) HTMLSelect
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSelect
OnCopy (h EventHandler , options ...EventOption ) HTMLSelect
OnCut (h EventHandler , options ...EventOption ) HTMLSelect
OnDblClick (h EventHandler , options ...EventOption ) HTMLSelect
OnDrag (h EventHandler , options ...EventOption ) HTMLSelect
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSelect
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSelect
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSelect
OnDragOver (h EventHandler , options ...EventOption ) HTMLSelect
OnDragStart (h EventHandler , options ...EventOption ) HTMLSelect
OnDrop (h EventHandler , options ...EventOption ) HTMLSelect
OnFocus (h EventHandler , options ...EventOption ) HTMLSelect
OnInput (h EventHandler , options ...EventOption ) HTMLSelect
OnInvalid (h EventHandler , options ...EventOption ) HTMLSelect
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSelect
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSelect
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSelect
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSelect
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSelect
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSelect
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSelect
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSelect
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSelect
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSelect
OnPaste (h EventHandler , options ...EventOption ) HTMLSelect
OnReset (h EventHandler , options ...EventOption ) HTMLSelect
OnScroll (h EventHandler , options ...EventOption ) HTMLSelect
OnSearch (h EventHandler , options ...EventOption ) HTMLSelect
OnSelect (h EventHandler , options ...EventOption ) HTMLSelect
OnSubmit (h EventHandler , options ...EventOption ) HTMLSelect
OnWheel (h EventHandler , options ...EventOption ) HTMLSelect
}
func Select () HTMLSelect {
e := &htmlSelect {
htmlElement : htmlElement {
tag : "select" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSelect struct {
htmlElement
}
func (e *htmlSelect ) Body (v ...UI ) HTMLSelect {
return e .setBody (FilterUIElems (v ...)).(*htmlSelect )
}
func (e *htmlSelect ) Text (v any ) HTMLSelect {
return e .Body (Text (v ))
}
func (e *htmlSelect ) Textf (format string , v ...any ) HTMLSelect {
return e .Body (Textf (format , v ...))
}
func (e *htmlSelect ) AccessKey (format string , v ...any ) HTMLSelect {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Aria (k string , v any ) HTMLSelect {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSelect ) Attr (n string , v any ) HTMLSelect {
e .setAttr (n , v )
return e
}
func (e *htmlSelect ) AutoFocus (v bool ) HTMLSelect {
e .setAttr ("autofocus" , v )
return e
}
func (e *htmlSelect ) Class (v ...string ) HTMLSelect {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSelect ) ContentEditable (v bool ) HTMLSelect {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSelect ) DataSet (k string , v any ) HTMLSelect {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSelect ) DataSets (ds map [string ]any ) HTMLSelect {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSelect ) Dir (format string , v ...any ) HTMLSelect {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Disabled (v bool ) HTMLSelect {
e .setAttr ("disabled" , v )
return e
}
func (e *htmlSelect ) Draggable (v bool ) HTMLSelect {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSelect ) Form (format string , v ...any ) HTMLSelect {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Hidden (v bool ) HTMLSelect {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSelect ) ID (format string , v ...any ) HTMLSelect {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Lang (format string , v ...any ) HTMLSelect {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Multiple (v bool ) HTMLSelect {
e .setAttr ("multiple" , v )
return e
}
func (e *htmlSelect ) Name (format string , v ...any ) HTMLSelect {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Required (v bool ) HTMLSelect {
e .setAttr ("required" , v )
return e
}
func (e *htmlSelect ) Role (format string , v ...any ) HTMLSelect {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Size (v int ) HTMLSelect {
e .setAttr ("size" , v )
return e
}
func (e *htmlSelect ) Spellcheck (v bool ) HTMLSelect {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSelect ) Style (k , format string , v ...any ) HTMLSelect {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSelect ) Styles (s map [string ]string ) HTMLSelect {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSelect ) TabIndex (v int ) HTMLSelect {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSelect ) Title (format string , v ...any ) HTMLSelect {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSelect ) On (event string , h EventHandler , options ...EventOption ) HTMLSelect {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSelect ) OnBlur (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("blur" , h , options ...)
}
func (e *htmlSelect ) OnChange (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("change" , h , options ...)
}
func (e *htmlSelect ) OnClick (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("click" , h , options ...)
}
func (e *htmlSelect ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSelect ) OnCopy (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("copy" , h , options ...)
}
func (e *htmlSelect ) OnCut (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("cut" , h , options ...)
}
func (e *htmlSelect ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSelect ) OnDrag (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("drag" , h , options ...)
}
func (e *htmlSelect ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSelect ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSelect ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSelect ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSelect ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSelect ) OnDrop (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("drop" , h , options ...)
}
func (e *htmlSelect ) OnFocus (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("focus" , h , options ...)
}
func (e *htmlSelect ) OnInput (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("input" , h , options ...)
}
func (e *htmlSelect ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSelect ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSelect ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSelect ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSelect ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSelect ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSelect ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSelect ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSelect ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSelect ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSelect ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSelect ) OnPaste (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("paste" , h , options ...)
}
func (e *htmlSelect ) OnReset (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("reset" , h , options ...)
}
func (e *htmlSelect ) OnScroll (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSelect ) OnSearch (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("search" , h , options ...)
}
func (e *htmlSelect ) OnSelect (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("select" , h , options ...)
}
func (e *htmlSelect ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("submit" , h , options ...)
}
func (e *htmlSelect ) OnWheel (h EventHandler , options ...EventOption ) HTMLSelect {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSelect ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSelect ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSelect ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSelect ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSelect ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSelect ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSmall interface {
HTML
Body (elems ...UI ) HTMLSmall
Text (v any ) HTMLSmall
Textf (format string , v ...any ) HTMLSmall
AccessKey (format string , v ...any ) HTMLSmall
Aria (k string , v any ) HTMLSmall
Attr (n string , v any ) HTMLSmall
Class (v ...string ) HTMLSmall
ContentEditable (v bool ) HTMLSmall
DataSet (k string , v any ) HTMLSmall
DataSets (ds map [string ]any ) HTMLSmall
Dir (format string , v ...any ) HTMLSmall
Draggable (v bool ) HTMLSmall
Hidden (v bool ) HTMLSmall
ID (format string , v ...any ) HTMLSmall
Lang (format string , v ...any ) HTMLSmall
Role (format string , v ...any ) HTMLSmall
Spellcheck (v bool ) HTMLSmall
Style (k, format string , v ...any ) HTMLSmall
Styles (s map [string ]string ) HTMLSmall
TabIndex (v int ) HTMLSmall
Title (format string , v ...any ) HTMLSmall
On (event string , h EventHandler , options ...EventOption ) HTMLSmall
OnBlur (h EventHandler , options ...EventOption ) HTMLSmall
OnChange (h EventHandler , options ...EventOption ) HTMLSmall
OnClick (h EventHandler , options ...EventOption ) HTMLSmall
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSmall
OnCopy (h EventHandler , options ...EventOption ) HTMLSmall
OnCut (h EventHandler , options ...EventOption ) HTMLSmall
OnDblClick (h EventHandler , options ...EventOption ) HTMLSmall
OnDrag (h EventHandler , options ...EventOption ) HTMLSmall
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSmall
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSmall
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSmall
OnDragOver (h EventHandler , options ...EventOption ) HTMLSmall
OnDragStart (h EventHandler , options ...EventOption ) HTMLSmall
OnDrop (h EventHandler , options ...EventOption ) HTMLSmall
OnFocus (h EventHandler , options ...EventOption ) HTMLSmall
OnInput (h EventHandler , options ...EventOption ) HTMLSmall
OnInvalid (h EventHandler , options ...EventOption ) HTMLSmall
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSmall
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSmall
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSmall
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSmall
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSmall
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSmall
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSmall
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSmall
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSmall
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSmall
OnPaste (h EventHandler , options ...EventOption ) HTMLSmall
OnReset (h EventHandler , options ...EventOption ) HTMLSmall
OnScroll (h EventHandler , options ...EventOption ) HTMLSmall
OnSearch (h EventHandler , options ...EventOption ) HTMLSmall
OnSelect (h EventHandler , options ...EventOption ) HTMLSmall
OnSubmit (h EventHandler , options ...EventOption ) HTMLSmall
OnWheel (h EventHandler , options ...EventOption ) HTMLSmall
}
func Small () HTMLSmall {
e := &htmlSmall {
htmlElement : htmlElement {
tag : "small" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSmall struct {
htmlElement
}
func (e *htmlSmall ) Body (v ...UI ) HTMLSmall {
return e .setBody (FilterUIElems (v ...)).(*htmlSmall )
}
func (e *htmlSmall ) Text (v any ) HTMLSmall {
return e .Body (Text (v ))
}
func (e *htmlSmall ) Textf (format string , v ...any ) HTMLSmall {
return e .Body (Textf (format , v ...))
}
func (e *htmlSmall ) AccessKey (format string , v ...any ) HTMLSmall {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSmall ) Aria (k string , v any ) HTMLSmall {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSmall ) Attr (n string , v any ) HTMLSmall {
e .setAttr (n , v )
return e
}
func (e *htmlSmall ) Class (v ...string ) HTMLSmall {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSmall ) ContentEditable (v bool ) HTMLSmall {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSmall ) DataSet (k string , v any ) HTMLSmall {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSmall ) DataSets (ds map [string ]any ) HTMLSmall {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSmall ) Dir (format string , v ...any ) HTMLSmall {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSmall ) Draggable (v bool ) HTMLSmall {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSmall ) Hidden (v bool ) HTMLSmall {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSmall ) ID (format string , v ...any ) HTMLSmall {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSmall ) Lang (format string , v ...any ) HTMLSmall {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSmall ) Role (format string , v ...any ) HTMLSmall {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSmall ) Spellcheck (v bool ) HTMLSmall {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSmall ) Style (k , format string , v ...any ) HTMLSmall {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSmall ) Styles (s map [string ]string ) HTMLSmall {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSmall ) TabIndex (v int ) HTMLSmall {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSmall ) Title (format string , v ...any ) HTMLSmall {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSmall ) On (event string , h EventHandler , options ...EventOption ) HTMLSmall {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSmall ) OnBlur (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("blur" , h , options ...)
}
func (e *htmlSmall ) OnChange (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("change" , h , options ...)
}
func (e *htmlSmall ) OnClick (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("click" , h , options ...)
}
func (e *htmlSmall ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSmall ) OnCopy (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("copy" , h , options ...)
}
func (e *htmlSmall ) OnCut (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("cut" , h , options ...)
}
func (e *htmlSmall ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSmall ) OnDrag (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("drag" , h , options ...)
}
func (e *htmlSmall ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSmall ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSmall ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSmall ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSmall ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSmall ) OnDrop (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("drop" , h , options ...)
}
func (e *htmlSmall ) OnFocus (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("focus" , h , options ...)
}
func (e *htmlSmall ) OnInput (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("input" , h , options ...)
}
func (e *htmlSmall ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSmall ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSmall ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSmall ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSmall ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSmall ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSmall ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSmall ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSmall ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSmall ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSmall ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSmall ) OnPaste (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("paste" , h , options ...)
}
func (e *htmlSmall ) OnReset (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("reset" , h , options ...)
}
func (e *htmlSmall ) OnScroll (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSmall ) OnSearch (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("search" , h , options ...)
}
func (e *htmlSmall ) OnSelect (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("select" , h , options ...)
}
func (e *htmlSmall ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("submit" , h , options ...)
}
func (e *htmlSmall ) OnWheel (h EventHandler , options ...EventOption ) HTMLSmall {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSmall ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSmall ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSmall ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSmall ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSmall ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSmall ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSource interface {
HTML
AccessKey (format string , v ...any ) HTMLSource
Aria (k string , v any ) HTMLSource
Attr (n string , v any ) HTMLSource
Class (v ...string ) HTMLSource
ContentEditable (v bool ) HTMLSource
DataSet (k string , v any ) HTMLSource
DataSets (ds map [string ]any ) HTMLSource
Dir (format string , v ...any ) HTMLSource
Draggable (v bool ) HTMLSource
Hidden (v bool ) HTMLSource
ID (format string , v ...any ) HTMLSource
Lang (format string , v ...any ) HTMLSource
Media (format string , v ...any ) HTMLSource
Role (format string , v ...any ) HTMLSource
Sizes (format string , v ...any ) HTMLSource
Spellcheck (v bool ) HTMLSource
Src (format string , v ...any ) HTMLSource
SrcSet (format string , v ...any ) HTMLSource
Style (k, format string , v ...any ) HTMLSource
Styles (s map [string ]string ) HTMLSource
TabIndex (v int ) HTMLSource
Title (format string , v ...any ) HTMLSource
Type (format string , v ...any ) HTMLSource
On (event string , h EventHandler , options ...EventOption ) HTMLSource
OnBlur (h EventHandler , options ...EventOption ) HTMLSource
OnChange (h EventHandler , options ...EventOption ) HTMLSource
OnClick (h EventHandler , options ...EventOption ) HTMLSource
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSource
OnCopy (h EventHandler , options ...EventOption ) HTMLSource
OnCut (h EventHandler , options ...EventOption ) HTMLSource
OnDblClick (h EventHandler , options ...EventOption ) HTMLSource
OnDrag (h EventHandler , options ...EventOption ) HTMLSource
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSource
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSource
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSource
OnDragOver (h EventHandler , options ...EventOption ) HTMLSource
OnDragStart (h EventHandler , options ...EventOption ) HTMLSource
OnDrop (h EventHandler , options ...EventOption ) HTMLSource
OnFocus (h EventHandler , options ...EventOption ) HTMLSource
OnInput (h EventHandler , options ...EventOption ) HTMLSource
OnInvalid (h EventHandler , options ...EventOption ) HTMLSource
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSource
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSource
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSource
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSource
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSource
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSource
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSource
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSource
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSource
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSource
OnPaste (h EventHandler , options ...EventOption ) HTMLSource
OnReset (h EventHandler , options ...EventOption ) HTMLSource
OnScroll (h EventHandler , options ...EventOption ) HTMLSource
OnSearch (h EventHandler , options ...EventOption ) HTMLSource
OnSelect (h EventHandler , options ...EventOption ) HTMLSource
OnSubmit (h EventHandler , options ...EventOption ) HTMLSource
OnWheel (h EventHandler , options ...EventOption ) HTMLSource
}
func Source () HTMLSource {
e := &htmlSource {
htmlElement : htmlElement {
tag : "source" ,
isSelfClosing : true ,
},
}
return e
}
type htmlSource struct {
htmlElement
}
func (e *htmlSource ) AccessKey (format string , v ...any ) HTMLSource {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Aria (k string , v any ) HTMLSource {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSource ) Attr (n string , v any ) HTMLSource {
e .setAttr (n , v )
return e
}
func (e *htmlSource ) Class (v ...string ) HTMLSource {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSource ) ContentEditable (v bool ) HTMLSource {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSource ) DataSet (k string , v any ) HTMLSource {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSource ) DataSets (ds map [string ]any ) HTMLSource {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSource ) Dir (format string , v ...any ) HTMLSource {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Draggable (v bool ) HTMLSource {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSource ) Hidden (v bool ) HTMLSource {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSource ) ID (format string , v ...any ) HTMLSource {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Lang (format string , v ...any ) HTMLSource {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Media (format string , v ...any ) HTMLSource {
e .setAttr ("media" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Role (format string , v ...any ) HTMLSource {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Sizes (format string , v ...any ) HTMLSource {
e .setAttr ("sizes" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Spellcheck (v bool ) HTMLSource {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSource ) Src (format string , v ...any ) HTMLSource {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) SrcSet (format string , v ...any ) HTMLSource {
e .setAttr ("srcset" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Style (k , format string , v ...any ) HTMLSource {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSource ) Styles (s map [string ]string ) HTMLSource {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSource ) TabIndex (v int ) HTMLSource {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSource ) Title (format string , v ...any ) HTMLSource {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) Type (format string , v ...any ) HTMLSource {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlSource ) On (event string , h EventHandler , options ...EventOption ) HTMLSource {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSource ) OnBlur (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("blur" , h , options ...)
}
func (e *htmlSource ) OnChange (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("change" , h , options ...)
}
func (e *htmlSource ) OnClick (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("click" , h , options ...)
}
func (e *htmlSource ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSource ) OnCopy (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("copy" , h , options ...)
}
func (e *htmlSource ) OnCut (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("cut" , h , options ...)
}
func (e *htmlSource ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSource ) OnDrag (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("drag" , h , options ...)
}
func (e *htmlSource ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSource ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSource ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSource ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSource ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSource ) OnDrop (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("drop" , h , options ...)
}
func (e *htmlSource ) OnFocus (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("focus" , h , options ...)
}
func (e *htmlSource ) OnInput (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("input" , h , options ...)
}
func (e *htmlSource ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSource ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSource ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSource ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSource ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSource ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSource ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSource ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSource ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSource ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSource ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSource ) OnPaste (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("paste" , h , options ...)
}
func (e *htmlSource ) OnReset (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("reset" , h , options ...)
}
func (e *htmlSource ) OnScroll (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSource ) OnSearch (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("search" , h , options ...)
}
func (e *htmlSource ) OnSelect (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("select" , h , options ...)
}
func (e *htmlSource ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("submit" , h , options ...)
}
func (e *htmlSource ) OnWheel (h EventHandler , options ...EventOption ) HTMLSource {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSource ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSource ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSource ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSource ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSource ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSource ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSpan interface {
HTML
Body (elems ...UI ) HTMLSpan
Text (v any ) HTMLSpan
Textf (format string , v ...any ) HTMLSpan
AccessKey (format string , v ...any ) HTMLSpan
Aria (k string , v any ) HTMLSpan
Attr (n string , v any ) HTMLSpan
Class (v ...string ) HTMLSpan
ContentEditable (v bool ) HTMLSpan
DataSet (k string , v any ) HTMLSpan
DataSets (ds map [string ]any ) HTMLSpan
Dir (format string , v ...any ) HTMLSpan
Draggable (v bool ) HTMLSpan
Hidden (v bool ) HTMLSpan
ID (format string , v ...any ) HTMLSpan
Lang (format string , v ...any ) HTMLSpan
Role (format string , v ...any ) HTMLSpan
Spellcheck (v bool ) HTMLSpan
Style (k, format string , v ...any ) HTMLSpan
Styles (s map [string ]string ) HTMLSpan
TabIndex (v int ) HTMLSpan
Title (format string , v ...any ) HTMLSpan
On (event string , h EventHandler , options ...EventOption ) HTMLSpan
OnBlur (h EventHandler , options ...EventOption ) HTMLSpan
OnChange (h EventHandler , options ...EventOption ) HTMLSpan
OnClick (h EventHandler , options ...EventOption ) HTMLSpan
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSpan
OnCopy (h EventHandler , options ...EventOption ) HTMLSpan
OnCut (h EventHandler , options ...EventOption ) HTMLSpan
OnDblClick (h EventHandler , options ...EventOption ) HTMLSpan
OnDrag (h EventHandler , options ...EventOption ) HTMLSpan
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSpan
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSpan
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSpan
OnDragOver (h EventHandler , options ...EventOption ) HTMLSpan
OnDragStart (h EventHandler , options ...EventOption ) HTMLSpan
OnDrop (h EventHandler , options ...EventOption ) HTMLSpan
OnFocus (h EventHandler , options ...EventOption ) HTMLSpan
OnInput (h EventHandler , options ...EventOption ) HTMLSpan
OnInvalid (h EventHandler , options ...EventOption ) HTMLSpan
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSpan
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSpan
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSpan
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSpan
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSpan
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSpan
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSpan
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSpan
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSpan
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSpan
OnPaste (h EventHandler , options ...EventOption ) HTMLSpan
OnReset (h EventHandler , options ...EventOption ) HTMLSpan
OnScroll (h EventHandler , options ...EventOption ) HTMLSpan
OnSearch (h EventHandler , options ...EventOption ) HTMLSpan
OnSelect (h EventHandler , options ...EventOption ) HTMLSpan
OnSubmit (h EventHandler , options ...EventOption ) HTMLSpan
OnWheel (h EventHandler , options ...EventOption ) HTMLSpan
}
func Span () HTMLSpan {
e := &htmlSpan {
htmlElement : htmlElement {
tag : "span" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSpan struct {
htmlElement
}
func (e *htmlSpan ) Body (v ...UI ) HTMLSpan {
return e .setBody (FilterUIElems (v ...)).(*htmlSpan )
}
func (e *htmlSpan ) Text (v any ) HTMLSpan {
return e .Body (Text (v ))
}
func (e *htmlSpan ) Textf (format string , v ...any ) HTMLSpan {
return e .Body (Textf (format , v ...))
}
func (e *htmlSpan ) AccessKey (format string , v ...any ) HTMLSpan {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSpan ) Aria (k string , v any ) HTMLSpan {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSpan ) Attr (n string , v any ) HTMLSpan {
e .setAttr (n , v )
return e
}
func (e *htmlSpan ) Class (v ...string ) HTMLSpan {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSpan ) ContentEditable (v bool ) HTMLSpan {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSpan ) DataSet (k string , v any ) HTMLSpan {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSpan ) DataSets (ds map [string ]any ) HTMLSpan {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSpan ) Dir (format string , v ...any ) HTMLSpan {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSpan ) Draggable (v bool ) HTMLSpan {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSpan ) Hidden (v bool ) HTMLSpan {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSpan ) ID (format string , v ...any ) HTMLSpan {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSpan ) Lang (format string , v ...any ) HTMLSpan {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSpan ) Role (format string , v ...any ) HTMLSpan {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSpan ) Spellcheck (v bool ) HTMLSpan {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSpan ) Style (k , format string , v ...any ) HTMLSpan {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSpan ) Styles (s map [string ]string ) HTMLSpan {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSpan ) TabIndex (v int ) HTMLSpan {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSpan ) Title (format string , v ...any ) HTMLSpan {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSpan ) On (event string , h EventHandler , options ...EventOption ) HTMLSpan {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSpan ) OnBlur (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("blur" , h , options ...)
}
func (e *htmlSpan ) OnChange (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("change" , h , options ...)
}
func (e *htmlSpan ) OnClick (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("click" , h , options ...)
}
func (e *htmlSpan ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSpan ) OnCopy (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("copy" , h , options ...)
}
func (e *htmlSpan ) OnCut (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("cut" , h , options ...)
}
func (e *htmlSpan ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSpan ) OnDrag (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("drag" , h , options ...)
}
func (e *htmlSpan ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSpan ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSpan ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSpan ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSpan ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSpan ) OnDrop (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("drop" , h , options ...)
}
func (e *htmlSpan ) OnFocus (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("focus" , h , options ...)
}
func (e *htmlSpan ) OnInput (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("input" , h , options ...)
}
func (e *htmlSpan ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSpan ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSpan ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSpan ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSpan ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSpan ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSpan ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSpan ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSpan ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSpan ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSpan ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSpan ) OnPaste (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("paste" , h , options ...)
}
func (e *htmlSpan ) OnReset (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("reset" , h , options ...)
}
func (e *htmlSpan ) OnScroll (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSpan ) OnSearch (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("search" , h , options ...)
}
func (e *htmlSpan ) OnSelect (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("select" , h , options ...)
}
func (e *htmlSpan ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("submit" , h , options ...)
}
func (e *htmlSpan ) OnWheel (h EventHandler , options ...EventOption ) HTMLSpan {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSpan ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSpan ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSpan ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSpan ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSpan ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSpan ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLStrong interface {
HTML
Body (elems ...UI ) HTMLStrong
Text (v any ) HTMLStrong
Textf (format string , v ...any ) HTMLStrong
AccessKey (format string , v ...any ) HTMLStrong
Aria (k string , v any ) HTMLStrong
Attr (n string , v any ) HTMLStrong
Class (v ...string ) HTMLStrong
ContentEditable (v bool ) HTMLStrong
DataSet (k string , v any ) HTMLStrong
DataSets (ds map [string ]any ) HTMLStrong
Dir (format string , v ...any ) HTMLStrong
Draggable (v bool ) HTMLStrong
Hidden (v bool ) HTMLStrong
ID (format string , v ...any ) HTMLStrong
Lang (format string , v ...any ) HTMLStrong
Role (format string , v ...any ) HTMLStrong
Spellcheck (v bool ) HTMLStrong
Style (k, format string , v ...any ) HTMLStrong
Styles (s map [string ]string ) HTMLStrong
TabIndex (v int ) HTMLStrong
Title (format string , v ...any ) HTMLStrong
On (event string , h EventHandler , options ...EventOption ) HTMLStrong
OnBlur (h EventHandler , options ...EventOption ) HTMLStrong
OnChange (h EventHandler , options ...EventOption ) HTMLStrong
OnClick (h EventHandler , options ...EventOption ) HTMLStrong
OnContextMenu (h EventHandler , options ...EventOption ) HTMLStrong
OnCopy (h EventHandler , options ...EventOption ) HTMLStrong
OnCut (h EventHandler , options ...EventOption ) HTMLStrong
OnDblClick (h EventHandler , options ...EventOption ) HTMLStrong
OnDrag (h EventHandler , options ...EventOption ) HTMLStrong
OnDragEnd (h EventHandler , options ...EventOption ) HTMLStrong
OnDragEnter (h EventHandler , options ...EventOption ) HTMLStrong
OnDragLeave (h EventHandler , options ...EventOption ) HTMLStrong
OnDragOver (h EventHandler , options ...EventOption ) HTMLStrong
OnDragStart (h EventHandler , options ...EventOption ) HTMLStrong
OnDrop (h EventHandler , options ...EventOption ) HTMLStrong
OnFocus (h EventHandler , options ...EventOption ) HTMLStrong
OnInput (h EventHandler , options ...EventOption ) HTMLStrong
OnInvalid (h EventHandler , options ...EventOption ) HTMLStrong
OnKeyDown (h EventHandler , options ...EventOption ) HTMLStrong
OnKeyPress (h EventHandler , options ...EventOption ) HTMLStrong
OnKeyUp (h EventHandler , options ...EventOption ) HTMLStrong
OnMouseDown (h EventHandler , options ...EventOption ) HTMLStrong
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLStrong
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLStrong
OnMouseMove (h EventHandler , options ...EventOption ) HTMLStrong
OnMouseOut (h EventHandler , options ...EventOption ) HTMLStrong
OnMouseOver (h EventHandler , options ...EventOption ) HTMLStrong
OnMouseUp (h EventHandler , options ...EventOption ) HTMLStrong
OnPaste (h EventHandler , options ...EventOption ) HTMLStrong
OnReset (h EventHandler , options ...EventOption ) HTMLStrong
OnScroll (h EventHandler , options ...EventOption ) HTMLStrong
OnSearch (h EventHandler , options ...EventOption ) HTMLStrong
OnSelect (h EventHandler , options ...EventOption ) HTMLStrong
OnSubmit (h EventHandler , options ...EventOption ) HTMLStrong
OnWheel (h EventHandler , options ...EventOption ) HTMLStrong
}
func Strong () HTMLStrong {
e := &htmlStrong {
htmlElement : htmlElement {
tag : "strong" ,
isSelfClosing : false ,
},
}
return e
}
type htmlStrong struct {
htmlElement
}
func (e *htmlStrong ) Body (v ...UI ) HTMLStrong {
return e .setBody (FilterUIElems (v ...)).(*htmlStrong )
}
func (e *htmlStrong ) Text (v any ) HTMLStrong {
return e .Body (Text (v ))
}
func (e *htmlStrong ) Textf (format string , v ...any ) HTMLStrong {
return e .Body (Textf (format , v ...))
}
func (e *htmlStrong ) AccessKey (format string , v ...any ) HTMLStrong {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlStrong ) Aria (k string , v any ) HTMLStrong {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlStrong ) Attr (n string , v any ) HTMLStrong {
e .setAttr (n , v )
return e
}
func (e *htmlStrong ) Class (v ...string ) HTMLStrong {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlStrong ) ContentEditable (v bool ) HTMLStrong {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlStrong ) DataSet (k string , v any ) HTMLStrong {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlStrong ) DataSets (ds map [string ]any ) HTMLStrong {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlStrong ) Dir (format string , v ...any ) HTMLStrong {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlStrong ) Draggable (v bool ) HTMLStrong {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlStrong ) Hidden (v bool ) HTMLStrong {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlStrong ) ID (format string , v ...any ) HTMLStrong {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlStrong ) Lang (format string , v ...any ) HTMLStrong {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlStrong ) Role (format string , v ...any ) HTMLStrong {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlStrong ) Spellcheck (v bool ) HTMLStrong {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlStrong ) Style (k , format string , v ...any ) HTMLStrong {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlStrong ) Styles (s map [string ]string ) HTMLStrong {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlStrong ) TabIndex (v int ) HTMLStrong {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlStrong ) Title (format string , v ...any ) HTMLStrong {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlStrong ) On (event string , h EventHandler , options ...EventOption ) HTMLStrong {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlStrong ) OnBlur (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("blur" , h , options ...)
}
func (e *htmlStrong ) OnChange (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("change" , h , options ...)
}
func (e *htmlStrong ) OnClick (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("click" , h , options ...)
}
func (e *htmlStrong ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlStrong ) OnCopy (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("copy" , h , options ...)
}
func (e *htmlStrong ) OnCut (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("cut" , h , options ...)
}
func (e *htmlStrong ) OnDblClick (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlStrong ) OnDrag (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("drag" , h , options ...)
}
func (e *htmlStrong ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("dragend" , h , options ...)
}
func (e *htmlStrong ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlStrong ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlStrong ) OnDragOver (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("dragover" , h , options ...)
}
func (e *htmlStrong ) OnDragStart (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlStrong ) OnDrop (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("drop" , h , options ...)
}
func (e *htmlStrong ) OnFocus (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("focus" , h , options ...)
}
func (e *htmlStrong ) OnInput (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("input" , h , options ...)
}
func (e *htmlStrong ) OnInvalid (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("invalid" , h , options ...)
}
func (e *htmlStrong ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("keydown" , h , options ...)
}
func (e *htmlStrong ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("keypress" , h , options ...)
}
func (e *htmlStrong ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("keyup" , h , options ...)
}
func (e *htmlStrong ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlStrong ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlStrong ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlStrong ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlStrong ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlStrong ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlStrong ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlStrong ) OnPaste (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("paste" , h , options ...)
}
func (e *htmlStrong ) OnReset (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("reset" , h , options ...)
}
func (e *htmlStrong ) OnScroll (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("scroll" , h , options ...)
}
func (e *htmlStrong ) OnSearch (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("search" , h , options ...)
}
func (e *htmlStrong ) OnSelect (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("select" , h , options ...)
}
func (e *htmlStrong ) OnSubmit (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("submit" , h , options ...)
}
func (e *htmlStrong ) OnWheel (h EventHandler , options ...EventOption ) HTMLStrong {
return e .On ("wheel" , h , options ...)
}
func (e *htmlStrong ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlStrong ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlStrong ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlStrong ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlStrong ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlStrong ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLStyle interface {
HTML
Body (elems ...UI ) HTMLStyle
Text (v any ) HTMLStyle
Textf (format string , v ...any ) HTMLStyle
AccessKey (format string , v ...any ) HTMLStyle
Aria (k string , v any ) HTMLStyle
Attr (n string , v any ) HTMLStyle
Class (v ...string ) HTMLStyle
ContentEditable (v bool ) HTMLStyle
DataSet (k string , v any ) HTMLStyle
DataSets (ds map [string ]any ) HTMLStyle
Dir (format string , v ...any ) HTMLStyle
Draggable (v bool ) HTMLStyle
Hidden (v bool ) HTMLStyle
ID (format string , v ...any ) HTMLStyle
Lang (format string , v ...any ) HTMLStyle
Media (format string , v ...any ) HTMLStyle
Role (format string , v ...any ) HTMLStyle
Spellcheck (v bool ) HTMLStyle
Style (k, format string , v ...any ) HTMLStyle
Styles (s map [string ]string ) HTMLStyle
TabIndex (v int ) HTMLStyle
Title (format string , v ...any ) HTMLStyle
Type (format string , v ...any ) HTMLStyle
On (event string , h EventHandler , options ...EventOption ) HTMLStyle
OnBlur (h EventHandler , options ...EventOption ) HTMLStyle
OnChange (h EventHandler , options ...EventOption ) HTMLStyle
OnClick (h EventHandler , options ...EventOption ) HTMLStyle
OnContextMenu (h EventHandler , options ...EventOption ) HTMLStyle
OnCopy (h EventHandler , options ...EventOption ) HTMLStyle
OnCut (h EventHandler , options ...EventOption ) HTMLStyle
OnDblClick (h EventHandler , options ...EventOption ) HTMLStyle
OnDrag (h EventHandler , options ...EventOption ) HTMLStyle
OnDragEnd (h EventHandler , options ...EventOption ) HTMLStyle
OnDragEnter (h EventHandler , options ...EventOption ) HTMLStyle
OnDragLeave (h EventHandler , options ...EventOption ) HTMLStyle
OnDragOver (h EventHandler , options ...EventOption ) HTMLStyle
OnDragStart (h EventHandler , options ...EventOption ) HTMLStyle
OnDrop (h EventHandler , options ...EventOption ) HTMLStyle
OnFocus (h EventHandler , options ...EventOption ) HTMLStyle
OnInput (h EventHandler , options ...EventOption ) HTMLStyle
OnInvalid (h EventHandler , options ...EventOption ) HTMLStyle
OnKeyDown (h EventHandler , options ...EventOption ) HTMLStyle
OnKeyPress (h EventHandler , options ...EventOption ) HTMLStyle
OnKeyUp (h EventHandler , options ...EventOption ) HTMLStyle
OnLoad (h EventHandler , options ...EventOption ) HTMLStyle
OnMouseDown (h EventHandler , options ...EventOption ) HTMLStyle
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLStyle
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLStyle
OnMouseMove (h EventHandler , options ...EventOption ) HTMLStyle
OnMouseOut (h EventHandler , options ...EventOption ) HTMLStyle
OnMouseOver (h EventHandler , options ...EventOption ) HTMLStyle
OnMouseUp (h EventHandler , options ...EventOption ) HTMLStyle
OnPaste (h EventHandler , options ...EventOption ) HTMLStyle
OnReset (h EventHandler , options ...EventOption ) HTMLStyle
OnScroll (h EventHandler , options ...EventOption ) HTMLStyle
OnSearch (h EventHandler , options ...EventOption ) HTMLStyle
OnSelect (h EventHandler , options ...EventOption ) HTMLStyle
OnSubmit (h EventHandler , options ...EventOption ) HTMLStyle
OnWheel (h EventHandler , options ...EventOption ) HTMLStyle
}
func Style () HTMLStyle {
e := &htmlStyle {
htmlElement : htmlElement {
tag : "style" ,
isSelfClosing : false ,
},
}
return e
}
type htmlStyle struct {
htmlElement
}
func (e *htmlStyle ) Body (v ...UI ) HTMLStyle {
return e .setBody (FilterUIElems (v ...)).(*htmlStyle )
}
func (e *htmlStyle ) Text (v any ) HTMLStyle {
return e .Body (Text (v ))
}
func (e *htmlStyle ) Textf (format string , v ...any ) HTMLStyle {
return e .Body (Textf (format , v ...))
}
func (e *htmlStyle ) AccessKey (format string , v ...any ) HTMLStyle {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Aria (k string , v any ) HTMLStyle {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlStyle ) Attr (n string , v any ) HTMLStyle {
e .setAttr (n , v )
return e
}
func (e *htmlStyle ) Class (v ...string ) HTMLStyle {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlStyle ) ContentEditable (v bool ) HTMLStyle {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlStyle ) DataSet (k string , v any ) HTMLStyle {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlStyle ) DataSets (ds map [string ]any ) HTMLStyle {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlStyle ) Dir (format string , v ...any ) HTMLStyle {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Draggable (v bool ) HTMLStyle {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlStyle ) Hidden (v bool ) HTMLStyle {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlStyle ) ID (format string , v ...any ) HTMLStyle {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Lang (format string , v ...any ) HTMLStyle {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Media (format string , v ...any ) HTMLStyle {
e .setAttr ("media" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Role (format string , v ...any ) HTMLStyle {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Spellcheck (v bool ) HTMLStyle {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlStyle ) Style (k , format string , v ...any ) HTMLStyle {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Styles (s map [string ]string ) HTMLStyle {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlStyle ) TabIndex (v int ) HTMLStyle {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlStyle ) Title (format string , v ...any ) HTMLStyle {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) Type (format string , v ...any ) HTMLStyle {
e .setAttr ("type" , FormatString (format , v ...))
return e
}
func (e *htmlStyle ) On (event string , h EventHandler , options ...EventOption ) HTMLStyle {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlStyle ) OnBlur (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("blur" , h , options ...)
}
func (e *htmlStyle ) OnChange (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("change" , h , options ...)
}
func (e *htmlStyle ) OnClick (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("click" , h , options ...)
}
func (e *htmlStyle ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlStyle ) OnCopy (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("copy" , h , options ...)
}
func (e *htmlStyle ) OnCut (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("cut" , h , options ...)
}
func (e *htmlStyle ) OnDblClick (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlStyle ) OnDrag (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("drag" , h , options ...)
}
func (e *htmlStyle ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("dragend" , h , options ...)
}
func (e *htmlStyle ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlStyle ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlStyle ) OnDragOver (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("dragover" , h , options ...)
}
func (e *htmlStyle ) OnDragStart (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlStyle ) OnDrop (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("drop" , h , options ...)
}
func (e *htmlStyle ) OnFocus (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("focus" , h , options ...)
}
func (e *htmlStyle ) OnInput (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("input" , h , options ...)
}
func (e *htmlStyle ) OnInvalid (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("invalid" , h , options ...)
}
func (e *htmlStyle ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("keydown" , h , options ...)
}
func (e *htmlStyle ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("keypress" , h , options ...)
}
func (e *htmlStyle ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("keyup" , h , options ...)
}
func (e *htmlStyle ) OnLoad (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("load" , h , options ...)
}
func (e *htmlStyle ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlStyle ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlStyle ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlStyle ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlStyle ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlStyle ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlStyle ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlStyle ) OnPaste (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("paste" , h , options ...)
}
func (e *htmlStyle ) OnReset (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("reset" , h , options ...)
}
func (e *htmlStyle ) OnScroll (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("scroll" , h , options ...)
}
func (e *htmlStyle ) OnSearch (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("search" , h , options ...)
}
func (e *htmlStyle ) OnSelect (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("select" , h , options ...)
}
func (e *htmlStyle ) OnSubmit (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("submit" , h , options ...)
}
func (e *htmlStyle ) OnWheel (h EventHandler , options ...EventOption ) HTMLStyle {
return e .On ("wheel" , h , options ...)
}
func (e *htmlStyle ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlStyle ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlStyle ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlStyle ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlStyle ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlStyle ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSub interface {
HTML
Body (elems ...UI ) HTMLSub
Text (v any ) HTMLSub
Textf (format string , v ...any ) HTMLSub
AccessKey (format string , v ...any ) HTMLSub
Aria (k string , v any ) HTMLSub
Attr (n string , v any ) HTMLSub
Class (v ...string ) HTMLSub
ContentEditable (v bool ) HTMLSub
DataSet (k string , v any ) HTMLSub
DataSets (ds map [string ]any ) HTMLSub
Dir (format string , v ...any ) HTMLSub
Draggable (v bool ) HTMLSub
Hidden (v bool ) HTMLSub
ID (format string , v ...any ) HTMLSub
Lang (format string , v ...any ) HTMLSub
Role (format string , v ...any ) HTMLSub
Spellcheck (v bool ) HTMLSub
Style (k, format string , v ...any ) HTMLSub
Styles (s map [string ]string ) HTMLSub
TabIndex (v int ) HTMLSub
Title (format string , v ...any ) HTMLSub
On (event string , h EventHandler , options ...EventOption ) HTMLSub
OnBlur (h EventHandler , options ...EventOption ) HTMLSub
OnChange (h EventHandler , options ...EventOption ) HTMLSub
OnClick (h EventHandler , options ...EventOption ) HTMLSub
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSub
OnCopy (h EventHandler , options ...EventOption ) HTMLSub
OnCut (h EventHandler , options ...EventOption ) HTMLSub
OnDblClick (h EventHandler , options ...EventOption ) HTMLSub
OnDrag (h EventHandler , options ...EventOption ) HTMLSub
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSub
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSub
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSub
OnDragOver (h EventHandler , options ...EventOption ) HTMLSub
OnDragStart (h EventHandler , options ...EventOption ) HTMLSub
OnDrop (h EventHandler , options ...EventOption ) HTMLSub
OnFocus (h EventHandler , options ...EventOption ) HTMLSub
OnInput (h EventHandler , options ...EventOption ) HTMLSub
OnInvalid (h EventHandler , options ...EventOption ) HTMLSub
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSub
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSub
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSub
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSub
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSub
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSub
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSub
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSub
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSub
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSub
OnPaste (h EventHandler , options ...EventOption ) HTMLSub
OnReset (h EventHandler , options ...EventOption ) HTMLSub
OnScroll (h EventHandler , options ...EventOption ) HTMLSub
OnSearch (h EventHandler , options ...EventOption ) HTMLSub
OnSelect (h EventHandler , options ...EventOption ) HTMLSub
OnSubmit (h EventHandler , options ...EventOption ) HTMLSub
OnWheel (h EventHandler , options ...EventOption ) HTMLSub
}
func Sub () HTMLSub {
e := &htmlSub {
htmlElement : htmlElement {
tag : "sub" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSub struct {
htmlElement
}
func (e *htmlSub ) Body (v ...UI ) HTMLSub {
return e .setBody (FilterUIElems (v ...)).(*htmlSub )
}
func (e *htmlSub ) Text (v any ) HTMLSub {
return e .Body (Text (v ))
}
func (e *htmlSub ) Textf (format string , v ...any ) HTMLSub {
return e .Body (Textf (format , v ...))
}
func (e *htmlSub ) AccessKey (format string , v ...any ) HTMLSub {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSub ) Aria (k string , v any ) HTMLSub {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSub ) Attr (n string , v any ) HTMLSub {
e .setAttr (n , v )
return e
}
func (e *htmlSub ) Class (v ...string ) HTMLSub {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSub ) ContentEditable (v bool ) HTMLSub {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSub ) DataSet (k string , v any ) HTMLSub {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSub ) DataSets (ds map [string ]any ) HTMLSub {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSub ) Dir (format string , v ...any ) HTMLSub {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSub ) Draggable (v bool ) HTMLSub {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSub ) Hidden (v bool ) HTMLSub {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSub ) ID (format string , v ...any ) HTMLSub {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSub ) Lang (format string , v ...any ) HTMLSub {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSub ) Role (format string , v ...any ) HTMLSub {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSub ) Spellcheck (v bool ) HTMLSub {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSub ) Style (k , format string , v ...any ) HTMLSub {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSub ) Styles (s map [string ]string ) HTMLSub {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSub ) TabIndex (v int ) HTMLSub {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSub ) Title (format string , v ...any ) HTMLSub {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSub ) On (event string , h EventHandler , options ...EventOption ) HTMLSub {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSub ) OnBlur (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("blur" , h , options ...)
}
func (e *htmlSub ) OnChange (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("change" , h , options ...)
}
func (e *htmlSub ) OnClick (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("click" , h , options ...)
}
func (e *htmlSub ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSub ) OnCopy (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("copy" , h , options ...)
}
func (e *htmlSub ) OnCut (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("cut" , h , options ...)
}
func (e *htmlSub ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSub ) OnDrag (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("drag" , h , options ...)
}
func (e *htmlSub ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSub ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSub ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSub ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSub ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSub ) OnDrop (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("drop" , h , options ...)
}
func (e *htmlSub ) OnFocus (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("focus" , h , options ...)
}
func (e *htmlSub ) OnInput (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("input" , h , options ...)
}
func (e *htmlSub ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSub ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSub ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSub ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSub ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSub ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSub ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSub ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSub ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSub ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSub ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSub ) OnPaste (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("paste" , h , options ...)
}
func (e *htmlSub ) OnReset (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("reset" , h , options ...)
}
func (e *htmlSub ) OnScroll (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSub ) OnSearch (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("search" , h , options ...)
}
func (e *htmlSub ) OnSelect (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("select" , h , options ...)
}
func (e *htmlSub ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("submit" , h , options ...)
}
func (e *htmlSub ) OnWheel (h EventHandler , options ...EventOption ) HTMLSub {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSub ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSub ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSub ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSub ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSub ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSub ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSummary interface {
HTML
Body (elems ...UI ) HTMLSummary
Text (v any ) HTMLSummary
Textf (format string , v ...any ) HTMLSummary
AccessKey (format string , v ...any ) HTMLSummary
Aria (k string , v any ) HTMLSummary
Attr (n string , v any ) HTMLSummary
Class (v ...string ) HTMLSummary
ContentEditable (v bool ) HTMLSummary
DataSet (k string , v any ) HTMLSummary
DataSets (ds map [string ]any ) HTMLSummary
Dir (format string , v ...any ) HTMLSummary
Draggable (v bool ) HTMLSummary
Hidden (v bool ) HTMLSummary
ID (format string , v ...any ) HTMLSummary
Lang (format string , v ...any ) HTMLSummary
Role (format string , v ...any ) HTMLSummary
Spellcheck (v bool ) HTMLSummary
Style (k, format string , v ...any ) HTMLSummary
Styles (s map [string ]string ) HTMLSummary
TabIndex (v int ) HTMLSummary
Title (format string , v ...any ) HTMLSummary
On (event string , h EventHandler , options ...EventOption ) HTMLSummary
OnBlur (h EventHandler , options ...EventOption ) HTMLSummary
OnChange (h EventHandler , options ...EventOption ) HTMLSummary
OnClick (h EventHandler , options ...EventOption ) HTMLSummary
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSummary
OnCopy (h EventHandler , options ...EventOption ) HTMLSummary
OnCut (h EventHandler , options ...EventOption ) HTMLSummary
OnDblClick (h EventHandler , options ...EventOption ) HTMLSummary
OnDrag (h EventHandler , options ...EventOption ) HTMLSummary
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSummary
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSummary
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSummary
OnDragOver (h EventHandler , options ...EventOption ) HTMLSummary
OnDragStart (h EventHandler , options ...EventOption ) HTMLSummary
OnDrop (h EventHandler , options ...EventOption ) HTMLSummary
OnFocus (h EventHandler , options ...EventOption ) HTMLSummary
OnInput (h EventHandler , options ...EventOption ) HTMLSummary
OnInvalid (h EventHandler , options ...EventOption ) HTMLSummary
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSummary
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSummary
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSummary
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSummary
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSummary
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSummary
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSummary
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSummary
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSummary
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSummary
OnPaste (h EventHandler , options ...EventOption ) HTMLSummary
OnReset (h EventHandler , options ...EventOption ) HTMLSummary
OnScroll (h EventHandler , options ...EventOption ) HTMLSummary
OnSearch (h EventHandler , options ...EventOption ) HTMLSummary
OnSelect (h EventHandler , options ...EventOption ) HTMLSummary
OnSubmit (h EventHandler , options ...EventOption ) HTMLSummary
OnWheel (h EventHandler , options ...EventOption ) HTMLSummary
}
func Summary () HTMLSummary {
e := &htmlSummary {
htmlElement : htmlElement {
tag : "summary" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSummary struct {
htmlElement
}
func (e *htmlSummary ) Body (v ...UI ) HTMLSummary {
return e .setBody (FilterUIElems (v ...)).(*htmlSummary )
}
func (e *htmlSummary ) Text (v any ) HTMLSummary {
return e .Body (Text (v ))
}
func (e *htmlSummary ) Textf (format string , v ...any ) HTMLSummary {
return e .Body (Textf (format , v ...))
}
func (e *htmlSummary ) AccessKey (format string , v ...any ) HTMLSummary {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSummary ) Aria (k string , v any ) HTMLSummary {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSummary ) Attr (n string , v any ) HTMLSummary {
e .setAttr (n , v )
return e
}
func (e *htmlSummary ) Class (v ...string ) HTMLSummary {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSummary ) ContentEditable (v bool ) HTMLSummary {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSummary ) DataSet (k string , v any ) HTMLSummary {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSummary ) DataSets (ds map [string ]any ) HTMLSummary {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSummary ) Dir (format string , v ...any ) HTMLSummary {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSummary ) Draggable (v bool ) HTMLSummary {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSummary ) Hidden (v bool ) HTMLSummary {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSummary ) ID (format string , v ...any ) HTMLSummary {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSummary ) Lang (format string , v ...any ) HTMLSummary {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSummary ) Role (format string , v ...any ) HTMLSummary {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSummary ) Spellcheck (v bool ) HTMLSummary {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSummary ) Style (k , format string , v ...any ) HTMLSummary {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSummary ) Styles (s map [string ]string ) HTMLSummary {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSummary ) TabIndex (v int ) HTMLSummary {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSummary ) Title (format string , v ...any ) HTMLSummary {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSummary ) On (event string , h EventHandler , options ...EventOption ) HTMLSummary {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSummary ) OnBlur (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("blur" , h , options ...)
}
func (e *htmlSummary ) OnChange (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("change" , h , options ...)
}
func (e *htmlSummary ) OnClick (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("click" , h , options ...)
}
func (e *htmlSummary ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSummary ) OnCopy (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("copy" , h , options ...)
}
func (e *htmlSummary ) OnCut (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("cut" , h , options ...)
}
func (e *htmlSummary ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSummary ) OnDrag (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("drag" , h , options ...)
}
func (e *htmlSummary ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSummary ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSummary ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSummary ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSummary ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSummary ) OnDrop (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("drop" , h , options ...)
}
func (e *htmlSummary ) OnFocus (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("focus" , h , options ...)
}
func (e *htmlSummary ) OnInput (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("input" , h , options ...)
}
func (e *htmlSummary ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSummary ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSummary ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSummary ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSummary ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSummary ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSummary ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSummary ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSummary ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSummary ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSummary ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSummary ) OnPaste (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("paste" , h , options ...)
}
func (e *htmlSummary ) OnReset (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("reset" , h , options ...)
}
func (e *htmlSummary ) OnScroll (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSummary ) OnSearch (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("search" , h , options ...)
}
func (e *htmlSummary ) OnSelect (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("select" , h , options ...)
}
func (e *htmlSummary ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("submit" , h , options ...)
}
func (e *htmlSummary ) OnWheel (h EventHandler , options ...EventOption ) HTMLSummary {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSummary ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSummary ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSummary ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSummary ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSummary ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSummary ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLSup interface {
HTML
Body (elems ...UI ) HTMLSup
Text (v any ) HTMLSup
Textf (format string , v ...any ) HTMLSup
AccessKey (format string , v ...any ) HTMLSup
Aria (k string , v any ) HTMLSup
Attr (n string , v any ) HTMLSup
Class (v ...string ) HTMLSup
ContentEditable (v bool ) HTMLSup
DataSet (k string , v any ) HTMLSup
DataSets (ds map [string ]any ) HTMLSup
Dir (format string , v ...any ) HTMLSup
Draggable (v bool ) HTMLSup
Hidden (v bool ) HTMLSup
ID (format string , v ...any ) HTMLSup
Lang (format string , v ...any ) HTMLSup
Role (format string , v ...any ) HTMLSup
Spellcheck (v bool ) HTMLSup
Style (k, format string , v ...any ) HTMLSup
Styles (s map [string ]string ) HTMLSup
TabIndex (v int ) HTMLSup
Title (format string , v ...any ) HTMLSup
On (event string , h EventHandler , options ...EventOption ) HTMLSup
OnBlur (h EventHandler , options ...EventOption ) HTMLSup
OnChange (h EventHandler , options ...EventOption ) HTMLSup
OnClick (h EventHandler , options ...EventOption ) HTMLSup
OnContextMenu (h EventHandler , options ...EventOption ) HTMLSup
OnCopy (h EventHandler , options ...EventOption ) HTMLSup
OnCut (h EventHandler , options ...EventOption ) HTMLSup
OnDblClick (h EventHandler , options ...EventOption ) HTMLSup
OnDrag (h EventHandler , options ...EventOption ) HTMLSup
OnDragEnd (h EventHandler , options ...EventOption ) HTMLSup
OnDragEnter (h EventHandler , options ...EventOption ) HTMLSup
OnDragLeave (h EventHandler , options ...EventOption ) HTMLSup
OnDragOver (h EventHandler , options ...EventOption ) HTMLSup
OnDragStart (h EventHandler , options ...EventOption ) HTMLSup
OnDrop (h EventHandler , options ...EventOption ) HTMLSup
OnFocus (h EventHandler , options ...EventOption ) HTMLSup
OnInput (h EventHandler , options ...EventOption ) HTMLSup
OnInvalid (h EventHandler , options ...EventOption ) HTMLSup
OnKeyDown (h EventHandler , options ...EventOption ) HTMLSup
OnKeyPress (h EventHandler , options ...EventOption ) HTMLSup
OnKeyUp (h EventHandler , options ...EventOption ) HTMLSup
OnMouseDown (h EventHandler , options ...EventOption ) HTMLSup
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSup
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSup
OnMouseMove (h EventHandler , options ...EventOption ) HTMLSup
OnMouseOut (h EventHandler , options ...EventOption ) HTMLSup
OnMouseOver (h EventHandler , options ...EventOption ) HTMLSup
OnMouseUp (h EventHandler , options ...EventOption ) HTMLSup
OnPaste (h EventHandler , options ...EventOption ) HTMLSup
OnReset (h EventHandler , options ...EventOption ) HTMLSup
OnScroll (h EventHandler , options ...EventOption ) HTMLSup
OnSearch (h EventHandler , options ...EventOption ) HTMLSup
OnSelect (h EventHandler , options ...EventOption ) HTMLSup
OnSubmit (h EventHandler , options ...EventOption ) HTMLSup
OnWheel (h EventHandler , options ...EventOption ) HTMLSup
}
func Sup () HTMLSup {
e := &htmlSup {
htmlElement : htmlElement {
tag : "sup" ,
isSelfClosing : false ,
},
}
return e
}
type htmlSup struct {
htmlElement
}
func (e *htmlSup ) Body (v ...UI ) HTMLSup {
return e .setBody (FilterUIElems (v ...)).(*htmlSup )
}
func (e *htmlSup ) Text (v any ) HTMLSup {
return e .Body (Text (v ))
}
func (e *htmlSup ) Textf (format string , v ...any ) HTMLSup {
return e .Body (Textf (format , v ...))
}
func (e *htmlSup ) AccessKey (format string , v ...any ) HTMLSup {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlSup ) Aria (k string , v any ) HTMLSup {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSup ) Attr (n string , v any ) HTMLSup {
e .setAttr (n , v )
return e
}
func (e *htmlSup ) Class (v ...string ) HTMLSup {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlSup ) ContentEditable (v bool ) HTMLSup {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlSup ) DataSet (k string , v any ) HTMLSup {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlSup ) DataSets (ds map [string ]any ) HTMLSup {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlSup ) Dir (format string , v ...any ) HTMLSup {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlSup ) Draggable (v bool ) HTMLSup {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlSup ) Hidden (v bool ) HTMLSup {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlSup ) ID (format string , v ...any ) HTMLSup {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlSup ) Lang (format string , v ...any ) HTMLSup {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlSup ) Role (format string , v ...any ) HTMLSup {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlSup ) Spellcheck (v bool ) HTMLSup {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlSup ) Style (k , format string , v ...any ) HTMLSup {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlSup ) Styles (s map [string ]string ) HTMLSup {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlSup ) TabIndex (v int ) HTMLSup {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlSup ) Title (format string , v ...any ) HTMLSup {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlSup ) On (event string , h EventHandler , options ...EventOption ) HTMLSup {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlSup ) OnBlur (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("blur" , h , options ...)
}
func (e *htmlSup ) OnChange (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("change" , h , options ...)
}
func (e *htmlSup ) OnClick (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("click" , h , options ...)
}
func (e *htmlSup ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlSup ) OnCopy (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("copy" , h , options ...)
}
func (e *htmlSup ) OnCut (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("cut" , h , options ...)
}
func (e *htmlSup ) OnDblClick (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlSup ) OnDrag (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("drag" , h , options ...)
}
func (e *htmlSup ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("dragend" , h , options ...)
}
func (e *htmlSup ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlSup ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlSup ) OnDragOver (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("dragover" , h , options ...)
}
func (e *htmlSup ) OnDragStart (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlSup ) OnDrop (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("drop" , h , options ...)
}
func (e *htmlSup ) OnFocus (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("focus" , h , options ...)
}
func (e *htmlSup ) OnInput (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("input" , h , options ...)
}
func (e *htmlSup ) OnInvalid (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("invalid" , h , options ...)
}
func (e *htmlSup ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("keydown" , h , options ...)
}
func (e *htmlSup ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("keypress" , h , options ...)
}
func (e *htmlSup ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("keyup" , h , options ...)
}
func (e *htmlSup ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlSup ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlSup ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlSup ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlSup ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlSup ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlSup ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlSup ) OnPaste (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("paste" , h , options ...)
}
func (e *htmlSup ) OnReset (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("reset" , h , options ...)
}
func (e *htmlSup ) OnScroll (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("scroll" , h , options ...)
}
func (e *htmlSup ) OnSearch (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("search" , h , options ...)
}
func (e *htmlSup ) OnSelect (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("select" , h , options ...)
}
func (e *htmlSup ) OnSubmit (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("submit" , h , options ...)
}
func (e *htmlSup ) OnWheel (h EventHandler , options ...EventOption ) HTMLSup {
return e .On ("wheel" , h , options ...)
}
func (e *htmlSup ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlSup ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlSup ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlSup ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlSup ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlSup ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTable interface {
HTML
Body (elems ...UI ) HTMLTable
Text (v any ) HTMLTable
Textf (format string , v ...any ) HTMLTable
AccessKey (format string , v ...any ) HTMLTable
Aria (k string , v any ) HTMLTable
Attr (n string , v any ) HTMLTable
Class (v ...string ) HTMLTable
ContentEditable (v bool ) HTMLTable
DataSet (k string , v any ) HTMLTable
DataSets (ds map [string ]any ) HTMLTable
Dir (format string , v ...any ) HTMLTable
Draggable (v bool ) HTMLTable
Hidden (v bool ) HTMLTable
ID (format string , v ...any ) HTMLTable
Lang (format string , v ...any ) HTMLTable
Role (format string , v ...any ) HTMLTable
Spellcheck (v bool ) HTMLTable
Style (k, format string , v ...any ) HTMLTable
Styles (s map [string ]string ) HTMLTable
TabIndex (v int ) HTMLTable
Title (format string , v ...any ) HTMLTable
On (event string , h EventHandler , options ...EventOption ) HTMLTable
OnBlur (h EventHandler , options ...EventOption ) HTMLTable
OnChange (h EventHandler , options ...EventOption ) HTMLTable
OnClick (h EventHandler , options ...EventOption ) HTMLTable
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTable
OnCopy (h EventHandler , options ...EventOption ) HTMLTable
OnCut (h EventHandler , options ...EventOption ) HTMLTable
OnDblClick (h EventHandler , options ...EventOption ) HTMLTable
OnDrag (h EventHandler , options ...EventOption ) HTMLTable
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTable
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTable
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTable
OnDragOver (h EventHandler , options ...EventOption ) HTMLTable
OnDragStart (h EventHandler , options ...EventOption ) HTMLTable
OnDrop (h EventHandler , options ...EventOption ) HTMLTable
OnFocus (h EventHandler , options ...EventOption ) HTMLTable
OnInput (h EventHandler , options ...EventOption ) HTMLTable
OnInvalid (h EventHandler , options ...EventOption ) HTMLTable
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTable
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTable
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTable
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTable
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTable
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTable
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTable
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTable
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTable
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTable
OnPaste (h EventHandler , options ...EventOption ) HTMLTable
OnReset (h EventHandler , options ...EventOption ) HTMLTable
OnScroll (h EventHandler , options ...EventOption ) HTMLTable
OnSearch (h EventHandler , options ...EventOption ) HTMLTable
OnSelect (h EventHandler , options ...EventOption ) HTMLTable
OnSubmit (h EventHandler , options ...EventOption ) HTMLTable
OnWheel (h EventHandler , options ...EventOption ) HTMLTable
}
func Table () HTMLTable {
e := &htmlTable {
htmlElement : htmlElement {
tag : "table" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTable struct {
htmlElement
}
func (e *htmlTable ) Body (v ...UI ) HTMLTable {
return e .setBody (FilterUIElems (v ...)).(*htmlTable )
}
func (e *htmlTable ) Text (v any ) HTMLTable {
return e .Body (Text (v ))
}
func (e *htmlTable ) Textf (format string , v ...any ) HTMLTable {
return e .Body (Textf (format , v ...))
}
func (e *htmlTable ) AccessKey (format string , v ...any ) HTMLTable {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTable ) Aria (k string , v any ) HTMLTable {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTable ) Attr (n string , v any ) HTMLTable {
e .setAttr (n , v )
return e
}
func (e *htmlTable ) Class (v ...string ) HTMLTable {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTable ) ContentEditable (v bool ) HTMLTable {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTable ) DataSet (k string , v any ) HTMLTable {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTable ) DataSets (ds map [string ]any ) HTMLTable {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTable ) Dir (format string , v ...any ) HTMLTable {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTable ) Draggable (v bool ) HTMLTable {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTable ) Hidden (v bool ) HTMLTable {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTable ) ID (format string , v ...any ) HTMLTable {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTable ) Lang (format string , v ...any ) HTMLTable {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTable ) Role (format string , v ...any ) HTMLTable {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTable ) Spellcheck (v bool ) HTMLTable {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTable ) Style (k , format string , v ...any ) HTMLTable {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTable ) Styles (s map [string ]string ) HTMLTable {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTable ) TabIndex (v int ) HTMLTable {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTable ) Title (format string , v ...any ) HTMLTable {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTable ) On (event string , h EventHandler , options ...EventOption ) HTMLTable {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTable ) OnBlur (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("blur" , h , options ...)
}
func (e *htmlTable ) OnChange (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("change" , h , options ...)
}
func (e *htmlTable ) OnClick (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("click" , h , options ...)
}
func (e *htmlTable ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTable ) OnCopy (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("copy" , h , options ...)
}
func (e *htmlTable ) OnCut (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("cut" , h , options ...)
}
func (e *htmlTable ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTable ) OnDrag (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("drag" , h , options ...)
}
func (e *htmlTable ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTable ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTable ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTable ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTable ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTable ) OnDrop (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("drop" , h , options ...)
}
func (e *htmlTable ) OnFocus (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("focus" , h , options ...)
}
func (e *htmlTable ) OnInput (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("input" , h , options ...)
}
func (e *htmlTable ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTable ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTable ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTable ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTable ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTable ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTable ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTable ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTable ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTable ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTable ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTable ) OnPaste (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("paste" , h , options ...)
}
func (e *htmlTable ) OnReset (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("reset" , h , options ...)
}
func (e *htmlTable ) OnScroll (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTable ) OnSearch (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("search" , h , options ...)
}
func (e *htmlTable ) OnSelect (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("select" , h , options ...)
}
func (e *htmlTable ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("submit" , h , options ...)
}
func (e *htmlTable ) OnWheel (h EventHandler , options ...EventOption ) HTMLTable {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTable ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTable ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTable ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTable ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTable ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTable ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTBody interface {
HTML
Body (elems ...UI ) HTMLTBody
Text (v any ) HTMLTBody
Textf (format string , v ...any ) HTMLTBody
AccessKey (format string , v ...any ) HTMLTBody
Aria (k string , v any ) HTMLTBody
Attr (n string , v any ) HTMLTBody
Class (v ...string ) HTMLTBody
ContentEditable (v bool ) HTMLTBody
DataSet (k string , v any ) HTMLTBody
DataSets (ds map [string ]any ) HTMLTBody
Dir (format string , v ...any ) HTMLTBody
Draggable (v bool ) HTMLTBody
Hidden (v bool ) HTMLTBody
ID (format string , v ...any ) HTMLTBody
Lang (format string , v ...any ) HTMLTBody
Role (format string , v ...any ) HTMLTBody
Spellcheck (v bool ) HTMLTBody
Style (k, format string , v ...any ) HTMLTBody
Styles (s map [string ]string ) HTMLTBody
TabIndex (v int ) HTMLTBody
Title (format string , v ...any ) HTMLTBody
On (event string , h EventHandler , options ...EventOption ) HTMLTBody
OnBlur (h EventHandler , options ...EventOption ) HTMLTBody
OnChange (h EventHandler , options ...EventOption ) HTMLTBody
OnClick (h EventHandler , options ...EventOption ) HTMLTBody
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTBody
OnCopy (h EventHandler , options ...EventOption ) HTMLTBody
OnCut (h EventHandler , options ...EventOption ) HTMLTBody
OnDblClick (h EventHandler , options ...EventOption ) HTMLTBody
OnDrag (h EventHandler , options ...EventOption ) HTMLTBody
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTBody
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTBody
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTBody
OnDragOver (h EventHandler , options ...EventOption ) HTMLTBody
OnDragStart (h EventHandler , options ...EventOption ) HTMLTBody
OnDrop (h EventHandler , options ...EventOption ) HTMLTBody
OnFocus (h EventHandler , options ...EventOption ) HTMLTBody
OnInput (h EventHandler , options ...EventOption ) HTMLTBody
OnInvalid (h EventHandler , options ...EventOption ) HTMLTBody
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTBody
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTBody
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTBody
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTBody
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTBody
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTBody
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTBody
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTBody
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTBody
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTBody
OnPaste (h EventHandler , options ...EventOption ) HTMLTBody
OnReset (h EventHandler , options ...EventOption ) HTMLTBody
OnScroll (h EventHandler , options ...EventOption ) HTMLTBody
OnSearch (h EventHandler , options ...EventOption ) HTMLTBody
OnSelect (h EventHandler , options ...EventOption ) HTMLTBody
OnSubmit (h EventHandler , options ...EventOption ) HTMLTBody
OnWheel (h EventHandler , options ...EventOption ) HTMLTBody
}
func TBody () HTMLTBody {
e := &htmlTBody {
htmlElement : htmlElement {
tag : "tbody" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTBody struct {
htmlElement
}
func (e *htmlTBody ) Body (v ...UI ) HTMLTBody {
return e .setBody (FilterUIElems (v ...)).(*htmlTBody )
}
func (e *htmlTBody ) Text (v any ) HTMLTBody {
return e .Body (Text (v ))
}
func (e *htmlTBody ) Textf (format string , v ...any ) HTMLTBody {
return e .Body (Textf (format , v ...))
}
func (e *htmlTBody ) AccessKey (format string , v ...any ) HTMLTBody {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTBody ) Aria (k string , v any ) HTMLTBody {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTBody ) Attr (n string , v any ) HTMLTBody {
e .setAttr (n , v )
return e
}
func (e *htmlTBody ) Class (v ...string ) HTMLTBody {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTBody ) ContentEditable (v bool ) HTMLTBody {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTBody ) DataSet (k string , v any ) HTMLTBody {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTBody ) DataSets (ds map [string ]any ) HTMLTBody {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTBody ) Dir (format string , v ...any ) HTMLTBody {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTBody ) Draggable (v bool ) HTMLTBody {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTBody ) Hidden (v bool ) HTMLTBody {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTBody ) ID (format string , v ...any ) HTMLTBody {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTBody ) Lang (format string , v ...any ) HTMLTBody {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTBody ) Role (format string , v ...any ) HTMLTBody {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTBody ) Spellcheck (v bool ) HTMLTBody {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTBody ) Style (k , format string , v ...any ) HTMLTBody {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTBody ) Styles (s map [string ]string ) HTMLTBody {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTBody ) TabIndex (v int ) HTMLTBody {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTBody ) Title (format string , v ...any ) HTMLTBody {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTBody ) On (event string , h EventHandler , options ...EventOption ) HTMLTBody {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTBody ) OnBlur (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("blur" , h , options ...)
}
func (e *htmlTBody ) OnChange (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("change" , h , options ...)
}
func (e *htmlTBody ) OnClick (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("click" , h , options ...)
}
func (e *htmlTBody ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTBody ) OnCopy (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("copy" , h , options ...)
}
func (e *htmlTBody ) OnCut (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("cut" , h , options ...)
}
func (e *htmlTBody ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTBody ) OnDrag (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("drag" , h , options ...)
}
func (e *htmlTBody ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTBody ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTBody ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTBody ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTBody ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTBody ) OnDrop (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("drop" , h , options ...)
}
func (e *htmlTBody ) OnFocus (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("focus" , h , options ...)
}
func (e *htmlTBody ) OnInput (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("input" , h , options ...)
}
func (e *htmlTBody ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTBody ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTBody ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTBody ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTBody ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTBody ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTBody ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTBody ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTBody ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTBody ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTBody ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTBody ) OnPaste (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("paste" , h , options ...)
}
func (e *htmlTBody ) OnReset (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("reset" , h , options ...)
}
func (e *htmlTBody ) OnScroll (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTBody ) OnSearch (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("search" , h , options ...)
}
func (e *htmlTBody ) OnSelect (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("select" , h , options ...)
}
func (e *htmlTBody ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("submit" , h , options ...)
}
func (e *htmlTBody ) OnWheel (h EventHandler , options ...EventOption ) HTMLTBody {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTBody ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTBody ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTBody ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTBody ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTBody ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTBody ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTd interface {
HTML
Body (elems ...UI ) HTMLTd
Text (v any ) HTMLTd
Textf (format string , v ...any ) HTMLTd
AccessKey (format string , v ...any ) HTMLTd
Aria (k string , v any ) HTMLTd
Attr (n string , v any ) HTMLTd
Class (v ...string ) HTMLTd
ColSpan (v int ) HTMLTd
ContentEditable (v bool ) HTMLTd
DataSet (k string , v any ) HTMLTd
DataSets (ds map [string ]any ) HTMLTd
Dir (format string , v ...any ) HTMLTd
Draggable (v bool ) HTMLTd
Headers (format string , v ...any ) HTMLTd
Hidden (v bool ) HTMLTd
ID (format string , v ...any ) HTMLTd
Lang (format string , v ...any ) HTMLTd
Role (format string , v ...any ) HTMLTd
Rowspan (v int ) HTMLTd
Spellcheck (v bool ) HTMLTd
Style (k, format string , v ...any ) HTMLTd
Styles (s map [string ]string ) HTMLTd
TabIndex (v int ) HTMLTd
Title (format string , v ...any ) HTMLTd
On (event string , h EventHandler , options ...EventOption ) HTMLTd
OnBlur (h EventHandler , options ...EventOption ) HTMLTd
OnChange (h EventHandler , options ...EventOption ) HTMLTd
OnClick (h EventHandler , options ...EventOption ) HTMLTd
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTd
OnCopy (h EventHandler , options ...EventOption ) HTMLTd
OnCut (h EventHandler , options ...EventOption ) HTMLTd
OnDblClick (h EventHandler , options ...EventOption ) HTMLTd
OnDrag (h EventHandler , options ...EventOption ) HTMLTd
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTd
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTd
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTd
OnDragOver (h EventHandler , options ...EventOption ) HTMLTd
OnDragStart (h EventHandler , options ...EventOption ) HTMLTd
OnDrop (h EventHandler , options ...EventOption ) HTMLTd
OnFocus (h EventHandler , options ...EventOption ) HTMLTd
OnInput (h EventHandler , options ...EventOption ) HTMLTd
OnInvalid (h EventHandler , options ...EventOption ) HTMLTd
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTd
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTd
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTd
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTd
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTd
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTd
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTd
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTd
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTd
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTd
OnPaste (h EventHandler , options ...EventOption ) HTMLTd
OnReset (h EventHandler , options ...EventOption ) HTMLTd
OnScroll (h EventHandler , options ...EventOption ) HTMLTd
OnSearch (h EventHandler , options ...EventOption ) HTMLTd
OnSelect (h EventHandler , options ...EventOption ) HTMLTd
OnSubmit (h EventHandler , options ...EventOption ) HTMLTd
OnWheel (h EventHandler , options ...EventOption ) HTMLTd
}
func Td () HTMLTd {
e := &htmlTd {
htmlElement : htmlElement {
tag : "td" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTd struct {
htmlElement
}
func (e *htmlTd ) Body (v ...UI ) HTMLTd {
return e .setBody (FilterUIElems (v ...)).(*htmlTd )
}
func (e *htmlTd ) Text (v any ) HTMLTd {
return e .Body (Text (v ))
}
func (e *htmlTd ) Textf (format string , v ...any ) HTMLTd {
return e .Body (Textf (format , v ...))
}
func (e *htmlTd ) AccessKey (format string , v ...any ) HTMLTd {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTd ) Aria (k string , v any ) HTMLTd {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTd ) Attr (n string , v any ) HTMLTd {
e .setAttr (n , v )
return e
}
func (e *htmlTd ) Class (v ...string ) HTMLTd {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTd ) ColSpan (v int ) HTMLTd {
e .setAttr ("colspan" , v )
return e
}
func (e *htmlTd ) ContentEditable (v bool ) HTMLTd {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTd ) DataSet (k string , v any ) HTMLTd {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTd ) DataSets (ds map [string ]any ) HTMLTd {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTd ) Dir (format string , v ...any ) HTMLTd {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTd ) Draggable (v bool ) HTMLTd {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTd ) Headers (format string , v ...any ) HTMLTd {
e .setAttr ("headers" , FormatString (format , v ...))
return e
}
func (e *htmlTd ) Hidden (v bool ) HTMLTd {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTd ) ID (format string , v ...any ) HTMLTd {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTd ) Lang (format string , v ...any ) HTMLTd {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTd ) Role (format string , v ...any ) HTMLTd {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTd ) Rowspan (v int ) HTMLTd {
e .setAttr ("rowspan" , v )
return e
}
func (e *htmlTd ) Spellcheck (v bool ) HTMLTd {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTd ) Style (k , format string , v ...any ) HTMLTd {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTd ) Styles (s map [string ]string ) HTMLTd {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTd ) TabIndex (v int ) HTMLTd {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTd ) Title (format string , v ...any ) HTMLTd {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTd ) On (event string , h EventHandler , options ...EventOption ) HTMLTd {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTd ) OnBlur (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("blur" , h , options ...)
}
func (e *htmlTd ) OnChange (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("change" , h , options ...)
}
func (e *htmlTd ) OnClick (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("click" , h , options ...)
}
func (e *htmlTd ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTd ) OnCopy (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("copy" , h , options ...)
}
func (e *htmlTd ) OnCut (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("cut" , h , options ...)
}
func (e *htmlTd ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTd ) OnDrag (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("drag" , h , options ...)
}
func (e *htmlTd ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTd ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTd ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTd ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTd ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTd ) OnDrop (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("drop" , h , options ...)
}
func (e *htmlTd ) OnFocus (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("focus" , h , options ...)
}
func (e *htmlTd ) OnInput (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("input" , h , options ...)
}
func (e *htmlTd ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTd ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTd ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTd ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTd ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTd ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTd ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTd ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTd ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTd ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTd ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTd ) OnPaste (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("paste" , h , options ...)
}
func (e *htmlTd ) OnReset (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("reset" , h , options ...)
}
func (e *htmlTd ) OnScroll (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTd ) OnSearch (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("search" , h , options ...)
}
func (e *htmlTd ) OnSelect (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("select" , h , options ...)
}
func (e *htmlTd ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("submit" , h , options ...)
}
func (e *htmlTd ) OnWheel (h EventHandler , options ...EventOption ) HTMLTd {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTd ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTd ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTd ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTd ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTd ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTd ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTemplate interface {
HTML
Body (elems ...UI ) HTMLTemplate
Text (v any ) HTMLTemplate
Textf (format string , v ...any ) HTMLTemplate
AccessKey (format string , v ...any ) HTMLTemplate
Aria (k string , v any ) HTMLTemplate
Attr (n string , v any ) HTMLTemplate
Class (v ...string ) HTMLTemplate
ContentEditable (v bool ) HTMLTemplate
DataSet (k string , v any ) HTMLTemplate
DataSets (ds map [string ]any ) HTMLTemplate
Dir (format string , v ...any ) HTMLTemplate
Draggable (v bool ) HTMLTemplate
Hidden (v bool ) HTMLTemplate
ID (format string , v ...any ) HTMLTemplate
Lang (format string , v ...any ) HTMLTemplate
Role (format string , v ...any ) HTMLTemplate
Spellcheck (v bool ) HTMLTemplate
Style (k, format string , v ...any ) HTMLTemplate
Styles (s map [string ]string ) HTMLTemplate
TabIndex (v int ) HTMLTemplate
Title (format string , v ...any ) HTMLTemplate
On (event string , h EventHandler , options ...EventOption ) HTMLTemplate
}
func Template () HTMLTemplate {
e := &htmlTemplate {
htmlElement : htmlElement {
tag : "template" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTemplate struct {
htmlElement
}
func (e *htmlTemplate ) Body (v ...UI ) HTMLTemplate {
return e .setBody (FilterUIElems (v ...)).(*htmlTemplate )
}
func (e *htmlTemplate ) Text (v any ) HTMLTemplate {
return e .Body (Text (v ))
}
func (e *htmlTemplate ) Textf (format string , v ...any ) HTMLTemplate {
return e .Body (Textf (format , v ...))
}
func (e *htmlTemplate ) AccessKey (format string , v ...any ) HTMLTemplate {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTemplate ) Aria (k string , v any ) HTMLTemplate {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTemplate ) Attr (n string , v any ) HTMLTemplate {
e .setAttr (n , v )
return e
}
func (e *htmlTemplate ) Class (v ...string ) HTMLTemplate {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTemplate ) ContentEditable (v bool ) HTMLTemplate {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTemplate ) DataSet (k string , v any ) HTMLTemplate {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTemplate ) DataSets (ds map [string ]any ) HTMLTemplate {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTemplate ) Dir (format string , v ...any ) HTMLTemplate {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTemplate ) Draggable (v bool ) HTMLTemplate {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTemplate ) Hidden (v bool ) HTMLTemplate {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTemplate ) ID (format string , v ...any ) HTMLTemplate {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTemplate ) Lang (format string , v ...any ) HTMLTemplate {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTemplate ) Role (format string , v ...any ) HTMLTemplate {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTemplate ) Spellcheck (v bool ) HTMLTemplate {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTemplate ) Style (k , format string , v ...any ) HTMLTemplate {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTemplate ) Styles (s map [string ]string ) HTMLTemplate {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTemplate ) TabIndex (v int ) HTMLTemplate {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTemplate ) Title (format string , v ...any ) HTMLTemplate {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTemplate ) On (event string , h EventHandler , options ...EventOption ) HTMLTemplate {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTemplate ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTemplate ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTemplate ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTemplate ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTemplate ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTemplate ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTextarea interface {
HTML
Body (elems ...UI ) HTMLTextarea
Text (v any ) HTMLTextarea
Textf (format string , v ...any ) HTMLTextarea
AccessKey (format string , v ...any ) HTMLTextarea
Aria (k string , v any ) HTMLTextarea
Attr (n string , v any ) HTMLTextarea
AutoFocus (v bool ) HTMLTextarea
Class (v ...string ) HTMLTextarea
Cols (v int ) HTMLTextarea
ContentEditable (v bool ) HTMLTextarea
DataSet (k string , v any ) HTMLTextarea
DataSets (ds map [string ]any ) HTMLTextarea
Dir (format string , v ...any ) HTMLTextarea
DirName (format string , v ...any ) HTMLTextarea
Disabled (v bool ) HTMLTextarea
Draggable (v bool ) HTMLTextarea
Form (format string , v ...any ) HTMLTextarea
Hidden (v bool ) HTMLTextarea
ID (format string , v ...any ) HTMLTextarea
Lang (format string , v ...any ) HTMLTextarea
MaxLength (v int ) HTMLTextarea
Name (format string , v ...any ) HTMLTextarea
Placeholder (format string , v ...any ) HTMLTextarea
ReadOnly (v bool ) HTMLTextarea
Required (v bool ) HTMLTextarea
Role (format string , v ...any ) HTMLTextarea
Rows (v int ) HTMLTextarea
Spellcheck (v bool ) HTMLTextarea
Style (k, format string , v ...any ) HTMLTextarea
Styles (s map [string ]string ) HTMLTextarea
TabIndex (v int ) HTMLTextarea
Title (format string , v ...any ) HTMLTextarea
Wrap (format string , v ...any ) HTMLTextarea
On (event string , h EventHandler , options ...EventOption ) HTMLTextarea
OnBlur (h EventHandler , options ...EventOption ) HTMLTextarea
OnChange (h EventHandler , options ...EventOption ) HTMLTextarea
OnClick (h EventHandler , options ...EventOption ) HTMLTextarea
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTextarea
OnCopy (h EventHandler , options ...EventOption ) HTMLTextarea
OnCut (h EventHandler , options ...EventOption ) HTMLTextarea
OnDblClick (h EventHandler , options ...EventOption ) HTMLTextarea
OnDrag (h EventHandler , options ...EventOption ) HTMLTextarea
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTextarea
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTextarea
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTextarea
OnDragOver (h EventHandler , options ...EventOption ) HTMLTextarea
OnDragStart (h EventHandler , options ...EventOption ) HTMLTextarea
OnDrop (h EventHandler , options ...EventOption ) HTMLTextarea
OnFocus (h EventHandler , options ...EventOption ) HTMLTextarea
OnInput (h EventHandler , options ...EventOption ) HTMLTextarea
OnInvalid (h EventHandler , options ...EventOption ) HTMLTextarea
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTextarea
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTextarea
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTextarea
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTextarea
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTextarea
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTextarea
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTextarea
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTextarea
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTextarea
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTextarea
OnPaste (h EventHandler , options ...EventOption ) HTMLTextarea
OnReset (h EventHandler , options ...EventOption ) HTMLTextarea
OnScroll (h EventHandler , options ...EventOption ) HTMLTextarea
OnSearch (h EventHandler , options ...EventOption ) HTMLTextarea
OnSelect (h EventHandler , options ...EventOption ) HTMLTextarea
OnSubmit (h EventHandler , options ...EventOption ) HTMLTextarea
OnWheel (h EventHandler , options ...EventOption ) HTMLTextarea
}
func Textarea () HTMLTextarea {
e := &htmlTextarea {
htmlElement : htmlElement {
tag : "textarea" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTextarea struct {
htmlElement
}
func (e *htmlTextarea ) Body (v ...UI ) HTMLTextarea {
return e .setBody (FilterUIElems (v ...)).(*htmlTextarea )
}
func (e *htmlTextarea ) Text (v any ) HTMLTextarea {
e .setAttr ("value" , v )
return e
}
func (e *htmlTextarea ) Textf (format string , v ...any ) HTMLTextarea {
e .setAttr ("value" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) AccessKey (format string , v ...any ) HTMLTextarea {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Aria (k string , v any ) HTMLTextarea {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTextarea ) Attr (n string , v any ) HTMLTextarea {
e .setAttr (n , v )
return e
}
func (e *htmlTextarea ) AutoFocus (v bool ) HTMLTextarea {
e .setAttr ("autofocus" , v )
return e
}
func (e *htmlTextarea ) Class (v ...string ) HTMLTextarea {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTextarea ) Cols (v int ) HTMLTextarea {
e .setAttr ("cols" , v )
return e
}
func (e *htmlTextarea ) ContentEditable (v bool ) HTMLTextarea {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTextarea ) DataSet (k string , v any ) HTMLTextarea {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTextarea ) DataSets (ds map [string ]any ) HTMLTextarea {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTextarea ) Dir (format string , v ...any ) HTMLTextarea {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) DirName (format string , v ...any ) HTMLTextarea {
e .setAttr ("dirname" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Disabled (v bool ) HTMLTextarea {
e .setAttr ("disabled" , v )
return e
}
func (e *htmlTextarea ) Draggable (v bool ) HTMLTextarea {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTextarea ) Form (format string , v ...any ) HTMLTextarea {
e .setAttr ("form" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Hidden (v bool ) HTMLTextarea {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTextarea ) ID (format string , v ...any ) HTMLTextarea {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Lang (format string , v ...any ) HTMLTextarea {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) MaxLength (v int ) HTMLTextarea {
e .setAttr ("maxlength" , v )
return e
}
func (e *htmlTextarea ) Name (format string , v ...any ) HTMLTextarea {
e .setAttr ("name" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Placeholder (format string , v ...any ) HTMLTextarea {
e .setAttr ("placeholder" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) ReadOnly (v bool ) HTMLTextarea {
e .setAttr ("readonly" , v )
return e
}
func (e *htmlTextarea ) Required (v bool ) HTMLTextarea {
e .setAttr ("required" , v )
return e
}
func (e *htmlTextarea ) Role (format string , v ...any ) HTMLTextarea {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Rows (v int ) HTMLTextarea {
e .setAttr ("rows" , v )
return e
}
func (e *htmlTextarea ) Spellcheck (v bool ) HTMLTextarea {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTextarea ) Style (k , format string , v ...any ) HTMLTextarea {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Styles (s map [string ]string ) HTMLTextarea {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTextarea ) TabIndex (v int ) HTMLTextarea {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTextarea ) Title (format string , v ...any ) HTMLTextarea {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) Wrap (format string , v ...any ) HTMLTextarea {
e .setAttr ("wrap" , FormatString (format , v ...))
return e
}
func (e *htmlTextarea ) On (event string , h EventHandler , options ...EventOption ) HTMLTextarea {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTextarea ) OnBlur (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("blur" , h , options ...)
}
func (e *htmlTextarea ) OnChange (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("change" , h , options ...)
}
func (e *htmlTextarea ) OnClick (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("click" , h , options ...)
}
func (e *htmlTextarea ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTextarea ) OnCopy (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("copy" , h , options ...)
}
func (e *htmlTextarea ) OnCut (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("cut" , h , options ...)
}
func (e *htmlTextarea ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTextarea ) OnDrag (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("drag" , h , options ...)
}
func (e *htmlTextarea ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTextarea ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTextarea ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTextarea ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTextarea ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTextarea ) OnDrop (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("drop" , h , options ...)
}
func (e *htmlTextarea ) OnFocus (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("focus" , h , options ...)
}
func (e *htmlTextarea ) OnInput (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("input" , h , options ...)
}
func (e *htmlTextarea ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTextarea ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTextarea ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTextarea ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTextarea ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTextarea ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTextarea ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTextarea ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTextarea ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTextarea ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTextarea ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTextarea ) OnPaste (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("paste" , h , options ...)
}
func (e *htmlTextarea ) OnReset (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("reset" , h , options ...)
}
func (e *htmlTextarea ) OnScroll (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTextarea ) OnSearch (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("search" , h , options ...)
}
func (e *htmlTextarea ) OnSelect (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("select" , h , options ...)
}
func (e *htmlTextarea ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("submit" , h , options ...)
}
func (e *htmlTextarea ) OnWheel (h EventHandler , options ...EventOption ) HTMLTextarea {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTextarea ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTextarea ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTextarea ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTextarea ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTextarea ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTextarea ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTFoot interface {
HTML
Body (elems ...UI ) HTMLTFoot
Text (v any ) HTMLTFoot
Textf (format string , v ...any ) HTMLTFoot
AccessKey (format string , v ...any ) HTMLTFoot
Aria (k string , v any ) HTMLTFoot
Attr (n string , v any ) HTMLTFoot
Class (v ...string ) HTMLTFoot
ContentEditable (v bool ) HTMLTFoot
DataSet (k string , v any ) HTMLTFoot
DataSets (ds map [string ]any ) HTMLTFoot
Dir (format string , v ...any ) HTMLTFoot
Draggable (v bool ) HTMLTFoot
Hidden (v bool ) HTMLTFoot
ID (format string , v ...any ) HTMLTFoot
Lang (format string , v ...any ) HTMLTFoot
Role (format string , v ...any ) HTMLTFoot
Spellcheck (v bool ) HTMLTFoot
Style (k, format string , v ...any ) HTMLTFoot
Styles (s map [string ]string ) HTMLTFoot
TabIndex (v int ) HTMLTFoot
Title (format string , v ...any ) HTMLTFoot
On (event string , h EventHandler , options ...EventOption ) HTMLTFoot
OnBlur (h EventHandler , options ...EventOption ) HTMLTFoot
OnChange (h EventHandler , options ...EventOption ) HTMLTFoot
OnClick (h EventHandler , options ...EventOption ) HTMLTFoot
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTFoot
OnCopy (h EventHandler , options ...EventOption ) HTMLTFoot
OnCut (h EventHandler , options ...EventOption ) HTMLTFoot
OnDblClick (h EventHandler , options ...EventOption ) HTMLTFoot
OnDrag (h EventHandler , options ...EventOption ) HTMLTFoot
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTFoot
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTFoot
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTFoot
OnDragOver (h EventHandler , options ...EventOption ) HTMLTFoot
OnDragStart (h EventHandler , options ...EventOption ) HTMLTFoot
OnDrop (h EventHandler , options ...EventOption ) HTMLTFoot
OnFocus (h EventHandler , options ...EventOption ) HTMLTFoot
OnInput (h EventHandler , options ...EventOption ) HTMLTFoot
OnInvalid (h EventHandler , options ...EventOption ) HTMLTFoot
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTFoot
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTFoot
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTFoot
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTFoot
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTFoot
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTFoot
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTFoot
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTFoot
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTFoot
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTFoot
OnPaste (h EventHandler , options ...EventOption ) HTMLTFoot
OnReset (h EventHandler , options ...EventOption ) HTMLTFoot
OnScroll (h EventHandler , options ...EventOption ) HTMLTFoot
OnSearch (h EventHandler , options ...EventOption ) HTMLTFoot
OnSelect (h EventHandler , options ...EventOption ) HTMLTFoot
OnSubmit (h EventHandler , options ...EventOption ) HTMLTFoot
OnWheel (h EventHandler , options ...EventOption ) HTMLTFoot
}
func TFoot () HTMLTFoot {
e := &htmlTFoot {
htmlElement : htmlElement {
tag : "tfoot" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTFoot struct {
htmlElement
}
func (e *htmlTFoot ) Body (v ...UI ) HTMLTFoot {
return e .setBody (FilterUIElems (v ...)).(*htmlTFoot )
}
func (e *htmlTFoot ) Text (v any ) HTMLTFoot {
return e .Body (Text (v ))
}
func (e *htmlTFoot ) Textf (format string , v ...any ) HTMLTFoot {
return e .Body (Textf (format , v ...))
}
func (e *htmlTFoot ) AccessKey (format string , v ...any ) HTMLTFoot {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTFoot ) Aria (k string , v any ) HTMLTFoot {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTFoot ) Attr (n string , v any ) HTMLTFoot {
e .setAttr (n , v )
return e
}
func (e *htmlTFoot ) Class (v ...string ) HTMLTFoot {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTFoot ) ContentEditable (v bool ) HTMLTFoot {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTFoot ) DataSet (k string , v any ) HTMLTFoot {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTFoot ) DataSets (ds map [string ]any ) HTMLTFoot {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTFoot ) Dir (format string , v ...any ) HTMLTFoot {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTFoot ) Draggable (v bool ) HTMLTFoot {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTFoot ) Hidden (v bool ) HTMLTFoot {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTFoot ) ID (format string , v ...any ) HTMLTFoot {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTFoot ) Lang (format string , v ...any ) HTMLTFoot {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTFoot ) Role (format string , v ...any ) HTMLTFoot {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTFoot ) Spellcheck (v bool ) HTMLTFoot {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTFoot ) Style (k , format string , v ...any ) HTMLTFoot {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTFoot ) Styles (s map [string ]string ) HTMLTFoot {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTFoot ) TabIndex (v int ) HTMLTFoot {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTFoot ) Title (format string , v ...any ) HTMLTFoot {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTFoot ) On (event string , h EventHandler , options ...EventOption ) HTMLTFoot {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTFoot ) OnBlur (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("blur" , h , options ...)
}
func (e *htmlTFoot ) OnChange (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("change" , h , options ...)
}
func (e *htmlTFoot ) OnClick (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("click" , h , options ...)
}
func (e *htmlTFoot ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTFoot ) OnCopy (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("copy" , h , options ...)
}
func (e *htmlTFoot ) OnCut (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("cut" , h , options ...)
}
func (e *htmlTFoot ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTFoot ) OnDrag (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("drag" , h , options ...)
}
func (e *htmlTFoot ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTFoot ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTFoot ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTFoot ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTFoot ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTFoot ) OnDrop (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("drop" , h , options ...)
}
func (e *htmlTFoot ) OnFocus (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("focus" , h , options ...)
}
func (e *htmlTFoot ) OnInput (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("input" , h , options ...)
}
func (e *htmlTFoot ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTFoot ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTFoot ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTFoot ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTFoot ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTFoot ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTFoot ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTFoot ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTFoot ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTFoot ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTFoot ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTFoot ) OnPaste (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("paste" , h , options ...)
}
func (e *htmlTFoot ) OnReset (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("reset" , h , options ...)
}
func (e *htmlTFoot ) OnScroll (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTFoot ) OnSearch (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("search" , h , options ...)
}
func (e *htmlTFoot ) OnSelect (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("select" , h , options ...)
}
func (e *htmlTFoot ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("submit" , h , options ...)
}
func (e *htmlTFoot ) OnWheel (h EventHandler , options ...EventOption ) HTMLTFoot {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTFoot ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTFoot ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTFoot ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTFoot ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTFoot ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTFoot ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTh interface {
HTML
Body (elems ...UI ) HTMLTh
Text (v any ) HTMLTh
Textf (format string , v ...any ) HTMLTh
Abbr (format string , v ...any ) HTMLTh
AccessKey (format string , v ...any ) HTMLTh
Aria (k string , v any ) HTMLTh
Attr (n string , v any ) HTMLTh
Class (v ...string ) HTMLTh
ColSpan (v int ) HTMLTh
ContentEditable (v bool ) HTMLTh
DataSet (k string , v any ) HTMLTh
DataSets (ds map [string ]any ) HTMLTh
Dir (format string , v ...any ) HTMLTh
Draggable (v bool ) HTMLTh
Headers (format string , v ...any ) HTMLTh
Hidden (v bool ) HTMLTh
ID (format string , v ...any ) HTMLTh
Lang (format string , v ...any ) HTMLTh
Role (format string , v ...any ) HTMLTh
Rowspan (v int ) HTMLTh
Scope (format string , v ...any ) HTMLTh
Spellcheck (v bool ) HTMLTh
Style (k, format string , v ...any ) HTMLTh
Styles (s map [string ]string ) HTMLTh
TabIndex (v int ) HTMLTh
Title (format string , v ...any ) HTMLTh
On (event string , h EventHandler , options ...EventOption ) HTMLTh
OnBlur (h EventHandler , options ...EventOption ) HTMLTh
OnChange (h EventHandler , options ...EventOption ) HTMLTh
OnClick (h EventHandler , options ...EventOption ) HTMLTh
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTh
OnCopy (h EventHandler , options ...EventOption ) HTMLTh
OnCut (h EventHandler , options ...EventOption ) HTMLTh
OnDblClick (h EventHandler , options ...EventOption ) HTMLTh
OnDrag (h EventHandler , options ...EventOption ) HTMLTh
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTh
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTh
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTh
OnDragOver (h EventHandler , options ...EventOption ) HTMLTh
OnDragStart (h EventHandler , options ...EventOption ) HTMLTh
OnDrop (h EventHandler , options ...EventOption ) HTMLTh
OnFocus (h EventHandler , options ...EventOption ) HTMLTh
OnInput (h EventHandler , options ...EventOption ) HTMLTh
OnInvalid (h EventHandler , options ...EventOption ) HTMLTh
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTh
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTh
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTh
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTh
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTh
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTh
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTh
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTh
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTh
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTh
OnPaste (h EventHandler , options ...EventOption ) HTMLTh
OnReset (h EventHandler , options ...EventOption ) HTMLTh
OnScroll (h EventHandler , options ...EventOption ) HTMLTh
OnSearch (h EventHandler , options ...EventOption ) HTMLTh
OnSelect (h EventHandler , options ...EventOption ) HTMLTh
OnSubmit (h EventHandler , options ...EventOption ) HTMLTh
OnWheel (h EventHandler , options ...EventOption ) HTMLTh
}
func Th () HTMLTh {
e := &htmlTh {
htmlElement : htmlElement {
tag : "th" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTh struct {
htmlElement
}
func (e *htmlTh ) Body (v ...UI ) HTMLTh {
return e .setBody (FilterUIElems (v ...)).(*htmlTh )
}
func (e *htmlTh ) Text (v any ) HTMLTh {
return e .Body (Text (v ))
}
func (e *htmlTh ) Textf (format string , v ...any ) HTMLTh {
return e .Body (Textf (format , v ...))
}
func (e *htmlTh ) Abbr (format string , v ...any ) HTMLTh {
e .setAttr ("abbr" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) AccessKey (format string , v ...any ) HTMLTh {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) Aria (k string , v any ) HTMLTh {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTh ) Attr (n string , v any ) HTMLTh {
e .setAttr (n , v )
return e
}
func (e *htmlTh ) Class (v ...string ) HTMLTh {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTh ) ColSpan (v int ) HTMLTh {
e .setAttr ("colspan" , v )
return e
}
func (e *htmlTh ) ContentEditable (v bool ) HTMLTh {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTh ) DataSet (k string , v any ) HTMLTh {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTh ) DataSets (ds map [string ]any ) HTMLTh {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTh ) Dir (format string , v ...any ) HTMLTh {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) Draggable (v bool ) HTMLTh {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTh ) Headers (format string , v ...any ) HTMLTh {
e .setAttr ("headers" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) Hidden (v bool ) HTMLTh {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTh ) ID (format string , v ...any ) HTMLTh {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) Lang (format string , v ...any ) HTMLTh {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) Role (format string , v ...any ) HTMLTh {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) Rowspan (v int ) HTMLTh {
e .setAttr ("rowspan" , v )
return e
}
func (e *htmlTh ) Scope (format string , v ...any ) HTMLTh {
e .setAttr ("scope" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) Spellcheck (v bool ) HTMLTh {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTh ) Style (k , format string , v ...any ) HTMLTh {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTh ) Styles (s map [string ]string ) HTMLTh {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTh ) TabIndex (v int ) HTMLTh {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTh ) Title (format string , v ...any ) HTMLTh {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTh ) On (event string , h EventHandler , options ...EventOption ) HTMLTh {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTh ) OnBlur (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("blur" , h , options ...)
}
func (e *htmlTh ) OnChange (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("change" , h , options ...)
}
func (e *htmlTh ) OnClick (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("click" , h , options ...)
}
func (e *htmlTh ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTh ) OnCopy (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("copy" , h , options ...)
}
func (e *htmlTh ) OnCut (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("cut" , h , options ...)
}
func (e *htmlTh ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTh ) OnDrag (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("drag" , h , options ...)
}
func (e *htmlTh ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTh ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTh ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTh ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTh ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTh ) OnDrop (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("drop" , h , options ...)
}
func (e *htmlTh ) OnFocus (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("focus" , h , options ...)
}
func (e *htmlTh ) OnInput (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("input" , h , options ...)
}
func (e *htmlTh ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTh ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTh ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTh ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTh ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTh ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTh ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTh ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTh ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTh ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTh ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTh ) OnPaste (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("paste" , h , options ...)
}
func (e *htmlTh ) OnReset (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("reset" , h , options ...)
}
func (e *htmlTh ) OnScroll (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTh ) OnSearch (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("search" , h , options ...)
}
func (e *htmlTh ) OnSelect (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("select" , h , options ...)
}
func (e *htmlTh ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("submit" , h , options ...)
}
func (e *htmlTh ) OnWheel (h EventHandler , options ...EventOption ) HTMLTh {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTh ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTh ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTh ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTh ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTh ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTh ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTHead interface {
HTML
Body (elems ...UI ) HTMLTHead
Text (v any ) HTMLTHead
Textf (format string , v ...any ) HTMLTHead
AccessKey (format string , v ...any ) HTMLTHead
Aria (k string , v any ) HTMLTHead
Attr (n string , v any ) HTMLTHead
Class (v ...string ) HTMLTHead
ContentEditable (v bool ) HTMLTHead
DataSet (k string , v any ) HTMLTHead
DataSets (ds map [string ]any ) HTMLTHead
Dir (format string , v ...any ) HTMLTHead
Draggable (v bool ) HTMLTHead
Hidden (v bool ) HTMLTHead
ID (format string , v ...any ) HTMLTHead
Lang (format string , v ...any ) HTMLTHead
Role (format string , v ...any ) HTMLTHead
Spellcheck (v bool ) HTMLTHead
Style (k, format string , v ...any ) HTMLTHead
Styles (s map [string ]string ) HTMLTHead
TabIndex (v int ) HTMLTHead
Title (format string , v ...any ) HTMLTHead
On (event string , h EventHandler , options ...EventOption ) HTMLTHead
OnBlur (h EventHandler , options ...EventOption ) HTMLTHead
OnChange (h EventHandler , options ...EventOption ) HTMLTHead
OnClick (h EventHandler , options ...EventOption ) HTMLTHead
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTHead
OnCopy (h EventHandler , options ...EventOption ) HTMLTHead
OnCut (h EventHandler , options ...EventOption ) HTMLTHead
OnDblClick (h EventHandler , options ...EventOption ) HTMLTHead
OnDrag (h EventHandler , options ...EventOption ) HTMLTHead
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTHead
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTHead
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTHead
OnDragOver (h EventHandler , options ...EventOption ) HTMLTHead
OnDragStart (h EventHandler , options ...EventOption ) HTMLTHead
OnDrop (h EventHandler , options ...EventOption ) HTMLTHead
OnFocus (h EventHandler , options ...EventOption ) HTMLTHead
OnInput (h EventHandler , options ...EventOption ) HTMLTHead
OnInvalid (h EventHandler , options ...EventOption ) HTMLTHead
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTHead
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTHead
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTHead
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTHead
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTHead
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTHead
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTHead
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTHead
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTHead
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTHead
OnPaste (h EventHandler , options ...EventOption ) HTMLTHead
OnReset (h EventHandler , options ...EventOption ) HTMLTHead
OnScroll (h EventHandler , options ...EventOption ) HTMLTHead
OnSearch (h EventHandler , options ...EventOption ) HTMLTHead
OnSelect (h EventHandler , options ...EventOption ) HTMLTHead
OnSubmit (h EventHandler , options ...EventOption ) HTMLTHead
OnWheel (h EventHandler , options ...EventOption ) HTMLTHead
}
func THead () HTMLTHead {
e := &htmlTHead {
htmlElement : htmlElement {
tag : "thead" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTHead struct {
htmlElement
}
func (e *htmlTHead ) Body (v ...UI ) HTMLTHead {
return e .setBody (FilterUIElems (v ...)).(*htmlTHead )
}
func (e *htmlTHead ) Text (v any ) HTMLTHead {
return e .Body (Text (v ))
}
func (e *htmlTHead ) Textf (format string , v ...any ) HTMLTHead {
return e .Body (Textf (format , v ...))
}
func (e *htmlTHead ) AccessKey (format string , v ...any ) HTMLTHead {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTHead ) Aria (k string , v any ) HTMLTHead {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTHead ) Attr (n string , v any ) HTMLTHead {
e .setAttr (n , v )
return e
}
func (e *htmlTHead ) Class (v ...string ) HTMLTHead {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTHead ) ContentEditable (v bool ) HTMLTHead {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTHead ) DataSet (k string , v any ) HTMLTHead {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTHead ) DataSets (ds map [string ]any ) HTMLTHead {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTHead ) Dir (format string , v ...any ) HTMLTHead {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTHead ) Draggable (v bool ) HTMLTHead {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTHead ) Hidden (v bool ) HTMLTHead {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTHead ) ID (format string , v ...any ) HTMLTHead {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTHead ) Lang (format string , v ...any ) HTMLTHead {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTHead ) Role (format string , v ...any ) HTMLTHead {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTHead ) Spellcheck (v bool ) HTMLTHead {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTHead ) Style (k , format string , v ...any ) HTMLTHead {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTHead ) Styles (s map [string ]string ) HTMLTHead {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTHead ) TabIndex (v int ) HTMLTHead {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTHead ) Title (format string , v ...any ) HTMLTHead {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTHead ) On (event string , h EventHandler , options ...EventOption ) HTMLTHead {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTHead ) OnBlur (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("blur" , h , options ...)
}
func (e *htmlTHead ) OnChange (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("change" , h , options ...)
}
func (e *htmlTHead ) OnClick (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("click" , h , options ...)
}
func (e *htmlTHead ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTHead ) OnCopy (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("copy" , h , options ...)
}
func (e *htmlTHead ) OnCut (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("cut" , h , options ...)
}
func (e *htmlTHead ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTHead ) OnDrag (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("drag" , h , options ...)
}
func (e *htmlTHead ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTHead ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTHead ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTHead ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTHead ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTHead ) OnDrop (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("drop" , h , options ...)
}
func (e *htmlTHead ) OnFocus (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("focus" , h , options ...)
}
func (e *htmlTHead ) OnInput (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("input" , h , options ...)
}
func (e *htmlTHead ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTHead ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTHead ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTHead ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTHead ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTHead ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTHead ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTHead ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTHead ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTHead ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTHead ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTHead ) OnPaste (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("paste" , h , options ...)
}
func (e *htmlTHead ) OnReset (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("reset" , h , options ...)
}
func (e *htmlTHead ) OnScroll (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTHead ) OnSearch (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("search" , h , options ...)
}
func (e *htmlTHead ) OnSelect (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("select" , h , options ...)
}
func (e *htmlTHead ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("submit" , h , options ...)
}
func (e *htmlTHead ) OnWheel (h EventHandler , options ...EventOption ) HTMLTHead {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTHead ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTHead ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTHead ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTHead ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTHead ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTHead ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTime interface {
HTML
Body (elems ...UI ) HTMLTime
Text (v any ) HTMLTime
Textf (format string , v ...any ) HTMLTime
AccessKey (format string , v ...any ) HTMLTime
Aria (k string , v any ) HTMLTime
Attr (n string , v any ) HTMLTime
Class (v ...string ) HTMLTime
ContentEditable (v bool ) HTMLTime
DataSet (k string , v any ) HTMLTime
DataSets (ds map [string ]any ) HTMLTime
DateTime (format string , v ...any ) HTMLTime
Dir (format string , v ...any ) HTMLTime
Draggable (v bool ) HTMLTime
Hidden (v bool ) HTMLTime
ID (format string , v ...any ) HTMLTime
Lang (format string , v ...any ) HTMLTime
Role (format string , v ...any ) HTMLTime
Spellcheck (v bool ) HTMLTime
Style (k, format string , v ...any ) HTMLTime
Styles (s map [string ]string ) HTMLTime
TabIndex (v int ) HTMLTime
Title (format string , v ...any ) HTMLTime
On (event string , h EventHandler , options ...EventOption ) HTMLTime
OnBlur (h EventHandler , options ...EventOption ) HTMLTime
OnChange (h EventHandler , options ...EventOption ) HTMLTime
OnClick (h EventHandler , options ...EventOption ) HTMLTime
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTime
OnCopy (h EventHandler , options ...EventOption ) HTMLTime
OnCut (h EventHandler , options ...EventOption ) HTMLTime
OnDblClick (h EventHandler , options ...EventOption ) HTMLTime
OnDrag (h EventHandler , options ...EventOption ) HTMLTime
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTime
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTime
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTime
OnDragOver (h EventHandler , options ...EventOption ) HTMLTime
OnDragStart (h EventHandler , options ...EventOption ) HTMLTime
OnDrop (h EventHandler , options ...EventOption ) HTMLTime
OnFocus (h EventHandler , options ...EventOption ) HTMLTime
OnInput (h EventHandler , options ...EventOption ) HTMLTime
OnInvalid (h EventHandler , options ...EventOption ) HTMLTime
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTime
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTime
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTime
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTime
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTime
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTime
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTime
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTime
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTime
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTime
OnPaste (h EventHandler , options ...EventOption ) HTMLTime
OnReset (h EventHandler , options ...EventOption ) HTMLTime
OnScroll (h EventHandler , options ...EventOption ) HTMLTime
OnSearch (h EventHandler , options ...EventOption ) HTMLTime
OnSelect (h EventHandler , options ...EventOption ) HTMLTime
OnSubmit (h EventHandler , options ...EventOption ) HTMLTime
OnWheel (h EventHandler , options ...EventOption ) HTMLTime
}
func Time () HTMLTime {
e := &htmlTime {
htmlElement : htmlElement {
tag : "time" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTime struct {
htmlElement
}
func (e *htmlTime ) Body (v ...UI ) HTMLTime {
return e .setBody (FilterUIElems (v ...)).(*htmlTime )
}
func (e *htmlTime ) Text (v any ) HTMLTime {
return e .Body (Text (v ))
}
func (e *htmlTime ) Textf (format string , v ...any ) HTMLTime {
return e .Body (Textf (format , v ...))
}
func (e *htmlTime ) AccessKey (format string , v ...any ) HTMLTime {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTime ) Aria (k string , v any ) HTMLTime {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTime ) Attr (n string , v any ) HTMLTime {
e .setAttr (n , v )
return e
}
func (e *htmlTime ) Class (v ...string ) HTMLTime {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTime ) ContentEditable (v bool ) HTMLTime {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTime ) DataSet (k string , v any ) HTMLTime {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTime ) DataSets (ds map [string ]any ) HTMLTime {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTime ) DateTime (format string , v ...any ) HTMLTime {
e .setAttr ("datetime" , FormatString (format , v ...))
return e
}
func (e *htmlTime ) Dir (format string , v ...any ) HTMLTime {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTime ) Draggable (v bool ) HTMLTime {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTime ) Hidden (v bool ) HTMLTime {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTime ) ID (format string , v ...any ) HTMLTime {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTime ) Lang (format string , v ...any ) HTMLTime {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTime ) Role (format string , v ...any ) HTMLTime {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTime ) Spellcheck (v bool ) HTMLTime {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTime ) Style (k , format string , v ...any ) HTMLTime {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTime ) Styles (s map [string ]string ) HTMLTime {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTime ) TabIndex (v int ) HTMLTime {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTime ) Title (format string , v ...any ) HTMLTime {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTime ) On (event string , h EventHandler , options ...EventOption ) HTMLTime {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTime ) OnBlur (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("blur" , h , options ...)
}
func (e *htmlTime ) OnChange (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("change" , h , options ...)
}
func (e *htmlTime ) OnClick (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("click" , h , options ...)
}
func (e *htmlTime ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTime ) OnCopy (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("copy" , h , options ...)
}
func (e *htmlTime ) OnCut (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("cut" , h , options ...)
}
func (e *htmlTime ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTime ) OnDrag (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("drag" , h , options ...)
}
func (e *htmlTime ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTime ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTime ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTime ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTime ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTime ) OnDrop (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("drop" , h , options ...)
}
func (e *htmlTime ) OnFocus (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("focus" , h , options ...)
}
func (e *htmlTime ) OnInput (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("input" , h , options ...)
}
func (e *htmlTime ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTime ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTime ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTime ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTime ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTime ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTime ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTime ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTime ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTime ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTime ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTime ) OnPaste (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("paste" , h , options ...)
}
func (e *htmlTime ) OnReset (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("reset" , h , options ...)
}
func (e *htmlTime ) OnScroll (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTime ) OnSearch (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("search" , h , options ...)
}
func (e *htmlTime ) OnSelect (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("select" , h , options ...)
}
func (e *htmlTime ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("submit" , h , options ...)
}
func (e *htmlTime ) OnWheel (h EventHandler , options ...EventOption ) HTMLTime {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTime ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTime ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTime ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTime ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTime ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTime ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTitle interface {
HTML
Body (elems ...UI ) HTMLTitle
Text (v any ) HTMLTitle
Textf (format string , v ...any ) HTMLTitle
AccessKey (format string , v ...any ) HTMLTitle
Aria (k string , v any ) HTMLTitle
Attr (n string , v any ) HTMLTitle
Class (v ...string ) HTMLTitle
ContentEditable (v bool ) HTMLTitle
DataSet (k string , v any ) HTMLTitle
DataSets (ds map [string ]any ) HTMLTitle
Dir (format string , v ...any ) HTMLTitle
Draggable (v bool ) HTMLTitle
Hidden (v bool ) HTMLTitle
ID (format string , v ...any ) HTMLTitle
Lang (format string , v ...any ) HTMLTitle
Role (format string , v ...any ) HTMLTitle
Spellcheck (v bool ) HTMLTitle
Style (k, format string , v ...any ) HTMLTitle
Styles (s map [string ]string ) HTMLTitle
TabIndex (v int ) HTMLTitle
Title (format string , v ...any ) HTMLTitle
On (event string , h EventHandler , options ...EventOption ) HTMLTitle
}
func Title () HTMLTitle {
e := &htmlTitle {
htmlElement : htmlElement {
tag : "title" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTitle struct {
htmlElement
}
func (e *htmlTitle ) Body (v ...UI ) HTMLTitle {
return e .setBody (FilterUIElems (v ...)).(*htmlTitle )
}
func (e *htmlTitle ) Text (v any ) HTMLTitle {
return e .Body (Text (v ))
}
func (e *htmlTitle ) Textf (format string , v ...any ) HTMLTitle {
return e .Body (Textf (format , v ...))
}
func (e *htmlTitle ) AccessKey (format string , v ...any ) HTMLTitle {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTitle ) Aria (k string , v any ) HTMLTitle {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTitle ) Attr (n string , v any ) HTMLTitle {
e .setAttr (n , v )
return e
}
func (e *htmlTitle ) Class (v ...string ) HTMLTitle {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTitle ) ContentEditable (v bool ) HTMLTitle {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTitle ) DataSet (k string , v any ) HTMLTitle {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTitle ) DataSets (ds map [string ]any ) HTMLTitle {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTitle ) Dir (format string , v ...any ) HTMLTitle {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTitle ) Draggable (v bool ) HTMLTitle {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTitle ) Hidden (v bool ) HTMLTitle {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTitle ) ID (format string , v ...any ) HTMLTitle {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTitle ) Lang (format string , v ...any ) HTMLTitle {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTitle ) Role (format string , v ...any ) HTMLTitle {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTitle ) Spellcheck (v bool ) HTMLTitle {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTitle ) Style (k , format string , v ...any ) HTMLTitle {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTitle ) Styles (s map [string ]string ) HTMLTitle {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTitle ) TabIndex (v int ) HTMLTitle {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTitle ) Title (format string , v ...any ) HTMLTitle {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTitle ) On (event string , h EventHandler , options ...EventOption ) HTMLTitle {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTitle ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTitle ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTitle ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTitle ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTitle ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTitle ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLTr interface {
HTML
Body (elems ...UI ) HTMLTr
Text (v any ) HTMLTr
Textf (format string , v ...any ) HTMLTr
AccessKey (format string , v ...any ) HTMLTr
Aria (k string , v any ) HTMLTr
Attr (n string , v any ) HTMLTr
Class (v ...string ) HTMLTr
ContentEditable (v bool ) HTMLTr
DataSet (k string , v any ) HTMLTr
DataSets (ds map [string ]any ) HTMLTr
Dir (format string , v ...any ) HTMLTr
Draggable (v bool ) HTMLTr
Hidden (v bool ) HTMLTr
ID (format string , v ...any ) HTMLTr
Lang (format string , v ...any ) HTMLTr
Role (format string , v ...any ) HTMLTr
Spellcheck (v bool ) HTMLTr
Style (k, format string , v ...any ) HTMLTr
Styles (s map [string ]string ) HTMLTr
TabIndex (v int ) HTMLTr
Title (format string , v ...any ) HTMLTr
On (event string , h EventHandler , options ...EventOption ) HTMLTr
OnBlur (h EventHandler , options ...EventOption ) HTMLTr
OnChange (h EventHandler , options ...EventOption ) HTMLTr
OnClick (h EventHandler , options ...EventOption ) HTMLTr
OnContextMenu (h EventHandler , options ...EventOption ) HTMLTr
OnCopy (h EventHandler , options ...EventOption ) HTMLTr
OnCut (h EventHandler , options ...EventOption ) HTMLTr
OnDblClick (h EventHandler , options ...EventOption ) HTMLTr
OnDrag (h EventHandler , options ...EventOption ) HTMLTr
OnDragEnd (h EventHandler , options ...EventOption ) HTMLTr
OnDragEnter (h EventHandler , options ...EventOption ) HTMLTr
OnDragLeave (h EventHandler , options ...EventOption ) HTMLTr
OnDragOver (h EventHandler , options ...EventOption ) HTMLTr
OnDragStart (h EventHandler , options ...EventOption ) HTMLTr
OnDrop (h EventHandler , options ...EventOption ) HTMLTr
OnFocus (h EventHandler , options ...EventOption ) HTMLTr
OnInput (h EventHandler , options ...EventOption ) HTMLTr
OnInvalid (h EventHandler , options ...EventOption ) HTMLTr
OnKeyDown (h EventHandler , options ...EventOption ) HTMLTr
OnKeyPress (h EventHandler , options ...EventOption ) HTMLTr
OnKeyUp (h EventHandler , options ...EventOption ) HTMLTr
OnMouseDown (h EventHandler , options ...EventOption ) HTMLTr
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTr
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTr
OnMouseMove (h EventHandler , options ...EventOption ) HTMLTr
OnMouseOut (h EventHandler , options ...EventOption ) HTMLTr
OnMouseOver (h EventHandler , options ...EventOption ) HTMLTr
OnMouseUp (h EventHandler , options ...EventOption ) HTMLTr
OnPaste (h EventHandler , options ...EventOption ) HTMLTr
OnReset (h EventHandler , options ...EventOption ) HTMLTr
OnScroll (h EventHandler , options ...EventOption ) HTMLTr
OnSearch (h EventHandler , options ...EventOption ) HTMLTr
OnSelect (h EventHandler , options ...EventOption ) HTMLTr
OnSubmit (h EventHandler , options ...EventOption ) HTMLTr
OnWheel (h EventHandler , options ...EventOption ) HTMLTr
}
func Tr () HTMLTr {
e := &htmlTr {
htmlElement : htmlElement {
tag : "tr" ,
isSelfClosing : false ,
},
}
return e
}
type htmlTr struct {
htmlElement
}
func (e *htmlTr ) Body (v ...UI ) HTMLTr {
return e .setBody (FilterUIElems (v ...)).(*htmlTr )
}
func (e *htmlTr ) Text (v any ) HTMLTr {
return e .Body (Text (v ))
}
func (e *htmlTr ) Textf (format string , v ...any ) HTMLTr {
return e .Body (Textf (format , v ...))
}
func (e *htmlTr ) AccessKey (format string , v ...any ) HTMLTr {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlTr ) Aria (k string , v any ) HTMLTr {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTr ) Attr (n string , v any ) HTMLTr {
e .setAttr (n , v )
return e
}
func (e *htmlTr ) Class (v ...string ) HTMLTr {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlTr ) ContentEditable (v bool ) HTMLTr {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlTr ) DataSet (k string , v any ) HTMLTr {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlTr ) DataSets (ds map [string ]any ) HTMLTr {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlTr ) Dir (format string , v ...any ) HTMLTr {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlTr ) Draggable (v bool ) HTMLTr {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlTr ) Hidden (v bool ) HTMLTr {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlTr ) ID (format string , v ...any ) HTMLTr {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlTr ) Lang (format string , v ...any ) HTMLTr {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlTr ) Role (format string , v ...any ) HTMLTr {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlTr ) Spellcheck (v bool ) HTMLTr {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlTr ) Style (k , format string , v ...any ) HTMLTr {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlTr ) Styles (s map [string ]string ) HTMLTr {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlTr ) TabIndex (v int ) HTMLTr {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlTr ) Title (format string , v ...any ) HTMLTr {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlTr ) On (event string , h EventHandler , options ...EventOption ) HTMLTr {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlTr ) OnBlur (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("blur" , h , options ...)
}
func (e *htmlTr ) OnChange (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("change" , h , options ...)
}
func (e *htmlTr ) OnClick (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("click" , h , options ...)
}
func (e *htmlTr ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlTr ) OnCopy (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("copy" , h , options ...)
}
func (e *htmlTr ) OnCut (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("cut" , h , options ...)
}
func (e *htmlTr ) OnDblClick (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlTr ) OnDrag (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("drag" , h , options ...)
}
func (e *htmlTr ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("dragend" , h , options ...)
}
func (e *htmlTr ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlTr ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlTr ) OnDragOver (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("dragover" , h , options ...)
}
func (e *htmlTr ) OnDragStart (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlTr ) OnDrop (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("drop" , h , options ...)
}
func (e *htmlTr ) OnFocus (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("focus" , h , options ...)
}
func (e *htmlTr ) OnInput (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("input" , h , options ...)
}
func (e *htmlTr ) OnInvalid (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("invalid" , h , options ...)
}
func (e *htmlTr ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("keydown" , h , options ...)
}
func (e *htmlTr ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("keypress" , h , options ...)
}
func (e *htmlTr ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("keyup" , h , options ...)
}
func (e *htmlTr ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlTr ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlTr ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlTr ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlTr ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlTr ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlTr ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlTr ) OnPaste (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("paste" , h , options ...)
}
func (e *htmlTr ) OnReset (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("reset" , h , options ...)
}
func (e *htmlTr ) OnScroll (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("scroll" , h , options ...)
}
func (e *htmlTr ) OnSearch (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("search" , h , options ...)
}
func (e *htmlTr ) OnSelect (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("select" , h , options ...)
}
func (e *htmlTr ) OnSubmit (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("submit" , h , options ...)
}
func (e *htmlTr ) OnWheel (h EventHandler , options ...EventOption ) HTMLTr {
return e .On ("wheel" , h , options ...)
}
func (e *htmlTr ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlTr ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlTr ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlTr ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlTr ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlTr ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLU interface {
HTML
Body (elems ...UI ) HTMLU
Text (v any ) HTMLU
Textf (format string , v ...any ) HTMLU
AccessKey (format string , v ...any ) HTMLU
Aria (k string , v any ) HTMLU
Attr (n string , v any ) HTMLU
Class (v ...string ) HTMLU
ContentEditable (v bool ) HTMLU
DataSet (k string , v any ) HTMLU
DataSets (ds map [string ]any ) HTMLU
Dir (format string , v ...any ) HTMLU
Draggable (v bool ) HTMLU
Hidden (v bool ) HTMLU
ID (format string , v ...any ) HTMLU
Lang (format string , v ...any ) HTMLU
Role (format string , v ...any ) HTMLU
Spellcheck (v bool ) HTMLU
Style (k, format string , v ...any ) HTMLU
Styles (s map [string ]string ) HTMLU
TabIndex (v int ) HTMLU
Title (format string , v ...any ) HTMLU
On (event string , h EventHandler , options ...EventOption ) HTMLU
OnBlur (h EventHandler , options ...EventOption ) HTMLU
OnChange (h EventHandler , options ...EventOption ) HTMLU
OnClick (h EventHandler , options ...EventOption ) HTMLU
OnContextMenu (h EventHandler , options ...EventOption ) HTMLU
OnCopy (h EventHandler , options ...EventOption ) HTMLU
OnCut (h EventHandler , options ...EventOption ) HTMLU
OnDblClick (h EventHandler , options ...EventOption ) HTMLU
OnDrag (h EventHandler , options ...EventOption ) HTMLU
OnDragEnd (h EventHandler , options ...EventOption ) HTMLU
OnDragEnter (h EventHandler , options ...EventOption ) HTMLU
OnDragLeave (h EventHandler , options ...EventOption ) HTMLU
OnDragOver (h EventHandler , options ...EventOption ) HTMLU
OnDragStart (h EventHandler , options ...EventOption ) HTMLU
OnDrop (h EventHandler , options ...EventOption ) HTMLU
OnFocus (h EventHandler , options ...EventOption ) HTMLU
OnInput (h EventHandler , options ...EventOption ) HTMLU
OnInvalid (h EventHandler , options ...EventOption ) HTMLU
OnKeyDown (h EventHandler , options ...EventOption ) HTMLU
OnKeyPress (h EventHandler , options ...EventOption ) HTMLU
OnKeyUp (h EventHandler , options ...EventOption ) HTMLU
OnMouseDown (h EventHandler , options ...EventOption ) HTMLU
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLU
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLU
OnMouseMove (h EventHandler , options ...EventOption ) HTMLU
OnMouseOut (h EventHandler , options ...EventOption ) HTMLU
OnMouseOver (h EventHandler , options ...EventOption ) HTMLU
OnMouseUp (h EventHandler , options ...EventOption ) HTMLU
OnPaste (h EventHandler , options ...EventOption ) HTMLU
OnReset (h EventHandler , options ...EventOption ) HTMLU
OnScroll (h EventHandler , options ...EventOption ) HTMLU
OnSearch (h EventHandler , options ...EventOption ) HTMLU
OnSelect (h EventHandler , options ...EventOption ) HTMLU
OnSubmit (h EventHandler , options ...EventOption ) HTMLU
OnWheel (h EventHandler , options ...EventOption ) HTMLU
}
func U () HTMLU {
e := &htmlU {
htmlElement : htmlElement {
tag : "u" ,
isSelfClosing : false ,
},
}
return e
}
type htmlU struct {
htmlElement
}
func (e *htmlU ) Body (v ...UI ) HTMLU {
return e .setBody (FilterUIElems (v ...)).(*htmlU )
}
func (e *htmlU ) Text (v any ) HTMLU {
return e .Body (Text (v ))
}
func (e *htmlU ) Textf (format string , v ...any ) HTMLU {
return e .Body (Textf (format , v ...))
}
func (e *htmlU ) AccessKey (format string , v ...any ) HTMLU {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlU ) Aria (k string , v any ) HTMLU {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlU ) Attr (n string , v any ) HTMLU {
e .setAttr (n , v )
return e
}
func (e *htmlU ) Class (v ...string ) HTMLU {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlU ) ContentEditable (v bool ) HTMLU {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlU ) DataSet (k string , v any ) HTMLU {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlU ) DataSets (ds map [string ]any ) HTMLU {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlU ) Dir (format string , v ...any ) HTMLU {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlU ) Draggable (v bool ) HTMLU {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlU ) Hidden (v bool ) HTMLU {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlU ) ID (format string , v ...any ) HTMLU {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlU ) Lang (format string , v ...any ) HTMLU {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlU ) Role (format string , v ...any ) HTMLU {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlU ) Spellcheck (v bool ) HTMLU {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlU ) Style (k , format string , v ...any ) HTMLU {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlU ) Styles (s map [string ]string ) HTMLU {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlU ) TabIndex (v int ) HTMLU {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlU ) Title (format string , v ...any ) HTMLU {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlU ) On (event string , h EventHandler , options ...EventOption ) HTMLU {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlU ) OnBlur (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("blur" , h , options ...)
}
func (e *htmlU ) OnChange (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("change" , h , options ...)
}
func (e *htmlU ) OnClick (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("click" , h , options ...)
}
func (e *htmlU ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlU ) OnCopy (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("copy" , h , options ...)
}
func (e *htmlU ) OnCut (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("cut" , h , options ...)
}
func (e *htmlU ) OnDblClick (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlU ) OnDrag (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("drag" , h , options ...)
}
func (e *htmlU ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("dragend" , h , options ...)
}
func (e *htmlU ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlU ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlU ) OnDragOver (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("dragover" , h , options ...)
}
func (e *htmlU ) OnDragStart (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlU ) OnDrop (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("drop" , h , options ...)
}
func (e *htmlU ) OnFocus (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("focus" , h , options ...)
}
func (e *htmlU ) OnInput (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("input" , h , options ...)
}
func (e *htmlU ) OnInvalid (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("invalid" , h , options ...)
}
func (e *htmlU ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("keydown" , h , options ...)
}
func (e *htmlU ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("keypress" , h , options ...)
}
func (e *htmlU ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("keyup" , h , options ...)
}
func (e *htmlU ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlU ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlU ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlU ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlU ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlU ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlU ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlU ) OnPaste (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("paste" , h , options ...)
}
func (e *htmlU ) OnReset (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("reset" , h , options ...)
}
func (e *htmlU ) OnScroll (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("scroll" , h , options ...)
}
func (e *htmlU ) OnSearch (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("search" , h , options ...)
}
func (e *htmlU ) OnSelect (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("select" , h , options ...)
}
func (e *htmlU ) OnSubmit (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("submit" , h , options ...)
}
func (e *htmlU ) OnWheel (h EventHandler , options ...EventOption ) HTMLU {
return e .On ("wheel" , h , options ...)
}
func (e *htmlU ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlU ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlU ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlU ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlU ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlU ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLUl interface {
HTML
Body (elems ...UI ) HTMLUl
Text (v any ) HTMLUl
Textf (format string , v ...any ) HTMLUl
AccessKey (format string , v ...any ) HTMLUl
Aria (k string , v any ) HTMLUl
Attr (n string , v any ) HTMLUl
Class (v ...string ) HTMLUl
ContentEditable (v bool ) HTMLUl
DataSet (k string , v any ) HTMLUl
DataSets (ds map [string ]any ) HTMLUl
Dir (format string , v ...any ) HTMLUl
Draggable (v bool ) HTMLUl
Hidden (v bool ) HTMLUl
ID (format string , v ...any ) HTMLUl
Lang (format string , v ...any ) HTMLUl
Role (format string , v ...any ) HTMLUl
Spellcheck (v bool ) HTMLUl
Style (k, format string , v ...any ) HTMLUl
Styles (s map [string ]string ) HTMLUl
TabIndex (v int ) HTMLUl
Title (format string , v ...any ) HTMLUl
On (event string , h EventHandler , options ...EventOption ) HTMLUl
OnBlur (h EventHandler , options ...EventOption ) HTMLUl
OnChange (h EventHandler , options ...EventOption ) HTMLUl
OnClick (h EventHandler , options ...EventOption ) HTMLUl
OnContextMenu (h EventHandler , options ...EventOption ) HTMLUl
OnCopy (h EventHandler , options ...EventOption ) HTMLUl
OnCut (h EventHandler , options ...EventOption ) HTMLUl
OnDblClick (h EventHandler , options ...EventOption ) HTMLUl
OnDrag (h EventHandler , options ...EventOption ) HTMLUl
OnDragEnd (h EventHandler , options ...EventOption ) HTMLUl
OnDragEnter (h EventHandler , options ...EventOption ) HTMLUl
OnDragLeave (h EventHandler , options ...EventOption ) HTMLUl
OnDragOver (h EventHandler , options ...EventOption ) HTMLUl
OnDragStart (h EventHandler , options ...EventOption ) HTMLUl
OnDrop (h EventHandler , options ...EventOption ) HTMLUl
OnFocus (h EventHandler , options ...EventOption ) HTMLUl
OnInput (h EventHandler , options ...EventOption ) HTMLUl
OnInvalid (h EventHandler , options ...EventOption ) HTMLUl
OnKeyDown (h EventHandler , options ...EventOption ) HTMLUl
OnKeyPress (h EventHandler , options ...EventOption ) HTMLUl
OnKeyUp (h EventHandler , options ...EventOption ) HTMLUl
OnMouseDown (h EventHandler , options ...EventOption ) HTMLUl
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLUl
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLUl
OnMouseMove (h EventHandler , options ...EventOption ) HTMLUl
OnMouseOut (h EventHandler , options ...EventOption ) HTMLUl
OnMouseOver (h EventHandler , options ...EventOption ) HTMLUl
OnMouseUp (h EventHandler , options ...EventOption ) HTMLUl
OnPaste (h EventHandler , options ...EventOption ) HTMLUl
OnReset (h EventHandler , options ...EventOption ) HTMLUl
OnScroll (h EventHandler , options ...EventOption ) HTMLUl
OnSearch (h EventHandler , options ...EventOption ) HTMLUl
OnSelect (h EventHandler , options ...EventOption ) HTMLUl
OnSubmit (h EventHandler , options ...EventOption ) HTMLUl
OnWheel (h EventHandler , options ...EventOption ) HTMLUl
}
func Ul () HTMLUl {
e := &htmlUl {
htmlElement : htmlElement {
tag : "ul" ,
isSelfClosing : false ,
},
}
return e
}
type htmlUl struct {
htmlElement
}
func (e *htmlUl ) Body (v ...UI ) HTMLUl {
return e .setBody (FilterUIElems (v ...)).(*htmlUl )
}
func (e *htmlUl ) Text (v any ) HTMLUl {
return e .Body (Text (v ))
}
func (e *htmlUl ) Textf (format string , v ...any ) HTMLUl {
return e .Body (Textf (format , v ...))
}
func (e *htmlUl ) AccessKey (format string , v ...any ) HTMLUl {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlUl ) Aria (k string , v any ) HTMLUl {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlUl ) Attr (n string , v any ) HTMLUl {
e .setAttr (n , v )
return e
}
func (e *htmlUl ) Class (v ...string ) HTMLUl {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlUl ) ContentEditable (v bool ) HTMLUl {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlUl ) DataSet (k string , v any ) HTMLUl {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlUl ) DataSets (ds map [string ]any ) HTMLUl {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlUl ) Dir (format string , v ...any ) HTMLUl {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlUl ) Draggable (v bool ) HTMLUl {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlUl ) Hidden (v bool ) HTMLUl {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlUl ) ID (format string , v ...any ) HTMLUl {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlUl ) Lang (format string , v ...any ) HTMLUl {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlUl ) Role (format string , v ...any ) HTMLUl {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlUl ) Spellcheck (v bool ) HTMLUl {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlUl ) Style (k , format string , v ...any ) HTMLUl {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlUl ) Styles (s map [string ]string ) HTMLUl {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlUl ) TabIndex (v int ) HTMLUl {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlUl ) Title (format string , v ...any ) HTMLUl {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlUl ) On (event string , h EventHandler , options ...EventOption ) HTMLUl {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlUl ) OnBlur (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("blur" , h , options ...)
}
func (e *htmlUl ) OnChange (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("change" , h , options ...)
}
func (e *htmlUl ) OnClick (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("click" , h , options ...)
}
func (e *htmlUl ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlUl ) OnCopy (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("copy" , h , options ...)
}
func (e *htmlUl ) OnCut (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("cut" , h , options ...)
}
func (e *htmlUl ) OnDblClick (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlUl ) OnDrag (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("drag" , h , options ...)
}
func (e *htmlUl ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("dragend" , h , options ...)
}
func (e *htmlUl ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlUl ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlUl ) OnDragOver (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("dragover" , h , options ...)
}
func (e *htmlUl ) OnDragStart (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlUl ) OnDrop (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("drop" , h , options ...)
}
func (e *htmlUl ) OnFocus (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("focus" , h , options ...)
}
func (e *htmlUl ) OnInput (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("input" , h , options ...)
}
func (e *htmlUl ) OnInvalid (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("invalid" , h , options ...)
}
func (e *htmlUl ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("keydown" , h , options ...)
}
func (e *htmlUl ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("keypress" , h , options ...)
}
func (e *htmlUl ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("keyup" , h , options ...)
}
func (e *htmlUl ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlUl ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlUl ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlUl ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlUl ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlUl ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlUl ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlUl ) OnPaste (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("paste" , h , options ...)
}
func (e *htmlUl ) OnReset (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("reset" , h , options ...)
}
func (e *htmlUl ) OnScroll (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("scroll" , h , options ...)
}
func (e *htmlUl ) OnSearch (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("search" , h , options ...)
}
func (e *htmlUl ) OnSelect (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("select" , h , options ...)
}
func (e *htmlUl ) OnSubmit (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("submit" , h , options ...)
}
func (e *htmlUl ) OnWheel (h EventHandler , options ...EventOption ) HTMLUl {
return e .On ("wheel" , h , options ...)
}
func (e *htmlUl ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlUl ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlUl ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlUl ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlUl ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlUl ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLVar interface {
HTML
Body (elems ...UI ) HTMLVar
Text (v any ) HTMLVar
Textf (format string , v ...any ) HTMLVar
AccessKey (format string , v ...any ) HTMLVar
Aria (k string , v any ) HTMLVar
Attr (n string , v any ) HTMLVar
Class (v ...string ) HTMLVar
ContentEditable (v bool ) HTMLVar
DataSet (k string , v any ) HTMLVar
DataSets (ds map [string ]any ) HTMLVar
Dir (format string , v ...any ) HTMLVar
Draggable (v bool ) HTMLVar
Hidden (v bool ) HTMLVar
ID (format string , v ...any ) HTMLVar
Lang (format string , v ...any ) HTMLVar
Role (format string , v ...any ) HTMLVar
Spellcheck (v bool ) HTMLVar
Style (k, format string , v ...any ) HTMLVar
Styles (s map [string ]string ) HTMLVar
TabIndex (v int ) HTMLVar
Title (format string , v ...any ) HTMLVar
On (event string , h EventHandler , options ...EventOption ) HTMLVar
OnBlur (h EventHandler , options ...EventOption ) HTMLVar
OnChange (h EventHandler , options ...EventOption ) HTMLVar
OnClick (h EventHandler , options ...EventOption ) HTMLVar
OnContextMenu (h EventHandler , options ...EventOption ) HTMLVar
OnCopy (h EventHandler , options ...EventOption ) HTMLVar
OnCut (h EventHandler , options ...EventOption ) HTMLVar
OnDblClick (h EventHandler , options ...EventOption ) HTMLVar
OnDrag (h EventHandler , options ...EventOption ) HTMLVar
OnDragEnd (h EventHandler , options ...EventOption ) HTMLVar
OnDragEnter (h EventHandler , options ...EventOption ) HTMLVar
OnDragLeave (h EventHandler , options ...EventOption ) HTMLVar
OnDragOver (h EventHandler , options ...EventOption ) HTMLVar
OnDragStart (h EventHandler , options ...EventOption ) HTMLVar
OnDrop (h EventHandler , options ...EventOption ) HTMLVar
OnFocus (h EventHandler , options ...EventOption ) HTMLVar
OnInput (h EventHandler , options ...EventOption ) HTMLVar
OnInvalid (h EventHandler , options ...EventOption ) HTMLVar
OnKeyDown (h EventHandler , options ...EventOption ) HTMLVar
OnKeyPress (h EventHandler , options ...EventOption ) HTMLVar
OnKeyUp (h EventHandler , options ...EventOption ) HTMLVar
OnMouseDown (h EventHandler , options ...EventOption ) HTMLVar
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLVar
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLVar
OnMouseMove (h EventHandler , options ...EventOption ) HTMLVar
OnMouseOut (h EventHandler , options ...EventOption ) HTMLVar
OnMouseOver (h EventHandler , options ...EventOption ) HTMLVar
OnMouseUp (h EventHandler , options ...EventOption ) HTMLVar
OnPaste (h EventHandler , options ...EventOption ) HTMLVar
OnReset (h EventHandler , options ...EventOption ) HTMLVar
OnScroll (h EventHandler , options ...EventOption ) HTMLVar
OnSearch (h EventHandler , options ...EventOption ) HTMLVar
OnSelect (h EventHandler , options ...EventOption ) HTMLVar
OnSubmit (h EventHandler , options ...EventOption ) HTMLVar
OnWheel (h EventHandler , options ...EventOption ) HTMLVar
}
func Var () HTMLVar {
e := &htmlVar {
htmlElement : htmlElement {
tag : "var" ,
isSelfClosing : false ,
},
}
return e
}
type htmlVar struct {
htmlElement
}
func (e *htmlVar ) Body (v ...UI ) HTMLVar {
return e .setBody (FilterUIElems (v ...)).(*htmlVar )
}
func (e *htmlVar ) Text (v any ) HTMLVar {
return e .Body (Text (v ))
}
func (e *htmlVar ) Textf (format string , v ...any ) HTMLVar {
return e .Body (Textf (format , v ...))
}
func (e *htmlVar ) AccessKey (format string , v ...any ) HTMLVar {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlVar ) Aria (k string , v any ) HTMLVar {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlVar ) Attr (n string , v any ) HTMLVar {
e .setAttr (n , v )
return e
}
func (e *htmlVar ) Class (v ...string ) HTMLVar {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlVar ) ContentEditable (v bool ) HTMLVar {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlVar ) DataSet (k string , v any ) HTMLVar {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlVar ) DataSets (ds map [string ]any ) HTMLVar {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlVar ) Dir (format string , v ...any ) HTMLVar {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlVar ) Draggable (v bool ) HTMLVar {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlVar ) Hidden (v bool ) HTMLVar {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlVar ) ID (format string , v ...any ) HTMLVar {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlVar ) Lang (format string , v ...any ) HTMLVar {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlVar ) Role (format string , v ...any ) HTMLVar {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlVar ) Spellcheck (v bool ) HTMLVar {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlVar ) Style (k , format string , v ...any ) HTMLVar {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlVar ) Styles (s map [string ]string ) HTMLVar {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlVar ) TabIndex (v int ) HTMLVar {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlVar ) Title (format string , v ...any ) HTMLVar {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlVar ) On (event string , h EventHandler , options ...EventOption ) HTMLVar {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlVar ) OnBlur (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("blur" , h , options ...)
}
func (e *htmlVar ) OnChange (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("change" , h , options ...)
}
func (e *htmlVar ) OnClick (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("click" , h , options ...)
}
func (e *htmlVar ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlVar ) OnCopy (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("copy" , h , options ...)
}
func (e *htmlVar ) OnCut (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("cut" , h , options ...)
}
func (e *htmlVar ) OnDblClick (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlVar ) OnDrag (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("drag" , h , options ...)
}
func (e *htmlVar ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("dragend" , h , options ...)
}
func (e *htmlVar ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlVar ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlVar ) OnDragOver (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("dragover" , h , options ...)
}
func (e *htmlVar ) OnDragStart (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlVar ) OnDrop (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("drop" , h , options ...)
}
func (e *htmlVar ) OnFocus (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("focus" , h , options ...)
}
func (e *htmlVar ) OnInput (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("input" , h , options ...)
}
func (e *htmlVar ) OnInvalid (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("invalid" , h , options ...)
}
func (e *htmlVar ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("keydown" , h , options ...)
}
func (e *htmlVar ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("keypress" , h , options ...)
}
func (e *htmlVar ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("keyup" , h , options ...)
}
func (e *htmlVar ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlVar ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlVar ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlVar ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlVar ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlVar ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlVar ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlVar ) OnPaste (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("paste" , h , options ...)
}
func (e *htmlVar ) OnReset (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("reset" , h , options ...)
}
func (e *htmlVar ) OnScroll (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("scroll" , h , options ...)
}
func (e *htmlVar ) OnSearch (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("search" , h , options ...)
}
func (e *htmlVar ) OnSelect (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("select" , h , options ...)
}
func (e *htmlVar ) OnSubmit (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("submit" , h , options ...)
}
func (e *htmlVar ) OnWheel (h EventHandler , options ...EventOption ) HTMLVar {
return e .On ("wheel" , h , options ...)
}
func (e *htmlVar ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlVar ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlVar ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlVar ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlVar ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlVar ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLVideo interface {
HTML
Body (elems ...UI ) HTMLVideo
Text (v any ) HTMLVideo
Textf (format string , v ...any ) HTMLVideo
AccessKey (format string , v ...any ) HTMLVideo
Aria (k string , v any ) HTMLVideo
Attr (n string , v any ) HTMLVideo
AutoPlay (v bool ) HTMLVideo
Class (v ...string ) HTMLVideo
ContentEditable (v bool ) HTMLVideo
Controls (v bool ) HTMLVideo
CrossOrigin (format string , v ...any ) HTMLVideo
DataSet (k string , v any ) HTMLVideo
DataSets (ds map [string ]any ) HTMLVideo
Dir (format string , v ...any ) HTMLVideo
Draggable (v bool ) HTMLVideo
Height (v int ) HTMLVideo
Hidden (v bool ) HTMLVideo
ID (format string , v ...any ) HTMLVideo
Lang (format string , v ...any ) HTMLVideo
Loop (v bool ) HTMLVideo
Muted (v bool ) HTMLVideo
Poster (format string , v ...any ) HTMLVideo
Preload (format string , v ...any ) HTMLVideo
Role (format string , v ...any ) HTMLVideo
Spellcheck (v bool ) HTMLVideo
Src (format string , v ...any ) HTMLVideo
Style (k, format string , v ...any ) HTMLVideo
Styles (s map [string ]string ) HTMLVideo
TabIndex (v int ) HTMLVideo
Title (format string , v ...any ) HTMLVideo
Width (v int ) HTMLVideo
On (event string , h EventHandler , options ...EventOption ) HTMLVideo
OnAbort (h EventHandler , options ...EventOption ) HTMLVideo
OnBlur (h EventHandler , options ...EventOption ) HTMLVideo
OnCanPlay (h EventHandler , options ...EventOption ) HTMLVideo
OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLVideo
OnChange (h EventHandler , options ...EventOption ) HTMLVideo
OnClick (h EventHandler , options ...EventOption ) HTMLVideo
OnContextMenu (h EventHandler , options ...EventOption ) HTMLVideo
OnCopy (h EventHandler , options ...EventOption ) HTMLVideo
OnCueChange (h EventHandler , options ...EventOption ) HTMLVideo
OnCut (h EventHandler , options ...EventOption ) HTMLVideo
OnDblClick (h EventHandler , options ...EventOption ) HTMLVideo
OnDrag (h EventHandler , options ...EventOption ) HTMLVideo
OnDragEnd (h EventHandler , options ...EventOption ) HTMLVideo
OnDragEnter (h EventHandler , options ...EventOption ) HTMLVideo
OnDragLeave (h EventHandler , options ...EventOption ) HTMLVideo
OnDragOver (h EventHandler , options ...EventOption ) HTMLVideo
OnDragStart (h EventHandler , options ...EventOption ) HTMLVideo
OnDrop (h EventHandler , options ...EventOption ) HTMLVideo
OnDurationChange (h EventHandler , options ...EventOption ) HTMLVideo
OnEmptied (h EventHandler , options ...EventOption ) HTMLVideo
OnEnded (h EventHandler , options ...EventOption ) HTMLVideo
OnError (h EventHandler , options ...EventOption ) HTMLVideo
OnFocus (h EventHandler , options ...EventOption ) HTMLVideo
OnInput (h EventHandler , options ...EventOption ) HTMLVideo
OnInvalid (h EventHandler , options ...EventOption ) HTMLVideo
OnKeyDown (h EventHandler , options ...EventOption ) HTMLVideo
OnKeyPress (h EventHandler , options ...EventOption ) HTMLVideo
OnKeyUp (h EventHandler , options ...EventOption ) HTMLVideo
OnLoadStart (h EventHandler , options ...EventOption ) HTMLVideo
OnLoadedData (h EventHandler , options ...EventOption ) HTMLVideo
OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLVideo
OnMouseDown (h EventHandler , options ...EventOption ) HTMLVideo
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLVideo
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLVideo
OnMouseMove (h EventHandler , options ...EventOption ) HTMLVideo
OnMouseOut (h EventHandler , options ...EventOption ) HTMLVideo
OnMouseOver (h EventHandler , options ...EventOption ) HTMLVideo
OnMouseUp (h EventHandler , options ...EventOption ) HTMLVideo
OnPaste (h EventHandler , options ...EventOption ) HTMLVideo
OnPause (h EventHandler , options ...EventOption ) HTMLVideo
OnPlay (h EventHandler , options ...EventOption ) HTMLVideo
OnPlaying (h EventHandler , options ...EventOption ) HTMLVideo
OnProgress (h EventHandler , options ...EventOption ) HTMLVideo
OnRateChange (h EventHandler , options ...EventOption ) HTMLVideo
OnReset (h EventHandler , options ...EventOption ) HTMLVideo
OnScroll (h EventHandler , options ...EventOption ) HTMLVideo
OnSearch (h EventHandler , options ...EventOption ) HTMLVideo
OnSeeked (h EventHandler , options ...EventOption ) HTMLVideo
OnSeeking (h EventHandler , options ...EventOption ) HTMLVideo
OnSelect (h EventHandler , options ...EventOption ) HTMLVideo
OnStalled (h EventHandler , options ...EventOption ) HTMLVideo
OnSubmit (h EventHandler , options ...EventOption ) HTMLVideo
OnSuspend (h EventHandler , options ...EventOption ) HTMLVideo
OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLVideo
OnVolumeChange (h EventHandler , options ...EventOption ) HTMLVideo
OnWaiting (h EventHandler , options ...EventOption ) HTMLVideo
OnWheel (h EventHandler , options ...EventOption ) HTMLVideo
}
func Video () HTMLVideo {
e := &htmlVideo {
htmlElement : htmlElement {
tag : "video" ,
isSelfClosing : false ,
},
}
return e
}
type htmlVideo struct {
htmlElement
}
func (e *htmlVideo ) Body (v ...UI ) HTMLVideo {
return e .setBody (FilterUIElems (v ...)).(*htmlVideo )
}
func (e *htmlVideo ) Text (v any ) HTMLVideo {
return e .Body (Text (v ))
}
func (e *htmlVideo ) Textf (format string , v ...any ) HTMLVideo {
return e .Body (Textf (format , v ...))
}
func (e *htmlVideo ) AccessKey (format string , v ...any ) HTMLVideo {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Aria (k string , v any ) HTMLVideo {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlVideo ) Attr (n string , v any ) HTMLVideo {
e .setAttr (n , v )
return e
}
func (e *htmlVideo ) AutoPlay (v bool ) HTMLVideo {
e .setAttr ("autoplay" , v )
return e
}
func (e *htmlVideo ) Class (v ...string ) HTMLVideo {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlVideo ) ContentEditable (v bool ) HTMLVideo {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlVideo ) Controls (v bool ) HTMLVideo {
e .setAttr ("controls" , v )
return e
}
func (e *htmlVideo ) CrossOrigin (format string , v ...any ) HTMLVideo {
e .setAttr ("crossorigin" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) DataSet (k string , v any ) HTMLVideo {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlVideo ) DataSets (ds map [string ]any ) HTMLVideo {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlVideo ) Dir (format string , v ...any ) HTMLVideo {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Draggable (v bool ) HTMLVideo {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlVideo ) Height (v int ) HTMLVideo {
e .setAttr ("height" , v )
return e
}
func (e *htmlVideo ) Hidden (v bool ) HTMLVideo {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlVideo ) ID (format string , v ...any ) HTMLVideo {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Lang (format string , v ...any ) HTMLVideo {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Loop (v bool ) HTMLVideo {
e .setAttr ("loop" , v )
return e
}
func (e *htmlVideo ) Muted (v bool ) HTMLVideo {
e .setAttr ("muted" , v )
return e
}
func (e *htmlVideo ) Poster (format string , v ...any ) HTMLVideo {
e .setAttr ("poster" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Preload (format string , v ...any ) HTMLVideo {
e .setAttr ("preload" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Role (format string , v ...any ) HTMLVideo {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Spellcheck (v bool ) HTMLVideo {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlVideo ) Src (format string , v ...any ) HTMLVideo {
e .setAttr ("src" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Style (k , format string , v ...any ) HTMLVideo {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Styles (s map [string ]string ) HTMLVideo {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlVideo ) TabIndex (v int ) HTMLVideo {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlVideo ) Title (format string , v ...any ) HTMLVideo {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlVideo ) Width (v int ) HTMLVideo {
e .setAttr ("width" , v )
return e
}
func (e *htmlVideo ) On (event string , h EventHandler , options ...EventOption ) HTMLVideo {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlVideo ) OnAbort (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("abort" , h , options ...)
}
func (e *htmlVideo ) OnBlur (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("blur" , h , options ...)
}
func (e *htmlVideo ) OnCanPlay (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("canplay" , h , options ...)
}
func (e *htmlVideo ) OnCanPlayThrough (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("canplaythrough" , h , options ...)
}
func (e *htmlVideo ) OnChange (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("change" , h , options ...)
}
func (e *htmlVideo ) OnClick (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("click" , h , options ...)
}
func (e *htmlVideo ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlVideo ) OnCopy (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("copy" , h , options ...)
}
func (e *htmlVideo ) OnCueChange (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("cuechange" , h , options ...)
}
func (e *htmlVideo ) OnCut (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("cut" , h , options ...)
}
func (e *htmlVideo ) OnDblClick (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlVideo ) OnDrag (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("drag" , h , options ...)
}
func (e *htmlVideo ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("dragend" , h , options ...)
}
func (e *htmlVideo ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlVideo ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlVideo ) OnDragOver (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("dragover" , h , options ...)
}
func (e *htmlVideo ) OnDragStart (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlVideo ) OnDrop (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("drop" , h , options ...)
}
func (e *htmlVideo ) OnDurationChange (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("durationchange" , h , options ...)
}
func (e *htmlVideo ) OnEmptied (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("emptied" , h , options ...)
}
func (e *htmlVideo ) OnEnded (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("ended" , h , options ...)
}
func (e *htmlVideo ) OnError (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("error" , h , options ...)
}
func (e *htmlVideo ) OnFocus (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("focus" , h , options ...)
}
func (e *htmlVideo ) OnInput (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("input" , h , options ...)
}
func (e *htmlVideo ) OnInvalid (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("invalid" , h , options ...)
}
func (e *htmlVideo ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("keydown" , h , options ...)
}
func (e *htmlVideo ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("keypress" , h , options ...)
}
func (e *htmlVideo ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("keyup" , h , options ...)
}
func (e *htmlVideo ) OnLoadStart (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("loadstart" , h , options ...)
}
func (e *htmlVideo ) OnLoadedData (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("loadeddata" , h , options ...)
}
func (e *htmlVideo ) OnLoadedMetaData (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("loadedmetadata" , h , options ...)
}
func (e *htmlVideo ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlVideo ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlVideo ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlVideo ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlVideo ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlVideo ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlVideo ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlVideo ) OnPaste (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("paste" , h , options ...)
}
func (e *htmlVideo ) OnPause (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("pause" , h , options ...)
}
func (e *htmlVideo ) OnPlay (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("play" , h , options ...)
}
func (e *htmlVideo ) OnPlaying (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("playing" , h , options ...)
}
func (e *htmlVideo ) OnProgress (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("progress" , h , options ...)
}
func (e *htmlVideo ) OnRateChange (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("ratechange" , h , options ...)
}
func (e *htmlVideo ) OnReset (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("reset" , h , options ...)
}
func (e *htmlVideo ) OnScroll (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("scroll" , h , options ...)
}
func (e *htmlVideo ) OnSearch (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("search" , h , options ...)
}
func (e *htmlVideo ) OnSeeked (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("seeked" , h , options ...)
}
func (e *htmlVideo ) OnSeeking (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("seeking" , h , options ...)
}
func (e *htmlVideo ) OnSelect (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("select" , h , options ...)
}
func (e *htmlVideo ) OnStalled (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("stalled" , h , options ...)
}
func (e *htmlVideo ) OnSubmit (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("submit" , h , options ...)
}
func (e *htmlVideo ) OnSuspend (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("suspend" , h , options ...)
}
func (e *htmlVideo ) OnTimeUpdate (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("timeupdate" , h , options ...)
}
func (e *htmlVideo ) OnVolumeChange (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("volumechange" , h , options ...)
}
func (e *htmlVideo ) OnWaiting (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("waiting" , h , options ...)
}
func (e *htmlVideo ) OnWheel (h EventHandler , options ...EventOption ) HTMLVideo {
return e .On ("wheel" , h , options ...)
}
func (e *htmlVideo ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlVideo ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlVideo ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlVideo ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlVideo ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlVideo ) setBody (v []UI ) HTML {
e .children = v
return e
}
type HTMLWbr interface {
HTML
Body (elems ...UI ) HTMLWbr
Text (v any ) HTMLWbr
Textf (format string , v ...any ) HTMLWbr
AccessKey (format string , v ...any ) HTMLWbr
Aria (k string , v any ) HTMLWbr
Attr (n string , v any ) HTMLWbr
Class (v ...string ) HTMLWbr
ContentEditable (v bool ) HTMLWbr
DataSet (k string , v any ) HTMLWbr
DataSets (ds map [string ]any ) HTMLWbr
Dir (format string , v ...any ) HTMLWbr
Draggable (v bool ) HTMLWbr
Hidden (v bool ) HTMLWbr
ID (format string , v ...any ) HTMLWbr
Lang (format string , v ...any ) HTMLWbr
Role (format string , v ...any ) HTMLWbr
Spellcheck (v bool ) HTMLWbr
Style (k, format string , v ...any ) HTMLWbr
Styles (s map [string ]string ) HTMLWbr
TabIndex (v int ) HTMLWbr
Title (format string , v ...any ) HTMLWbr
On (event string , h EventHandler , options ...EventOption ) HTMLWbr
OnBlur (h EventHandler , options ...EventOption ) HTMLWbr
OnChange (h EventHandler , options ...EventOption ) HTMLWbr
OnClick (h EventHandler , options ...EventOption ) HTMLWbr
OnContextMenu (h EventHandler , options ...EventOption ) HTMLWbr
OnCopy (h EventHandler , options ...EventOption ) HTMLWbr
OnCut (h EventHandler , options ...EventOption ) HTMLWbr
OnDblClick (h EventHandler , options ...EventOption ) HTMLWbr
OnDrag (h EventHandler , options ...EventOption ) HTMLWbr
OnDragEnd (h EventHandler , options ...EventOption ) HTMLWbr
OnDragEnter (h EventHandler , options ...EventOption ) HTMLWbr
OnDragLeave (h EventHandler , options ...EventOption ) HTMLWbr
OnDragOver (h EventHandler , options ...EventOption ) HTMLWbr
OnDragStart (h EventHandler , options ...EventOption ) HTMLWbr
OnDrop (h EventHandler , options ...EventOption ) HTMLWbr
OnFocus (h EventHandler , options ...EventOption ) HTMLWbr
OnInput (h EventHandler , options ...EventOption ) HTMLWbr
OnInvalid (h EventHandler , options ...EventOption ) HTMLWbr
OnKeyDown (h EventHandler , options ...EventOption ) HTMLWbr
OnKeyPress (h EventHandler , options ...EventOption ) HTMLWbr
OnKeyUp (h EventHandler , options ...EventOption ) HTMLWbr
OnMouseDown (h EventHandler , options ...EventOption ) HTMLWbr
OnMouseEnter (h EventHandler , options ...EventOption ) HTMLWbr
OnMouseLeave (h EventHandler , options ...EventOption ) HTMLWbr
OnMouseMove (h EventHandler , options ...EventOption ) HTMLWbr
OnMouseOut (h EventHandler , options ...EventOption ) HTMLWbr
OnMouseOver (h EventHandler , options ...EventOption ) HTMLWbr
OnMouseUp (h EventHandler , options ...EventOption ) HTMLWbr
OnPaste (h EventHandler , options ...EventOption ) HTMLWbr
OnReset (h EventHandler , options ...EventOption ) HTMLWbr
OnScroll (h EventHandler , options ...EventOption ) HTMLWbr
OnSearch (h EventHandler , options ...EventOption ) HTMLWbr
OnSelect (h EventHandler , options ...EventOption ) HTMLWbr
OnSubmit (h EventHandler , options ...EventOption ) HTMLWbr
OnWheel (h EventHandler , options ...EventOption ) HTMLWbr
}
func Wbr () HTMLWbr {
e := &htmlWbr {
htmlElement : htmlElement {
tag : "wbr" ,
isSelfClosing : false ,
},
}
return e
}
type htmlWbr struct {
htmlElement
}
func (e *htmlWbr ) Body (v ...UI ) HTMLWbr {
return e .setBody (FilterUIElems (v ...)).(*htmlWbr )
}
func (e *htmlWbr ) Text (v any ) HTMLWbr {
return e .Body (Text (v ))
}
func (e *htmlWbr ) Textf (format string , v ...any ) HTMLWbr {
return e .Body (Textf (format , v ...))
}
func (e *htmlWbr ) AccessKey (format string , v ...any ) HTMLWbr {
e .setAttr ("accesskey" , FormatString (format , v ...))
return e
}
func (e *htmlWbr ) Aria (k string , v any ) HTMLWbr {
e .setAttr ("aria-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlWbr ) Attr (n string , v any ) HTMLWbr {
e .setAttr (n , v )
return e
}
func (e *htmlWbr ) Class (v ...string ) HTMLWbr {
e .setAttr ("class" , strings .Join (v , " " ))
return e
}
func (e *htmlWbr ) ContentEditable (v bool ) HTMLWbr {
e .setAttr ("contenteditable" , v )
return e
}
func (e *htmlWbr ) DataSet (k string , v any ) HTMLWbr {
e .setAttr ("data-" +k , FormatString ("%v" , v ))
return e
}
func (e *htmlWbr ) DataSets (ds map [string ]any ) HTMLWbr {
for k , v := range ds {
e .DataSet (k , v )
}
return e
}
func (e *htmlWbr ) Dir (format string , v ...any ) HTMLWbr {
e .setAttr ("dir" , FormatString (format , v ...))
return e
}
func (e *htmlWbr ) Draggable (v bool ) HTMLWbr {
e .setAttr ("draggable" , v )
return e
}
func (e *htmlWbr ) Hidden (v bool ) HTMLWbr {
e .setAttr ("hidden" , v )
return e
}
func (e *htmlWbr ) ID (format string , v ...any ) HTMLWbr {
e .setAttr ("id" , FormatString (format , v ...))
return e
}
func (e *htmlWbr ) Lang (format string , v ...any ) HTMLWbr {
e .setAttr ("lang" , FormatString (format , v ...))
return e
}
func (e *htmlWbr ) Role (format string , v ...any ) HTMLWbr {
e .setAttr ("role" , FormatString (format , v ...))
return e
}
func (e *htmlWbr ) Spellcheck (v bool ) HTMLWbr {
s := "false"
if v {
s = "true"
}
e .setAttr ("spellcheck" , s )
return e
}
func (e *htmlWbr ) Style (k , format string , v ...any ) HTMLWbr {
e .setAttr ("style" , k +":" +FormatString (format , v ...))
return e
}
func (e *htmlWbr ) Styles (s map [string ]string ) HTMLWbr {
for k , v := range s {
e .Style (k , v )
}
return e
}
func (e *htmlWbr ) TabIndex (v int ) HTMLWbr {
e .setAttr ("tabindex" , v )
return e
}
func (e *htmlWbr ) Title (format string , v ...any ) HTMLWbr {
e .setAttr ("title" , FormatString (format , v ...))
return e
}
func (e *htmlWbr ) On (event string , h EventHandler , options ...EventOption ) HTMLWbr {
e .setEventHandler (event , h , options ...)
return e
}
func (e *htmlWbr ) OnBlur (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("blur" , h , options ...)
}
func (e *htmlWbr ) OnChange (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("change" , h , options ...)
}
func (e *htmlWbr ) OnClick (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("click" , h , options ...)
}
func (e *htmlWbr ) OnContextMenu (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("contextmenu" , h , options ...)
}
func (e *htmlWbr ) OnCopy (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("copy" , h , options ...)
}
func (e *htmlWbr ) OnCut (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("cut" , h , options ...)
}
func (e *htmlWbr ) OnDblClick (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("dblclick" , h , options ...)
}
func (e *htmlWbr ) OnDrag (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("drag" , h , options ...)
}
func (e *htmlWbr ) OnDragEnd (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("dragend" , h , options ...)
}
func (e *htmlWbr ) OnDragEnter (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("dragenter" , h , options ...)
}
func (e *htmlWbr ) OnDragLeave (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("dragleave" , h , options ...)
}
func (e *htmlWbr ) OnDragOver (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("dragover" , h , options ...)
}
func (e *htmlWbr ) OnDragStart (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("dragstart" , h , options ...)
}
func (e *htmlWbr ) OnDrop (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("drop" , h , options ...)
}
func (e *htmlWbr ) OnFocus (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("focus" , h , options ...)
}
func (e *htmlWbr ) OnInput (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("input" , h , options ...)
}
func (e *htmlWbr ) OnInvalid (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("invalid" , h , options ...)
}
func (e *htmlWbr ) OnKeyDown (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("keydown" , h , options ...)
}
func (e *htmlWbr ) OnKeyPress (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("keypress" , h , options ...)
}
func (e *htmlWbr ) OnKeyUp (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("keyup" , h , options ...)
}
func (e *htmlWbr ) OnMouseDown (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("mousedown" , h , options ...)
}
func (e *htmlWbr ) OnMouseEnter (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("mouseenter" , h , options ...)
}
func (e *htmlWbr ) OnMouseLeave (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("mouseleave" , h , options ...)
}
func (e *htmlWbr ) OnMouseMove (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("mousemove" , h , options ...)
}
func (e *htmlWbr ) OnMouseOut (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("mouseout" , h , options ...)
}
func (e *htmlWbr ) OnMouseOver (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("mouseover" , h , options ...)
}
func (e *htmlWbr ) OnMouseUp (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("mouseup" , h , options ...)
}
func (e *htmlWbr ) OnPaste (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("paste" , h , options ...)
}
func (e *htmlWbr ) OnReset (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("reset" , h , options ...)
}
func (e *htmlWbr ) OnScroll (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("scroll" , h , options ...)
}
func (e *htmlWbr ) OnSearch (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("search" , h , options ...)
}
func (e *htmlWbr ) OnSelect (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("select" , h , options ...)
}
func (e *htmlWbr ) OnSubmit (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("submit" , h , options ...)
}
func (e *htmlWbr ) OnWheel (h EventHandler , options ...EventOption ) HTMLWbr {
return e .On ("wheel" , h , options ...)
}
func (e *htmlWbr ) setDepth (v uint ) UI {
e .treeDepth = v
return e
}
func (e *htmlWbr ) setJSElement (v Value ) HTML {
e .jsElement = v
return e
}
func (e *htmlWbr ) setAttrs (v attributes ) HTML {
e .attributes = v
return e
}
func (e *htmlWbr ) setEvents (v eventHandlers ) HTML {
e .eventHandlers = v
return e
}
func (e *htmlWbr ) setParent (v UI ) UI {
e .parentElement = v
return e
}
func (e *htmlWbr ) setBody (v []UI ) HTML {
e .children = v
return e
}
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .