element

package
v0.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: MIT Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(children ...IsElement) *anchor

func Abbr

func Abbr(child *HtmlElement) *abbreviation

func Address

func Address(child ...IsElement) *address

func Area

func Area() *area

func Article

func Article(children ...IsElement) *article

func Aside

func Aside(child ...IsElement) *aside

func Audio

func Audio(child ...IsElement) *audio

func B

func B(child *HtmlElement) *bold

func Base

func Base() *base

func Bdi

func Bdi(child *HtmlElement) *bdi

func Bdo

func Bdo() *bdo

func Blockquote

func Blockquote(child ...IsElement) *blockquote

func Body

func Body(children ...IsElement) *body

func Br

func Br() *br

func Button

func Button(children ...IsElement) *button

func Canvas

func Canvas(message string) *canvas

func Caption

func Caption(child *HtmlElement) *caption

func Cite

func Cite(child *HtmlElement) *cite

func Code

func Code(child *HtmlElement) *code

func Col

func Col(child *HtmlElement) *col

func ColGroup

func ColGroup(child *HtmlElement) *colgroup

func Data

func Data(child *HtmlElement) *data

func DataList

func DataList(child *HtmlElement) *datalist

func Dd

func Dd(child *HtmlElement) *dd

func Del

func Del(child *HtmlElement) *del

func Details

func Details(children ...IsElement) *details

func Dfn

func Dfn(child *HtmlElement) *dfn

func Dialog

func Dialog(child *HtmlElement) *dialog

func Div

func Div(children ...IsElement) *div

func Dl

func Dl(children ...IsElement) *dl

func Dt

func Dt(children IsElement) *dt

func Em

func Em(children IsElement) *em

func FieldSet

func FieldSet(children ...IsElement) *fieldset

func FigCaption

func FigCaption(children IsElement) *figcaption

func Figure

func Figure(children ...IsElement) *figure
func Footer(children ...IsElement) *footer

func Form

func Form(children ...IsForm) *form

func H1

func H1(children ...IsElement) *heading

func H2

func H2(children ...IsElement) *heading

func H3

func H3(children ...IsElement) *heading

func H4

func H4(children ...IsElement) *heading

func H5

func H5(children ...IsElement) *heading

func H6

func H6(children ...IsElement) *heading

func HGroup

func HGroup(children ...IsElement) *hgroup
func Head(children ...IsHeadElement) *head
func Header(children ...IsElement) *header

func Hr

func Hr() *hr

func Html

func Html(children ...IsElement) *htmlTag

func I

func I(children IsElement) *i

func Iframe

func Iframe() *iframe

func Img

func Img(children IsElement) *img

func Input

func Input() *input

func Ins

func Ins(children IsElement) *ins

func Kbd

func Kbd(children IsElement) *kbd

func Label

func Label(children IsElement) *label

func Legend

func Legend(children IsElement) *legend

func Li

func Li(children ...IsElement) *li
func Link() *link

func Main

func Main(children ...IsElement) *main

func Map

func Map(children ...IsElement) *mapElement

func Mark

func Mark(children IsElement) *mark
func Menu(children IsElement) *menu

func Meta

func Meta() *meta

func Meter

func Meter(children IsElement) *meter
func Nav(children ...IsElement) *nav

func NoScript

func NoScript(children IsElement) *noscript

func Object

func Object(children IsElement) *object

func Ol

func Ol(children ...IsElement) *ol

func OptGroup

func OptGroup(children ...IsElement) *optgroup

func Option

func Option(children ...IsElement) *option

func Output

func Output(children ...IsElement) *output

func P

func P(children ...IsElement) *p

func Param

func Param() *param

func Picture

func Picture(children ...IsElement) *picture

func Pre

func Pre(children IsElement) *pre

func Progress

func Progress(children IsElement) *progress

func Q

func Q(children IsElement) *q

func Rp

func Rp(children IsElement) *rp

func Rt

func Rt(children IsElement) *rt

func Ruby

func Ruby(children ...IsElement) *ruby

func S

func S(children IsElement) *s

func Samp

func Samp(children ...IsElement) *samp

func Script

func Script() *script
func Search(children ...IsElement) *search

func Section

func Section(children ...IsElement) *section

func Select

func Select(children ...IsElement) *selectEl

func Small

func Small(children ...IsElement) *small

func Source

func Source() *source

func Span

func Span(children ...IsElement) *span

func Strong

func Strong(children ...IsElement) *strong

func Style

func Style(text string) *styl

func Sub

func Sub(children ...IsElement) *sub

func Summary

func Summary(children ...IsElement) *summary

func Sup

func Sup(children ...IsElement) *sup

func Svg added in v0.0.20

func Svg() *svg

func SvgString added in v0.0.20

func SvgString(svgString string) (s *svg, err error)

func TBody

func TBody(children ...IsElement) *tbody

func TFoot

func TFoot(children ...IsElement) *tfoot

func THead

func THead(children ...IsElement) *thead

func Table

func Table(children ...IsElement) *table

func Td

func Td(children ...IsElement) *td

func Template

func Template(children ...IsElement) *template

func TextArea

func TextArea(children ...IsElement) *textarea

func Th

func Th(children ...IsElement) *th

func Time

func Time(children ...IsElement) *timeEl

func Title

func Title(text string) *title

func Tr

func Tr(children ...IsElement) *tr

func Track

func Track(children ...IsElement) *track

