Documentation
¶
Index ¶
- Constants
- type Element
- type EventHandler
- type Tag
- func (o *Tag) AddChild(child Element) *Tag
- func (o *Tag) AddOnclickHandler(handler EventHandler) *Tag
- func (o *Tag) AppendAccesskey(accesskey string) *Tag
- func (o *Tag) AppendClass(class string) *Tag
- func (o *Tag) AppendItemprop(itemprop string) *Tag
- func (o *Tag) AppendItemref(itemref string) *Tag
- func (o *Tag) AppendItemtype(itemtype string) *Tag
- func (o *Tag) PrependAccesskey(accesskey string) *Tag
- func (o *Tag) PrependClass(class string) *Tag
- func (o *Tag) PrependItemprop(itemprop string) *Tag
- func (o *Tag) PrependItemref(itemref string) *Tag
- func (o *Tag) PrependItemtype(itemtype string) *Tag
- func (tag *Tag) Render(buffer io.Writer)
- func (o *Tag) WithAutocapitalize(autocapitalize string) *Tag
- func (o *Tag) WithAutofocus(autofocus bool) *Tag
- func (o *Tag) WithContenteditable(contenteditable string) *Tag
- func (o *Tag) WithDir(dir string) *Tag
- func (o *Tag) WithDraggable(draggable string) *Tag
- func (o *Tag) WithEnterkeyhint(enterkeyhint string) *Tag
- func (o *Tag) WithHidden(hidden bool) *Tag
- func (o *Tag) WithId(id string) *Tag
- func (o *Tag) WithInputmode(inputmode string) *Tag
- func (o *Tag) WithIs(is string) *Tag
- func (o *Tag) WithItemid(itemid string) *Tag
- func (o *Tag) WithItemscope(itemscope bool) *Tag
- func (o *Tag) WithLang(lang string) *Tag
- func (o *Tag) WithNonce(nonce string) *Tag
- func (o *Tag) WithRole(role string) *Tag
- func (o *Tag) WithSlot(slot string) *Tag
- func (o *Tag) WithSpellcheck(spellcheck string) *Tag
- func (o *Tag) WithStyle(style string) *Tag
- func (o *Tag) WithTabindex(tabindex int) *Tag
- func (o *Tag) WithTitle(title string) *Tag
- type TextNode
Constants ¶
View Source
const ( AutocapitalizeCharacters = "characters" AutocapitalizeNone = "none" AutocapitalizeOff = "off" AutocapitalizeOn = "on" AutocapitalizeSentences = "sentences" AutocapitalizeWords = "words" )
View Source
const ( ContenteditableTrue = "true" ContenteditableFalse = "false" )
View Source
const ( DirAuto = "auto" DirLtr = "ltr" DirRtl = "rtl" )
View Source
const ( DraggableTrue = "true" DraggableFalse = "false" )
View Source
const ( EnterkeyhintDone = "done" EnterkeyhintEnter = "enter" EnterkeyhintGo = "go" EnterkeyhintNext = "next" EnterkeyhintPrevious = "previous" EnterkeyhintSearch = "search" EnterkeyhintSend = "send" )
View Source
const ( InputmodeDecimal = "decimal" InputmodeEmail = "email" InputmodeNone = "none" InputmodeNumeric = "numeric" InputmodeSearch = "search" InputmodeTel = "tel" InputmodeText = "text" InputmodeUrl = "url" )
View Source
const ( RoleAlert = "alert" RoleAlertdialog = "alertdialog" RoleApplication = "application" RoleArticle = "article" RoleAssociationlist = "associationlist" RoleAssociationlistitemkey = "associationlistitemkey" RoleAssociationlistitemvalue = "associationlistitemvalue" RoleBanner = "banner" RoleBlockquote = "blockquote" RoleCaption = "caption" RoleCell = "cell" RoleColumnheader = "columnheader" RoleCommand = "command" RoleComment = "comment" RoleComplementary = "complementary" RoleComposite = "composite" RoleContentinfo = "contentinfo" RoleDefinition = "definition" RoleDeletion = "deletion" RoleDialog = "dialog" RoleDirectory = "directory" RoleDocument = "document" RoleEmphasis = "emphasis" RoleFeed = "feed" RoleFigure = "figure" RoleForm = "form" RoleGeneric = "generic" RoleGridcell = "gridcell" RoleGroup = "group" RoleHeading = "heading" RoleImg = "img" RoleInput = "input" RoleInsertion = "insertion" RoleLabel = "label" RoleLegend = "legend" RoleList = "list" RoleListitem = "listitem" RoleLog = "log" RoleMain = "main" RoleMark = "mark" RoleMarquee = "marquee" RoleMath = "math" RoleMeter = "meter" RoleNone = "none" RoleNote = "note" RoleParagraph = "paragraph" RolePresentation = "presentation" RoleProgressbar = "progressbar" RoleRegion = "region" RoleRow = "row" RoleRowgroup = "rowgroup" RoleRowheader = "rowheader" RoleScrollbar = "scrollbar" RoleSearch = "search" RoleSeparator = "separator" RoleStatus = "status" RoleStrong = "strong" RoleSubscript = "subscript" RoleSuggestion = "suggestion" RoleSuperscript = "superscript" RoleTab = "tab" RoleTable = "table" RoleTerm = "term" RoleTime = "time" RoleTimer = "timer" RoleToolbar = "toolbar" RoleTooltip = "tooltip" )
View Source
const ( SpellcheckTrue = "true" SpellcheckFalse = "false" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler func()
type Tag ¶
type Tag struct { Name string InnerHTML string Attributes map[string]string BoolAttributes map[string]bool IntAttributes map[string]int SSLAttributes map[string][]string Children []Element Handlers map[string][]EventHandler OmitEndTag bool }
func (*Tag) AddOnclickHandler ¶
func (o *Tag) AddOnclickHandler(handler EventHandler) *Tag
func (*Tag) AppendAccesskey ¶
func (*Tag) AppendClass ¶
func (*Tag) AppendItemprop ¶
func (*Tag) AppendItemref ¶
func (*Tag) AppendItemtype ¶
func (*Tag) PrependAccesskey ¶
func (*Tag) PrependClass ¶
func (*Tag) PrependItemprop ¶
func (*Tag) PrependItemref ¶
func (*Tag) PrependItemtype ¶
func (*Tag) WithAutocapitalize ¶
func (*Tag) WithAutofocus ¶
func (*Tag) WithContenteditable ¶
func (*Tag) WithDraggable ¶
func (*Tag) WithEnterkeyhint ¶
func (*Tag) WithHidden ¶
func (*Tag) WithInputmode ¶
func (*Tag) WithItemid ¶
func (*Tag) WithItemscope ¶
func (*Tag) WithSpellcheck ¶
func (*Tag) WithTabindex ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.