func U

func U(children ...IsElement) *uEl

func Ul

func Ul(children ...IsElement) *ul

func Var

func Var(children ...IsElement) *varEl

func Video

func Video(children ...IsElement) *video

func Wbr

func Wbr(children ...IsElement) *wbr

Types

type AnchorRel

type AnchorRel string
const (
	Alternate  AnchorRel = "alternate"  // Provides a link to an alternate representation of the document (i.e. print page, translated or mirror)
	Author     AnchorRel = "author"     // Provides a link to the author of the document
	Bookmark   AnchorRel = "bookmark"   // Permanent URL used for bookmarking
	External   AnchorRel = "external"   // Indicates that the referenced document is not part of the same site as the current document
	Help       AnchorRel = "help"       // Provides a link to a help document
	License    AnchorRel = "license"    // Provides a link to licensing information for the document
	Next       AnchorRel = "next"       // Provides a link to the next document in the series
	Nofollow   AnchorRel = "nofollow"   // Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
	Noopener   AnchorRel = "noopener"   // Requires that any browsing context created by following the hyperlink must not have an opener browsing context
	Noreferrer AnchorRel = "noreferrer" // Makes the referrer unknown. No referer header will be included when the user clicks the hyperlink
	Prev       AnchorRel = "prev"       // The previous document in a selection
	SearchRel  AnchorRel = "search"     // Links to a search tool for the document
	Tag        AnchorRel = "tag"        // A tag (keyword) for the current document
)

type AnchorTarget

type AnchorTarget string
const (
	TargetBlank  AnchorTarget = "_blank"  //	Opens the linked document in a new window or tab
	TargetSelf   AnchorTarget = "_self"   //	Opens the linked document in the same frame as it was clicked (this is default)
	TargetParent AnchorTarget = "_parent" //	Opens the linked document in the parent frame
	TargetTop    AnchorTarget = "_top"    //	Opens the linked document in the full body of the window
)

type AreaShape

type AreaShape string
const (
	AreaShapeDefault AreaShape = "default"
	AreaShapeRect    AreaShape = "rect"
	AreaShapeCircle  AreaShape = "circle"
	AreaShapePoly    AreaShape = "poly"
)

type AudioPreload

type AudioPreload string
const (
	AudioPreloadAuto     AudioPreload = "auto"
	AudioPreloadMetadata AudioPreload = "metadata"
	AudioPreloadNone     AudioPreload = "none"
)

type AutoComplete

type AutoComplete bool

func (AutoComplete) String

func (m AutoComplete) String() string

type ButtonType

type ButtonType string
const (
	ButtonTypeButton ButtonType = "button"
	ButtonTypeReset  ButtonType = "reset"
	ButtonTypeSubmit ButtonType = "submit"
)

type CrossOrigin

type CrossOrigin string
const (
	CrossOriginAnonymous      CrossOrigin = "anonymous"
	CrossOriginUseCredentials CrossOrigin = "use-credentials"
)

type Direction

type Direction string
const (
	DirectionLtr  Direction = "ltr"
	DirectionRtl  Direction = "rtl"
	DirectionAuto Direction = "auto"
)

type EncType

type EncType string
const (
	XWWWFormUrlEncoded EncType = "application/x-www-form-urlencoded" //	Default. All characters are encoded before sent (spaces are converted to "+" symbols, and special characters are converted to ASCII HEX values)
	MultiPartFormData  EncType = "multipart/form-data"               //	 This value is necessary if the user will upload a file through the form
	TextPlainEncoding  EncType = "text/plain"                        //	Sends data without any encoding at all. Not recommended
)

type FormMethod

type FormMethod string
const (
	GetFormMethod    FormMethod = "get"    //	Default. Appends the form data to the URL in name/value pairs: URL?name=value&name=value
	PostFormMethod   FormMethod = "post"   //	Sends the form data as an HTTP post transaction
	DialogFormMethod FormMethod = "dialog" //	Sends the form data as a modal dialog box
)

type FormMinMaxValue

type FormMinMaxValue int

func (FormMinMaxValue) String

func (i FormMinMaxValue) String() string

type FormRel

type FormRel string
const (
	FormRelExternal   FormRel = "external"   //	Specifies that the referenced document is not a part of the current site
	FormRelHelp       FormRel = "help"       //	Links to a help document
	FormRelLicense    FormRel = "license"    //	Links to copyright information for the document
	FormRelNext       FormRel = "next"       //	The next document in a selection
	FormRelNofollow   FormRel = "nofollow"   //	Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
	FormRelNoOpener   FormRel = "noopener"   //
	FormRelNoReferrer FormRel = "noreferrer" //	Specifies that the browser should not send a HTTP referrer header if the user follows the hyperlink
	FormRelOpener     FormRel = "opener"     //
	FormRelPrev       FormRel = "prev"       //	The previous document in a selection
	FormRelSearch     FormRel = "search"     //	Links to a search tool for the document
)

type FormTarget

type FormTarget string
const (
	FormTargetBlank  FormTarget = "_blank"  //The response is displayed in a new window or tab
	FormTargetSelf   FormTarget = "_self"   //The response is displayed in the same frame (this is default)
	FormTargetParent FormTarget = "_parent" //The response is displayed in the parent frame
	FormTargetTop    FormTarget = "_top"    //The response is displayed in the full body of the window
)

type HtmlElement

type HtmlElement struct {
	// contains filtered or unexported fields
}

func CreateElementByNode

func CreateElementByNode(node *html.Node) *HtmlElement

func Element

func Element(el IsElement) *HtmlElement

func Text

func Text(text string) *HtmlElement

func (*HtmlElement) AccessKey

func (e *HtmlElement) AccessKey(character string) *HtmlElement

func (*HtmlElement) AddAttribute

func (e *HtmlElement) AddAttribute(key string, value string)

func (*HtmlElement) AddAttributeBool

func (e *HtmlElement) AddAttributeBool(key string)

func (*HtmlElement) Aria

func (e *HtmlElement) Aria(aria string, value string) *HtmlElement

func (*HtmlElement) CSSProperty added in v0.0.29

func (e *HtmlElement) CSSProperty(key string, value string) *HtmlElement

func (*HtmlElement) ChangeTagName added in v0.0.29

func (e *HtmlElement) ChangeTagName(tagName string) *html.Node

func (*HtmlElement) Children

func (e *HtmlElement) Children(children ...IsElement) *HtmlElement

func (*HtmlElement) Class

func (e *HtmlElement) Class(classnames ...string) *HtmlElement

func (*HtmlElement) ClassName added in v0.0.16

func (e *HtmlElement) ClassName() string

func (*HtmlElement) ContentEditable

func (e *HtmlElement) ContentEditable(editable bool) *HtmlElement

func (*HtmlElement) Data

func (e *HtmlElement) Data(name string, value string) *HtmlElement

func (*HtmlElement) Dir

func (e *HtmlElement) Dir(dir Direction) *HtmlElement

func (*HtmlElement) Draggable

func (e *HtmlElement) Draggable(draggable bool) *HtmlElement

func (*HtmlElement) Element

func (e *HtmlElement) Element() *HtmlElement

func (*HtmlElement) EnterKeyHint

func (e *HtmlElement) EnterKeyHint(hint KeyHint) *HtmlElement

func (*HtmlElement) GetAttribute added in v0.0.16

func (e *HtmlElement) GetAttribute(key string) string

func (*HtmlElement) GetData added in v0.0.16

func (e *HtmlElement) GetData(key string) string

func (*HtmlElement) GetNode

func (e *HtmlElement) GetNode() *html.Node

func (*HtmlElement) Hidden

func (e *HtmlElement) Hidden() *HtmlElement

func (*HtmlElement) Id

func (e *HtmlElement) Id(id string) *HtmlElement

func (*HtmlElement) Inert

func (e *HtmlElement) Inert() *HtmlElement

func (*HtmlElement) InputMode

func (e *HtmlElement) InputMode(mode InputMode) *HtmlElement

func (*HtmlElement) Lang

func (e *HtmlElement) Lang(langcode LanguageCode) *HtmlElement

func (*HtmlElement) Popover

func (e *HtmlElement) Popover() *HtmlElement

func (*HtmlElement) PreferredClassName added in v0.0.16

func (e *HtmlElement) PreferredClassName(className string) *HtmlElement

func (*HtmlElement) PrefixCss added in v0.0.30

func (e *HtmlElement) PrefixCss(prefixCss string) *HtmlElement

func (*HtmlElement) Render

func (e *HtmlElement) Render() string

func (*HtmlElement) Role added in v0.0.29

func (e *HtmlElement) Role(role string) *HtmlElement

func (*HtmlElement) Spellcheck

func (e *HtmlElement) Spellcheck(check bool) *HtmlElement

func (*HtmlElement) Style

func (e *HtmlElement) Style(props ...styles.ApplyProp) *HtmlElement

func (*HtmlElement) TabIndex

func (e *HtmlElement) TabIndex(number int) *HtmlElement

func (*HtmlElement) Title

func (e *HtmlElement) Title(text string) *HtmlElement

func (*HtmlElement) Translate

func (e *HtmlElement) Translate(translate TranslateOptions) *HtmlElement

type HttpEquiv

type HttpEquiv string
const (
	ContentSecurityPolicy HttpEquiv = "Content-Security-Policy"
	ContentType           HttpEquiv = "Content-Type"
	DefaultStyle          HttpEquiv = "Default-Style"
	Refresh               HttpEquiv = "Refresh"
	XUACompatible         HttpEquiv = "X-UA-Compatible"
	OriginTrial           HttpEquiv = "Origin-Trial"
)

type IframeReferrerPolicy

type IframeReferrerPolicy string
const (
	IframeReferrerPolicyNoReferrer                  IframeReferrerPolicy = "no-referrer"
	IframeReferrerPolicyNoReferrerWhenDowngrade     IframeReferrerPolicy = "no-referrer-when-downgrade"
	IframeReferrerPolicyOrigin                      IframeReferrerPolicy = "origin"
	IframeReferrerPolicyOriginWhenCrossOrigin       IframeReferrerPolicy = "origin-when-cross-origin"
	IframeReferrerPolicySameOrigin                  IframeReferrerPolicy = "same-origin"
	IframeReferrerPolicyStrictOrigin                IframeReferrerPolicy = "strict-origin"
	IframeReferrerPolicyStrictOriginWhenCrossOrigin IframeReferrerPolicy = "strict-origin-when-cross-origin"
	IframeReferrerPolicyUnsafeUrl                   IframeReferrerPolicy = "unsafe-url"
)

type IframeSandbox

type IframeSandbox string
const (
	IframeSandboxAllowForms                         IframeSandbox = "allow-forms"
	IframeSandboxAllowModals                        IframeSandbox = "allow-modals"
	IframeSandboxAllowOrientationLock               IframeSandbox = "allow-orientation-lock"
	IframeSandboxAllowPointerLock                   IframeSandbox = "allow-pointer-lock"
	IframeSandboxAllowPopups                        IframeSandbox = "allow-popups"
	IframeSandboxAllowPopupsToEscapeSandbox         IframeSandbox = "allow-popups-to-escape-sandbox"
	IframeSandboxAllowPresentation                  IframeSandbox = "allow-presentation"
	IframeSandboxAllowSameOrigin                    IframeSandbox = "allow-same-origin"
	IframeSandboxAllowScripts                       IframeSandbox = "allow-scripts"
	IframeSandboxAllowTopNavigation                 IframeSandbox = "allow-top-navigation"
	IframeSandboxAllowTopNavigationByUserActivation IframeSandbox = "allow-top-navigation-by-user-activation"
)

type ImageReferrerPolicy

type ImageReferrerPolicy string
const (
	ImageNoReferrer                    ImageReferrerPolicy = "no-referrer"                //	No referrer information is sent
	ImageNoReferrerWhenDowngrade       ImageReferrerPolicy = "no-referrer-when-downgrade" //	Default. The referrer header will not be sent to origins without HTTPS
	ImageReferrerOrigin                ImageReferrerPolicy = "origin"                     // Sends the origin (scheme, host, and port) of the document
	ImageReferrerOriginWhenCrossOrigin ImageReferrerPolicy = "origin-when-cross-origin"   //	For cross-origin requests: Send only scheme, host, and port. For same-origin requests: Also include the path
	ImageUnsafeUrl                     ImageReferrerPolicy = "unsafe-url"                 //	Send origin, path and query string (but not fragment, password, or username). This value is considered unsafe

)

type InputAccept

type InputAccept string
const (
	InputAudio InputAccept = "audio/*"
	InputVideo InputAccept = "video/*"
	InputImage InputAccept = "image/*"
)

func (InputAccept) IsInputAccept

func (InputAccept) IsInputAccept()

type InputAutoCompleteValue

type InputAutoCompleteValue string
const (
	InputAutoCompleteOn                       InputAutoCompleteValue = "on"                   //	Default. Autocomplete is on (enabled)
	InputAutoCompleteOff                      InputAutoCompleteValue = "off"                  //	Autocomplete is off (disabled)
	InputAutoCompleteAddressLine1             InputAutoCompleteValue = "address-line1"        //Expects the first line of the street address
	InputAutoCompleteAddressLine2             InputAutoCompleteValue = "address-line2"        // Expects the second line of the street address
	InputAutoCompleteAddressLine3             InputAutoCompleteValue = "address-line3"        // Expects the third line of the street address
	InputAutoCompleteAddressLevel1            InputAutoCompleteValue = "address-level1"       // Expects the first level of the address, e.g. the county
	InputAutoCompleteAddressLevel2            InputAutoCompleteValue = "address-level2"       // Expects the second level of the address, e.g. the city
	InputAutoCompleteAddressLevel3            InputAutoCompleteValue = "address-level3"       // Expects the third level of the address
	InputAutoCompleteAddressLevel4            InputAutoCompleteValue = "address-level4"       // Expects the fourth level of the address
	InputAutoCompleteStreetAddress            InputAutoCompleteValue = "street-address"       // Expects the full street address
	InputAutoCompleteCountry                  InputAutoCompleteValue = "country"              // Expects the country code
	InputAutoCompleteCountryName              InputAutoCompleteValue = "country-name"         // Expects the country name
	InputAutoCompletePostalCode               InputAutoCompleteValue = "postal-code"          // Expects the post code
	InputAutoCompleteName                     InputAutoCompleteValue = "name"                 // Expects the full name
	InputAutoCompleteAdditionalName           InputAutoCompleteValue = "additional-name"      // Expects the middle name
	InputAutoCompleteFamilyName               InputAutoCompleteValue = "family-name"          // Expects the last name
	InputAutoCompleteGivenName                InputAutoCompleteValue = "given-name"           // Expects the first name
	InputAutoCompleteHonoricPrefix            InputAutoCompleteValue = "honoric-prefix"       // Expects the title, like "Mr", "Ms" etc.
	InputAutoCompleteHonoricSuffix            InputAutoCompleteValue = "honoric-suffix"       // Expects the suffix, like "5", "Jr." etc.
	InputAutoCompleteNickname                 InputAutoCompleteValue = "nickname"             // Expects the nickname
	InputAutoCompleteOrganizationTitle        InputAutoCompleteValue = "organization-title"   // Expects the job title
	InputAutoCompleteUsername                 InputAutoCompleteValue = "username"             // Expects the username
	InputAutoCompleteNewPassword              InputAutoCompleteValue = "new-password"         // Expects a new password
	InputAutoCompleteCurrentPassword          InputAutoCompleteValue = "current-password"     // Expects the current password
	InputAutoCompleteBirthday                 InputAutoCompleteValue = "bday"                 // Expects the full birthday date
	InputAutoCompleteBirthdayDay              InputAutoCompleteValue = "bday-day"             // Expects the day of the birthday date
	InputAutoCompleteBirthdayMonth            InputAutoCompleteValue = "bday-month"           // Expects the month of the birthday date
	InputAutoCompleteBirthdayYear             InputAutoCompleteValue = "bday-year"            // Expects the year of the birthday date
	InputAutoCompleteSex                      InputAutoCompleteValue = "sex"                  // Expects the gender
	InputAutoCompleteOneTimeCode              InputAutoCompleteValue = "one-time-code"        // Expects a one time code for verification etc.
	InputAutoCompleteOrganization             InputAutoCompleteValue = "organization"         // Expects the company name
	InputAutoCompleteCreditCardName           InputAutoCompleteValue = "cc-name"              // Expects the credit card owner's full name
	InputAutoCompleteCreditCardGivenName      InputAutoCompleteValue = "cc-given-name"        // Expects the credit card owner's first name
	InputAutoCompleteCreditCardAdditionalName InputAutoCompleteValue = "cc-additional-name"   // Expects the credit card owner's middle name
	InputAutoCompleteCreditCardFamilyName     InputAutoCompleteValue = "cc-family-name"       // Expects the credit card owner's family name
	InputAutoCompleteCreditCardNumber         InputAutoCompleteValue = "cc-number"            // Expects the credit card's number
	InputAutoCompleteCreditCardExpired        InputAutoCompleteValue = "cc-exp"               // Expects the credit card's expiration date
	InputAutoCompleteCreditCardExpiredMonth   InputAutoCompleteValue = "cc-exp-month"         // Expects the credit card's expiration month
	InputAutoCompleteCreditCardExpiredYear    InputAutoCompleteValue = "cc-exp-year"          // Expects the credit card's expiration year
	InputAutoCompleteCreditCardCvc            InputAutoCompleteValue = "cc-csc"               // Expects the CVC code
	InputAutoCompleteCreditCardType           InputAutoCompleteValue = "cc-type"              // Expects the credit card's type of payment
	InputAutoCompleteTransactionCurrency      InputAutoCompleteValue = "transaction-currency" // Expects the currency
	InputAutoCompleteTransactionAmount        InputAutoCompleteValue = "transaction-amount"   // Expects a number, the amount
	InputAutoCompleteLanguage                 InputAutoCompleteValue = "language"             // Expects the preferred language
	InputAutoCompleteUrl                      InputAutoCompleteValue = "url"                  // Expects a URL for home page or company website address
	InputAutoCompleteEmail                    InputAutoCompleteValue = "email"                // Expects the email address
	InputAutoCompletePhoto                    InputAutoCompleteValue = "photo"                // Expects an image
	InputAutoCompleteTelephone                InputAutoCompleteValue = "tel"                  // Expects the full phone number
	InputAutoCompleteTelephoneCountryCode     InputAutoCompleteValue = "tel-country-code"     // Expects the country code of the phone number
	InputAutoCompleteTelephoneNational        InputAutoCompleteValue = "tel-national"         // Expects the phone number with no country code
	InputAutoCompleteTelephoneAreaCode        InputAutoCompleteValue = "tel-area-code"        // Expects the area code of the phone number
	InputAutoCompleteTelephoneLocal           InputAutoCompleteValue = "tel-local"            // Expects the phone number with no country code and no area code
	InputAutoCompleteTelephoneLocalPrefix     InputAutoCompleteValue = "tel-local-prefix"     // Expects the local prefix of the phone number
	InputAutoCompleteTelephoneLocalSuffix     InputAutoCompleteValue = "tel-local-suffix"     // Expects the local suffix of the phone number
	InputAutoCompleteTelephoneExtension       InputAutoCompleteValue = "tel-extension"        // Expects the extension code of the phone number
	InputAutoCompleteInstantMessagingProtocol InputAutoCompleteValue = "impp"                 // Expects the url of an instant messaging protocol endpoint
)

type InputFileExtension

type InputFileExtension string

func (InputFileExtension) IsInputAccept

func (InputFileExtension) IsInputAccept()

type InputMediaType

type InputMediaType string

func (InputMediaType) IsInputAccept

func (InputMediaType) IsInputAccept()

type InputMode

type InputMode string
const (
	InputModeDecimal InputMode = "decimal"
	InputModeEmail   InputMode = "text"
	InputModeNone    InputMode = "none"
	InputModeNumeric InputMode = "numeric"
	InputModeSearch  InputMode = "search"
	InputModeTel     InputMode = "tel"
	InputModeText    InputMode = "text"
	InputModeUrl     InputMode = "url"
)

type InputType

type InputType string
const (
	ButtonInputType        InputType = "button"         //	Defines a clickable button (mostly used with a JavaScript to activate a script)
	CheckboxInputType      InputType = "checkbox"       //	Defines a checkbox
	ColorInputType         InputType = "color"          //	Defines a color picker
	DateInputType          InputType = "date"           //	Defines a date control (year, month, day (no time))
	DateTimeLocalInputType InputType = "datetime-local" //	Defines a date and time control (year, month, day, time (no timezone)
	EmailInputType         InputType = "email"          //	Defines a field for an e-mail address
	FileInputType          InputType = "file"           //	Defines a file-select field and a "Browse" button (for file uploads)
	HiddenInputType        InputType = "hidden"         //	Defines a hidden input field
	ImageInputType         InputType = "image"          //	Defines an image as the submit button
	MonthInputType         InputType = "month"          //	Defines a month and year control (no timezone)
	NumberInputType        InputType = "number"         //	Defines a field for entering a number
	PasswordInputType      InputType = "password"       //	Defines a password field
	RadioInputType         InputType = "radio"          //	Defines a radio button
	RangeInputType         InputType = "range"          //	Defines a range control (like a slider control)
	ResetInputType         InputType = "reset"          //	Defines a reset button
	SearchInputType        InputType = "search"         //	Defines a text field for entering a search string
	SubmitInputType        InputType = "submit"         //	Defines a submit button
	TelInputType           InputType = "tel"            //	Defines a field for entering a telephone number
	TextInputType          InputType = "text"           //	Default. Defines a single-line text field
	TimeInputType          InputType = "time"           //	Defines a control for entering a time (no timezone)
	UrlInputType           InputType = "url"            //	Defines a field for entering a URL
	WeekInputType          InputType = "week"           //	Defines a week and year control (no timezone)
)

type IsElement

type IsElement interface {
	Element() *HtmlElement
}

type IsForm

type IsForm interface {
	IsFormElement()
	Element() *HtmlElement
	Render() string
}

type IsHeadElement

type IsHeadElement interface {
	InsideHead()
	Element() *HtmlElement
}

type KeyHint

type KeyHint string
const (
	KeyHintDone     KeyHint = "Done"
	KeyHintEnter    KeyHint = "Enter"
	KeyHintGo       KeyHint = "Go"
	KeyHintNext     KeyHint = "Next"
	KeyHintPrevious KeyHint = "Previous"
	KeyHintSearch   KeyHint = "Search"
	KeyHintSend     KeyHint = "Send"
)

type LanguageCode

type LanguageCode string
const (
	LangAbkhazian          LanguageCode = "ab"
	LangAfar               LanguageCode = "aa"
	LangAfrikaans          LanguageCode = "af"
	LangAkan               LanguageCode = "ak"
	LangAlbanian           LanguageCode = "sq"
	LangAmharic            LanguageCode = "am"
	LangArabic             LanguageCode = "ar"
	LangAragonese          LanguageCode = "an"
	LangArmenian           LanguageCode = "hy"
	LangAssamese           LanguageCode = "as"
	LangAvaric             LanguageCode = "av"
	LangAvestan            LanguageCode = "ae"
	LangAymara             LanguageCode = "ay"
	LangAzerbaijani        LanguageCode = "az"
	LangBambara            LanguageCode = "bm"
	LangBashkir            LanguageCode = "ba"
	LangBasque             LanguageCode = "eu"
	LangBelarusian         LanguageCode = "be"
	LangBengali            LanguageCode = "bn"
	LangBangla             LanguageCode = "bn"
	LangBihari             LanguageCode = "bh"
	LangBislama            LanguageCode = "bi"
	LangBosnian            LanguageCode = "bs"
	LangBreton             LanguageCode = "br"
	LangBulgarian          LanguageCode = "bg"
	LangBurmese            LanguageCode = "my"
	LangCatalan            LanguageCode = "ca"
	LangChamorro           LanguageCode = "ch"
	LangChechen            LanguageCode = "ce"
	LangChichewa           LanguageCode = "ny"
	LangChewa              LanguageCode = "ny"
	LangNyanja             LanguageCode = "ny"
	LangChinese            LanguageCode = "zh"
	LangChineseSimplified  LanguageCode = "zh-Hans"
	LangChineseTraditional LanguageCode = "zh-Hant"
	LangChuvash            LanguageCode = "cv"
	LangCornish            LanguageCode = "kw"
	LangCorsican           LanguageCode = "co"
	LangCree               LanguageCode = "cr"
	LangCroatian           LanguageCode = "hr"
	LangCzech              LanguageCode = "cs"
	LangDanish             LanguageCode = "da"
	LangDivehi             LanguageCode = "dv"
	LangDhivehi            LanguageCode = "dv"
	LangMaldivian          LanguageCode = "dv"
	LangDutch              LanguageCode = "nl"
	LangDzongkha           LanguageCode = "dz"
	LangEnglish            LanguageCode = "en"
	LangEsperanto          LanguageCode = "eo"
	LangEstonian           LanguageCode = "et"
	LangEwe                LanguageCode = "ee"
	LangFaroese            LanguageCode = "fo"
	LangFijian             LanguageCode = "fj"
	LangFinnish            LanguageCode = "fi"
	LangFrench             LanguageCode = "fr"
	LangFula               LanguageCode = "ff"
	LangFulah              LanguageCode = "ff"
	LangPulaar             LanguageCode = "ff"
	LangPular              LanguageCode = "ff"
	LangGalician           LanguageCode = "gl"
	LangGaelicScottish     LanguageCode = "gd"
	LangGaelicManx         LanguageCode = "gv"
	LangGeorgian           LanguageCode = "ka"
	LangGerman             LanguageCode = "de"
	LangGreek              LanguageCode = "el"
	LangGreenlandic        LanguageCode = "kl"
	LangGuarani            LanguageCode = "gn"
	LangGujarati           LanguageCode = "gu"
	LangHaitianCreole      LanguageCode = "ht"
	LangHausa              LanguageCode = "ha"
	LangHebrew             LanguageCode = "he"
	LangHerero             LanguageCode = "hz"
	LangHindi              LanguageCode = "hi"
	LangHiriMotu           LanguageCode = "ho"
	LangHungarian          LanguageCode = "hu"
	LangIcelandic          LanguageCode = "is"
	LangIdo                LanguageCode = "io"
	LangIgbo               LanguageCode = "ig"
	LangIndonesian         LanguageCode = "id"
	LangInterlingua        LanguageCode = "ia"
	LangInterlingue        LanguageCode = "ie"
	LangInuktitut          LanguageCode = "iu"
	LangInupiak            LanguageCode = "ik"
	LangIrish              LanguageCode = "ga"
	LangItalian            LanguageCode = "it"
	LangJapanese           LanguageCode = "ja"
	LangJavanese           LanguageCode = "jv"
	LangKalaallisut        LanguageCode = "kl"
	LangKannada            LanguageCode = "kn"
	LangKanuri             LanguageCode = "kr"
	LangKashmiri           LanguageCode = "ks"
	LangKazakh             LanguageCode = "kk"
	LangKhmer              LanguageCode = "km"
	LangKikuyu             LanguageCode = "ki"
	LangKinyarwanda        LanguageCode = "rw"
	LangRwanda             LanguageCode = "rw"
	LangKirundi            LanguageCode = "rn"
	LangKyrgyz             LanguageCode = "ky"
	LangKomi               LanguageCode = "kv"
	LangKongo              LanguageCode = "kg"
	LangKorean             LanguageCode = "ko"
	LangKurdish            LanguageCode = "ku"
	LangKwanyama           LanguageCode = "kj"
	LangLao                LanguageCode = "lo"
	LangLatin              LanguageCode = "la"
	LangLatvian            LanguageCode = "lv"
	LangLettish            LanguageCode = "lv"
	LangLimburgish         LanguageCode = "li "
	LangLimburger          LanguageCode = "li"
	LangLingala            LanguageCode = "ln"
	LangLithuanian         LanguageCode = "lt"
	LangLugaKatanga        LanguageCode = "lu"
	LangLuganda            LanguageCode = "lg"
	LangGanda              LanguageCode = "lg"
	LangLuxembourgish      LanguageCode = "lb"
	LangManx               LanguageCode = "gv"
	LangMacedonian         LanguageCode = "mk"
	LangMalagasy           LanguageCode = "mg"
	LangMalay              LanguageCode = "ms"
	LangMalayalam          LanguageCode = "ml"
	LangMaltese            LanguageCode = "mt"
	LangMaori              LanguageCode = "mi"
	LangMarathi            LanguageCode = "mr"
	LangMarshallese        LanguageCode = "mh"
	LangMoldavian          LanguageCode = "mo"
	LangMongolian          LanguageCode = "mn"
	LangNauru              LanguageCode = "na"
	LangNavajo             LanguageCode = "nv"
	LangNdonga             LanguageCode = "ng"
	LangNorthernNdebele    LanguageCode = "nd"
	LangNepali             LanguageCode = "ne"
	LangNorwegian          LanguageCode = "no"
	LangNorwegianBokmal    LanguageCode = "nb"
	LangNorwegianNynorsk   LanguageCode = "nn"
	LangNuosu              LanguageCode = "ii"
	LangOccitan            LanguageCode = "oc"
	LangOjibwe             LanguageCode = "oj"
	LangOldChurchSlavonic  LanguageCode = "cu"
	LangOldBulgarian       LanguageCode = "cu"
	LangOriya              LanguageCode = "or"
	LangOromo              LanguageCode = "om"
	LangAfaanOromo         LanguageCode = "om"
	LangOssetian           LanguageCode = "os"
	LangPāli               LanguageCode = "pi"
	LangPashto             LanguageCode = "ps"
	LangPushto             LanguageCode = "ps"
	LangPersian            LanguageCode = "fa"
	LangFarsi              LanguageCode = "fa"
	LangPolish             LanguageCode = "pl"
	LangPortuguese         LanguageCode = "pt"
	LangPunjabi            LanguageCode = "pa"
	LangEastern            LanguageCode = "pa"
	LangQuechua            LanguageCode = "qu"
	LangRomansh            LanguageCode = "rm"
	LangRomanian           LanguageCode = "ro"
	LangRussian            LanguageCode = "ru"
	LangSami               LanguageCode = "se"
	LangSamoan             LanguageCode = "sm"
	LangSango              LanguageCode = "sg"
	LangSanskrit           LanguageCode = "sa"
	LangSerbian            LanguageCode = "sr"
	LangSerboCroatian      LanguageCode = "sh"
	LangSesotho            LanguageCode = "st"
	LangSetswana           LanguageCode = "tn"
	LangShona              LanguageCode = "sn"
	LangSichuanYi          LanguageCode = "ii"
	LangSindhi             LanguageCode = "sd"
	LangSinhalese          LanguageCode = "si"
	LangSiswati            LanguageCode = "ss"
	LangSlovak             LanguageCode = "sk"
	LangSlovenian          LanguageCode = "sl"
	LangSomali             LanguageCode = "so"
	LangSouthernNdebele    LanguageCode = "nr"
	LangSpanish            LanguageCode = "es"
	LangSundanese          LanguageCode = "su"
	LangSwahili            LanguageCode = "sw"
	LangKiswahili          LanguageCode = "sw"
	LangSwati              LanguageCode = "ss"
	LangSwedish            LanguageCode = "sv"
	LangTagalog            LanguageCode = "tl"
	LangTahitian           LanguageCode = "ty"
	LangTajik              LanguageCode = "tg"
	LangTamil              LanguageCode = "ta"
	LangTatar              LanguageCode = "tt"
	LangTelugu             LanguageCode = "te"
	LangThai               LanguageCode = "th"
	LangTibetan            LanguageCode = "bo"
	LangTigrinya           LanguageCode = "ti"
	LangTonga              LanguageCode = "to"
	LangTsonga             LanguageCode = "ts"
	LangTurkish            LanguageCode = "tr"
	LangTurkmen            LanguageCode = "tk"
	LangTwi                LanguageCode = "tw"
	LangUyghur             LanguageCode = "ug"
	LangUkrainian          LanguageCode = "uk"
	LangUrdu               LanguageCode = "ur"
	LangUzbek              LanguageCode = "uz"
	LangVenda              LanguageCode = "ve"
	LangVietnamese         LanguageCode = "vi"
	LangVolapük            LanguageCode = "vo"
	LangWallon             LanguageCode = "wa"
	LangWelsh              LanguageCode = "cy"
	LangWolof              LanguageCode = "wo"
	LangWesternFrisian     LanguageCode = "fy"
	LangXhosa              LanguageCode = "xh"
	LangYiddish            LanguageCode = "yi"
	LangYoruba             LanguageCode = "yo"
	LangZhuang             LanguageCode = "za"
	LangChuang             LanguageCode = "za"
	LangZulu               LanguageCode = "zu"
)

type LinkRelationship

type LinkRelationship string
const (
	RelAlternate   LinkRelationship = "alternate"
	RelAuthor      LinkRelationship = "author"
	RelDnsPrefetch LinkRelationship = "dns-prefetch"
	RelHelp        LinkRelationship = "help"
	RelIcon        LinkRelationship = "icon"
	RelLicense     LinkRelationship = "license"
	RelNext        LinkRelationship = "next"
	RelPingback    LinkRelationship = "pingback"
	RelPreconnect  LinkRelationship = "preconnect"
	RelPrefetch    LinkRelationship = "prefetch"
	RelPreload     LinkRelationship = "preload"
	RelPrerender   LinkRelationship = "prerender"
	RelPrev        LinkRelationship = "prev"
	RelSearch      LinkRelationship = "search"
	RelStylesheet  LinkRelationship = "stylesheet"
)

type Loading

type Loading string
const (
	LoadingEager Loading = "eager"
	LoadingLazy  Loading = "lazy"
)

type MetaName

type MetaName string
const (
	MetaNameApplicationName        MetaName = "application-name"
	MetaNameAuthor                 MetaName = "author"
	MetaNameDescription            MetaName = "description"
	MetaNameGenerator              MetaName = "generator"
	MetaNameKeywords               MetaName = "keywords"
	MetaNameReferrer               MetaName = "referrer"
	MetaNameViewport               MetaName = "viewport"
	MetaNameThemeColor             MetaName = "theme-color"
	MetaNameRobots                 MetaName = "robots"
	MetaNameGoogleSiteVerification MetaName = "google-site-verification"
)

type PopoverTargetAction

type PopoverTargetAction string
const (
	PopoverTargetActionHide   PopoverTargetAction = "hide"
	PopoverTargetActionShow   PopoverTargetAction = "show"
	PopoverTargetActionToggle PopoverTargetAction = "toggle"
)

type RefererPolicy

type RefererPolicy string
const (
	RefererPolicyNoReferer                   RefererPolicy = "no-referrer"
	RefererPolicyNoRefererWhenDowngrade      RefererPolicy = "no-referrer-when-downgrade"
	RefererPolicyOrigin                      RefererPolicy = "origin"
	RefererPolicyOriginWhenCrossOrigin       RefererPolicy = "origin-when-cross-origin"
	RefererPolicySameOrigin                  RefererPolicy = "same-origin"
	RefererPolicyStrictOriginWhenCrossOrigin RefererPolicy = "strict-origin-when-cross-origin"
	RefererPolicyUnsafeUrl                   RefererPolicy = "unsafe-url"
)

type TargetAction

type TargetAction string
const (
	TargetActionHide   TargetAction = "hide"
	TargetActionShow   TargetAction = "show"
	TargetActionToggle TargetAction = "toggle"
)

type TextAreaWrap

type TextAreaWrap string
const (
	TextAreaWrapSoft TextAreaWrap = "soft"
	TextAreaWrapHard TextAreaWrap = "hard"
)

type ThScope

type ThScope string
const (
	ScopeCol    ThScope = "col"
	ScopeRow    ThScope = "row"
	ScopeColGrp ThScope = "colgroup"
	ScopeRowGrp ThScope = "rowgroup"
)

type TrackKind

type TrackKind string
const (
	TrackKindSubtitles    TrackKind = "subtitles"
	TrackKindCaptions     TrackKind = "captions"
	TrackKindDescriptions TrackKind = "descriptions"
	TrackKindChapters     TrackKind = "chapters"
	TrackKindMetadata     TrackKind = "metadata"
)

type TranslateOptions

type TranslateOptions string
const (
	TranslateYes TranslateOptions = "yes"
	TranslateNo  TranslateOptions = "no"
)

type VideoPreload

type VideoPreload string
const (
	VideoPreloadAuto     VideoPreload = "auto"
	VideoPreloadMetadata VideoPreload = "metadata"
	VideoPreloadNone     VideoPreload = "none"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL