diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 719b41224..0b043c5bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,11 +10,16 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: "1.20" + go-version: "1.21" - name: Checkout Code uses: actions/checkout@v3 - name: Vet - run: go vet ./... + run: | + go vet ./pkg/app + go vet ./pkg/errors + go vet ./pkg/logs + go vet ./pkg/cache + go vet ./pkg/cli server: name: Unit Tests @@ -23,11 +28,15 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: "1.18" + go-version: "1.21" - name: Checkout Code uses: actions/checkout@v3 - name: Run Unit Tests - run: go test -race ./... + run: | + go test -race ./pkg/app + go test -race ./pkg/errors + go test -race ./pkg/logs + go test -race ./pkg/cache client: name: WebAssembly Unit Tests @@ -36,7 +45,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: "1.18" + go-version: "1.21" - name: Checkout Code uses: actions/checkout@v3 - name: Install WASM Browser Test @@ -46,3 +55,5 @@ jobs: - name: Run Unit Tests run: | GOARCH=wasm GOOS=js go test ./pkg/app + GOARCH=wasm GOOS=js go test ./pkg/errors + GOARCH=wasm GOOS=js go test ./pkg/logs diff --git a/docs/src/actions-page.go b/docs/src/actions-page.go index 3fa5a0c81..2ea8acb4a 100644 --- a/docs/src/actions-page.go +++ b/docs/src/actions-page.go @@ -13,10 +13,6 @@ func newActionPage() *actionPage { return &actionPage{} } -func (p *actionPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *actionPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/architecture-page.go b/docs/src/architecture-page.go index 56655608b..9a2ed0126 100644 --- a/docs/src/architecture-page.go +++ b/docs/src/architecture-page.go @@ -13,10 +13,6 @@ func newArchitecturePage() *architecturePage { return &architecturePage{} } -func (p *architecturePage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *architecturePage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/components-page.go b/docs/src/components-page.go index 55187cb6e..b640e5ada 100644 --- a/docs/src/components-page.go +++ b/docs/src/components-page.go @@ -13,10 +13,6 @@ func newComponentsPage() *componentsPage { return &componentsPage{} } -func (p *componentsPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *componentsPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/concurrency-page.go b/docs/src/concurrency-page.go index 93739eb2b..9df8c4a56 100644 --- a/docs/src/concurrency-page.go +++ b/docs/src/concurrency-page.go @@ -13,10 +13,6 @@ func newConcurrencyPage() *concurrencyPage { return &concurrencyPage{} } -func (p *concurrencyPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *concurrencyPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/declarative-syntax-page.go b/docs/src/declarative-syntax-page.go index 161fcb821..127ff8342 100644 --- a/docs/src/declarative-syntax-page.go +++ b/docs/src/declarative-syntax-page.go @@ -13,10 +13,6 @@ func newDeclarativeSyntaxPage() *declarativeSyntaxPage { return &declarativeSyntaxPage{} } -func (p *declarativeSyntaxPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *declarativeSyntaxPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/getting-started-page.go b/docs/src/getting-started-page.go index 6aa26f653..457f19b72 100644 --- a/docs/src/getting-started-page.go +++ b/docs/src/getting-started-page.go @@ -13,10 +13,6 @@ func newGettingStartedPage() *gettingStartedPage { return &gettingStartedPage{} } -func (p *gettingStartedPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *gettingStartedPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/github-deploy-page.go b/docs/src/github-deploy-page.go index 6b0fe3713..79f93123b 100644 --- a/docs/src/github-deploy-page.go +++ b/docs/src/github-deploy-page.go @@ -13,10 +13,6 @@ func newGithubDeployPage() *githubDeployPage { return &githubDeployPage{} } -func (p *githubDeployPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *githubDeployPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/home-page.go b/docs/src/home-page.go index 03c91999d..7c6e4706d 100644 --- a/docs/src/home-page.go +++ b/docs/src/home-page.go @@ -14,10 +14,6 @@ func newHomePage() *homePage { return &homePage{} } -func (p *homePage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *homePage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/install-page.go b/docs/src/install-page.go index 5c9fae123..3b28a3a6f 100644 --- a/docs/src/install-page.go +++ b/docs/src/install-page.go @@ -13,10 +13,6 @@ func newInstallPage() *installPage { return &installPage{} } -func (p *installPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *installPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/js-page.go b/docs/src/js-page.go index b99384f84..ea514c832 100644 --- a/docs/src/js-page.go +++ b/docs/src/js-page.go @@ -13,10 +13,6 @@ func newJSPage() *jsPage { return &jsPage{} } -func (p *jsPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *jsPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/lifecycle-page.go b/docs/src/lifecycle-page.go index 8aff0a764..1d57f9b1f 100644 --- a/docs/src/lifecycle-page.go +++ b/docs/src/lifecycle-page.go @@ -13,10 +13,6 @@ func newLifecyclePage() *lifecyclePage { return &lifecyclePage{} } -func (p *lifecyclePage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *lifecyclePage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/main.go b/docs/src/main.go index c4af7f90a..f2b26a1d4 100644 --- a/docs/src/main.go +++ b/docs/src/main.go @@ -49,29 +49,29 @@ func main() { ui.BlockPadding = 18 analytics.Add(analytics.NewGoogleAnalytics()) - app.Route("/", newHomePage()) - app.Route("/getting-started", newGettingStartedPage()) - app.Route("/architecture", newArchitecturePage()) - app.Route("/reference", newReferencePage()) - - app.Route("/components", newComponentsPage()) - app.Route("/declarative-syntax", newDeclarativeSyntaxPage()) - app.Route("/routing", newRoutingPage()) - app.Route("/static-resources", newStaticResourcePage()) - app.Route("/js", newJSPage()) - app.Route("/concurrency", newConcurrencyPage()) - app.Route("/seo", newSEOPage()) - app.Route("/lifecycle", newLifecyclePage()) - app.Route("/install", newInstallPage()) - app.Route("/testing", newTestingPage()) - app.Route("/actions", newActionPage()) - app.Route("/states", newStatesPage()) - app.Route("/notifications", newNotificationsPage()) - - app.Route("/migrate", newMigratePage()) - app.Route("/github-deploy", newGithubDeployPage()) - - app.Route("/privacy-policy", newPrivacyPolicyPage()) + app.Route("/", app.NewZeroComponentFactory(newHomePage())) + app.Route("/getting-started", app.NewZeroComponentFactory(newGettingStartedPage())) + app.Route("/architecture", app.NewZeroComponentFactory(newArchitecturePage())) + app.Route("/reference", app.NewZeroComponentFactory(newReferencePage())) + + app.Route("/components", app.NewZeroComponentFactory(newComponentsPage())) + app.Route("/declarative-syntax", app.NewZeroComponentFactory(newDeclarativeSyntaxPage())) + app.Route("/routing", app.NewZeroComponentFactory(newRoutingPage())) + app.Route("/static-resources", app.NewZeroComponentFactory(newStaticResourcePage())) + app.Route("/js", app.NewZeroComponentFactory(newJSPage())) + app.Route("/concurrency", app.NewZeroComponentFactory(newConcurrencyPage())) + app.Route("/seo", app.NewZeroComponentFactory(newSEOPage())) + app.Route("/lifecycle", app.NewZeroComponentFactory(newLifecyclePage())) + app.Route("/install", app.NewZeroComponentFactory(newInstallPage())) + app.Route("/testing", app.NewZeroComponentFactory(newTestingPage())) + app.Route("/actions", app.NewZeroComponentFactory(newActionPage())) + app.Route("/states", app.NewZeroComponentFactory(newStatesPage())) + app.Route("/notifications", app.NewZeroComponentFactory(newNotificationsPage())) + + app.Route("/migrate", app.NewZeroComponentFactory(newMigratePage())) + app.Route("/github-deploy", app.NewZeroComponentFactory(newGithubDeployPage())) + + app.Route("/privacy-policy", app.NewZeroComponentFactory(newPrivacyPolicyPage())) app.Handle(installApp, handleAppInstall) app.Handle(updateApp, handleAppUpdate) diff --git a/docs/src/markdown-doc.go b/docs/src/markdown-doc.go index 6b14bf14b..6ca2220a5 100644 --- a/docs/src/markdown-doc.go +++ b/docs/src/markdown-doc.go @@ -93,10 +93,6 @@ func (d *remoteMarkdownDoc) Src(v string) *remoteMarkdownDoc { return d } -func (d *remoteMarkdownDoc) OnPreRender(ctx app.Context) { - d.load(ctx) -} - func (d *remoteMarkdownDoc) OnMount(ctx app.Context) { d.load(ctx) } @@ -107,14 +103,13 @@ func (d *remoteMarkdownDoc) OnUpdate(ctx app.Context) { func (d *remoteMarkdownDoc) load(ctx app.Context) { src := d.Isrc - ctx.ObserveState(markdownState(src)). + ctx.ObserveState(markdownState(src), &d.md). While(func() bool { return src == d.Isrc }). OnChange(func() { ctx.Defer(scrollTo) - }). - Value(&d.md) + }) ctx.NewAction(getMarkdown, app.T("path", d.Isrc)) } @@ -130,10 +125,10 @@ func (d *remoteMarkdownDoc) Render() app.UI { Loading(d.md.Status == loading). Err(d.md.Err). Label(fmt.Sprintf("Loading %s...", filepath.Base(d.Isrc))), - app.If(d.md.Status == loaded, - newMarkdownDoc(). + app.If(d.md.Status == loaded, func() app.UI { + return newMarkdownDoc(). Class("fill"). - MD(d.md.Data), - ).Else(), + MD(d.md.Data) + }), ) } diff --git a/docs/src/menu.go b/docs/src/menu.go index be7659762..78d785077 100644 --- a/docs/src/menu.go +++ b/docs/src/menu.go @@ -203,13 +203,13 @@ func (m *menu) Render() app.UI { app.Div().Class("separator"), - app.If(m.appInstallable, - ui.Link(). + app.If(m.appInstallable, func() app.UI { + return ui.Link(). Class(linkClass). Icon(downloadSVG). Label("Install"). - OnClick(m.installApp), - ), + OnClick(m.installApp) + }), ui.Link(). Class(linkClass). Icon(userLockSVG). diff --git a/docs/src/migrate-page.go b/docs/src/migrate-page.go index 1bd082e85..7b35a8580 100644 --- a/docs/src/migrate-page.go +++ b/docs/src/migrate-page.go @@ -13,10 +13,6 @@ func newMigratePage() *migratePage { return &migratePage{} } -func (p *migratePage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *migratePage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/notifications-page.go b/docs/src/notifications-page.go index 7a23ea3e1..441411d09 100644 --- a/docs/src/notifications-page.go +++ b/docs/src/notifications-page.go @@ -22,10 +22,6 @@ func newNotificationsPage() *notificationsPage { return ¬ificationsPage{} } -func (p *notificationsPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *notificationsPage) OnMount(ctx app.Context) { p.notificationPermission = ctx.Notifications().Permission() p.registerSubscription(ctx) diff --git a/docs/src/page.go b/docs/src/page.go index ae20ccef2..377bfdb7f 100644 --- a/docs/src/page.go +++ b/docs/src/page.go @@ -71,8 +71,8 @@ func (p *page) Render() app.UI { newMenu().Class("fill"), ). Index( - app.If(len(p.Iindex) != 0, - ui.Scroll(). + app.If(len(p.Iindex) != 0, func() app.UI { + return ui.Scroll(). Class("fill"). HeaderHeight(headerHeight). Content( @@ -90,8 +90,8 @@ func (p *page) Render() app.UI { newIndexLink().Title("Report an Issue"), app.Div().Class("separator"), ), - ), - ), + ) + }), ). Content( ui.Scroll(). @@ -105,8 +105,8 @@ func (p *page) Render() app.UI { Right(). Middle(). Content( - app.If(p.updateAvailable, - app.Div(). + app.If(p.updateAvailable, func() app.UI { + return app.Div(). Class("link-update"). Body( ui.Link(). @@ -117,8 +117,8 @@ func (p *page) Render() app.UI { Icon(downloadSVG). Label("Update"). OnClick(p.updateApp), - ), - ), + ) + }), ), ), ). diff --git a/docs/src/privacy-policy-page.go b/docs/src/privacy-policy-page.go index c2c1b4475..eac843b22 100644 --- a/docs/src/privacy-policy-page.go +++ b/docs/src/privacy-policy-page.go @@ -13,10 +13,6 @@ func newPrivacyPolicyPage() *privacyPolicyPage { return &privacyPolicyPage{} } -func (p *privacyPolicyPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *privacyPolicyPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/reference-content.go b/docs/src/reference-content.go index cb576bc5e..c90ac02f2 100644 --- a/docs/src/reference-content.go +++ b/docs/src/reference-content.go @@ -35,10 +35,6 @@ func (c *referenceContent) Index(v bool) *referenceContent { return c } -func (c *referenceContent) OnPreRender(ctx app.Context) { - c.load(ctx) -} - func (c *referenceContent) OnMount(ctx app.Context) { c.load(ctx) } @@ -48,12 +44,11 @@ func (c *referenceContent) OnNav(ctx app.Context) { } func (c *referenceContent) load(ctx app.Context) { - ctx.ObserveState(referenceState). + ctx.ObserveState(referenceState, &c.content). OnChange(func() { ctx.Defer(c.handleFragment) ctx.Defer(c.scrollTo) - }). - Value(&c.content) + }) ctx.NewAction(getReference) } @@ -78,12 +73,11 @@ func (c *referenceContent) Render() app.UI { Err(c.content.Err). Size(loaderSize). Spacing(loaderSpacing), - - app.If(!c.Iindex && c.content.Content != "", - app.Raw(c.content.Content), - ).ElseIf(c.Iindex && c.content.Index != "", - app.Raw(c.content.Index), - ), + app.If(!c.Iindex && c.content.Content != "", func() app.UI { + return app.Raw(c.content.Content) + }).ElseIf(c.Iindex && c.content.Index != "", func() app.UI { + return app.Raw(c.content.Index) + }), app.Div().Text(c.content.Err), ) } diff --git a/docs/src/reference-page.go b/docs/src/reference-page.go index 78ab7a4c6..ade96bc2d 100644 --- a/docs/src/reference-page.go +++ b/docs/src/reference-page.go @@ -13,10 +13,6 @@ func newReferencePage() *referencePage { return &referencePage{} } -func (p *referencePage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *referencePage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/routing-page.go b/docs/src/routing-page.go index 5b655ae97..237cda44b 100644 --- a/docs/src/routing-page.go +++ b/docs/src/routing-page.go @@ -13,10 +13,6 @@ func newRoutingPage() *routingPage { return &routingPage{} } -func (p *routingPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *routingPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/seo-page.go b/docs/src/seo-page.go index 077d6f87d..d8e7c46af 100644 --- a/docs/src/seo-page.go +++ b/docs/src/seo-page.go @@ -13,10 +13,6 @@ func newSEOPage() *seoPage { return &seoPage{} } -func (p *seoPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *seoPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/snipets/start.go b/docs/src/snipets/start.go index 20c4f7e63..6dbe40f3b 100644 --- a/docs/src/snipets/start.go +++ b/docs/src/snipets/start.go @@ -29,7 +29,7 @@ func main() { // // This is done by calling the Route() function, which tells go-app what // component to display for a given path, on both client and server-side. - app.Route("/", &hello{}) + app.Route("/", app.NewZeroComponentFactory(&hello{})) // Once the routes set up, the next thing to do is to either launch the app // or the server that serves the app. diff --git a/docs/src/states-page.go b/docs/src/states-page.go index ab028dc51..4ef79e7ae 100644 --- a/docs/src/states-page.go +++ b/docs/src/states-page.go @@ -13,10 +13,6 @@ func newStatesPage() *statesPage { return &statesPage{} } -func (p *statesPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *statesPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/static-resources-page.go b/docs/src/static-resources-page.go index 9c1058c2a..c73bae423 100644 --- a/docs/src/static-resources-page.go +++ b/docs/src/static-resources-page.go @@ -13,10 +13,6 @@ func newStaticResourcePage() *staticResourcesPage { return &staticResourcesPage{} } -func (p *staticResourcesPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *staticResourcesPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/src/testing-page.go b/docs/src/testing-page.go index 09483b0ef..6bf61c794 100644 --- a/docs/src/testing-page.go +++ b/docs/src/testing-page.go @@ -13,10 +13,6 @@ func newTestingPage() *testingPage { return &testingPage{} } -func (p *testingPage) OnPreRender(ctx app.Context) { - p.initPage(ctx) -} - func (p *testingPage) OnNav(ctx app.Context) { p.initPage(ctx) } diff --git a/docs/web/app.wasm b/docs/web/app.wasm index 07d731729..1fc1ed47b 100755 Binary files a/docs/web/app.wasm and b/docs/web/app.wasm differ diff --git a/docs/web/documents/reference.html b/docs/web/documents/reference.html index 8e0c707f5..366a22937 100644 --- a/docs/web/documents/reference.html +++ b/docs/web/documents/reference.html @@ -15,7 +15,7 @@ - +
@@ -128,18 +128,12 @@func Broadcast(s *State)-
Broadcast is a state option that broadcasts a state to other browser tabs and -windows from the same origin. - - - - - - - -
func Encrypt(s *State)-
Encrypt is a state option that encrypts a state before persisting it in local -storage. Encryption is performed only when the Persist option is also set. - - - - - - -
func HTMLString(ui UI) string-
HTMLString return an HTML string representation of the given UI element. - - - - - - - -
func HTMLStringWithIndent(ui UI) string-
HTMLStringWithIndent return an indented HTML string representation of the -given UI element. +
HTMLString returns a string that represents the HTML markup for the provided +UI element. @@ -1742,14 +1756,14 @@
func Handle(actionName string, h ActionHandler)-
Handle registers the handler for the given action name. When an action -occurs, the handler is executed on its own goroutine. +
Handle registers the provided handler for a specific action name. When that +action is triggered, the handler executes in a separate goroutine. @@ -1757,7 +1771,7 @@
func Persist(s *State)-
Persist is a state option that persists a state in local storage. -
Be mindful to not use this option as a cache since local storage is limited -to 5MB in a lot of web browsers. +
func Match(expected UI, root UI, path ...int) error+
Match compares the expected UI element with another UI element at a specified +location in a UI tree. It is the preferred function for matching UI elements +in tests due to its simplified usage. +
Example usage adapted for Match function: +
tree := app.Div().Body( + app.H2().Body(app.Text("foo")), + app.P().Body(app.Text("bar")), +) - - +err := app.Match(app.Div(), tree) +// err == nil if the root matches a Div element - - - -@@ -1847,14 +1846,21 @@func PrintHTML - ¶ - - -
-func PrintHTML(w io.Writer, ui UI)-PrintHTML writes an HTML representation of the UI element into the given -writer. +err := app.Match(app.H3(), tree, 0) +// err != nil because the first child is not an H3 element but a H2. - - - - - - -
func PrintHTMLWithIndent - ¶ - - -
-func PrintHTMLWithIndent(w io.Writer, ui UI)-PrintHTMLWithIndent writes an idented HTML representation of the UI element -into the given writer. +err = app.Match(app.Text("bar"), tree, 1, 0) +// err == nil if the text of the first child of the second element is "bar" +
func Route(path string, c Composer)-
Route set the type of component to be mounted when a page is navigated to the -given path. +
func NewZeroComponentFactory(c Composer) func() Composer+
NewZeroComponentFactory returns a function that, when invoked, creates and +returns a new instance of the same type as the provided component. The new +instance is initialized with zero values for all its fields. +
The function uses reflection to determine the type of the provided Composer +and to create new instances of that type. +
Example: +
componentFunc := NewZeroComponentFactory(MyComponent{}) +newComponent := componentFunc() +@@ -1862,14 +1868,14 @@
func RouteFunc(path string, newComponent func() Composer)-
RouteFunc set a function that creates the component to be mounted when a page -is navigated to the given path. +
func PrintHTML(w io.Writer, ui UI)+
PrintHTML writes the HTML representation of the given UI element into the +specified writer. @@ -1877,14 +1883,20 @@
func RouteWithRegexp(pattern string, c Composer)-
RouteWithRegexp set the type of component to be mounted when a page is -navigated to a path that matches the given pattern. +
func Route(path string, newComponent func() Composer)+
Route associates a given path with a function that generates a new Composer +component. When a user navigates to the specified path, the function +newComponent is invoked to create and mount the associated component. +
Example: +
Route("/home", func() Composer { + return NewHomeComponent() +}) +@@ -1892,14 +1904,21 @@
func RouteWithRegexpFunc(pattern string, newComponent func() Composer)-
RouteWithRegexpFunc set a function that creates the component to be mounted -when a page is navigated to a path that matches the given pattern. +
func RouteWithRegexp(pattern string, newComponent func() Composer)+
RouteWithRegexp associates a URL path pattern with a function that generates +a new Composer component. When a user navigates to a URL path that matches +the given regular expression pattern, the function newComponent is invoked to +create and mount the associated component. +
Example: +
RouteWithRegexp("^/users/[0-9]+$", func() Composer { + return NewUserComponent() +}) +@@ -1907,7 +1926,7 @@
func TestMatch(tree UI, d TestUIDescriptor) error-
TestMatch looks for the element targeted by the descriptor in the given tree -and reports whether it matches with the expected element. -
Eg: -
tree := app.Div().Body( - app.H2().Body( - app.Text("foo"), - ), - app.P().Body( - app.Text("bar"), - ), -) - -// Testing root: -err := app.TestMatch(tree, app.TestUIDescriptor{ - Path: TestPath(), - Expected: app.Div(), -}) -// OK => err == nil - -// Testing h2: -err := app.TestMatch(tree, app.TestUIDescriptor{ - Path: TestPath(0), - Expected: app.H3(), -}) -// KO => err != nil because we ask h2 to match with h3 - -// Testing text from p: -err = app.TestMatch(tree, app.TestUIDescriptor{ - Path: TestPath(1, 0), - Expected: app.Text("bar"), -}) -// OK => err == nil -+
func TestMatch(root UI, d TestUIDescriptor) error+
TestMatch searches for a UI element within a tree as described by a +TestUIDescriptor and verifies if it matches the Expected element. It returns +an error if the match is unsuccessful or if the path is invalid. Prefer using +the Match function for a simpler API. @@ -1985,14 +1975,14 @@
func TestPath(p ...int) []int-
TestPath is a helper function that returns a path to use in a -TestUIDescriptor. +
TestPath is a utility function that constructs a path, represented as a slice +of integers, for use in a TestUIDescriptor. @@ -2001,22 +1991,22 @@
Action represents a custom event that can be propagated across the app. It -can contain a payload and be given additional context with tags. +can carry a payload and be enriched with additional contextual tags.
type Action struct { - // The name that identifies the action.. - Name string + // Name uniquely identifies the action. + Name string - // The value passed along with the action. Can be nil. - Value any + // Value is the data associated with the action and can be nil. + Value any - // Tags that provide some context to the action. + // Tags provide additional context or metadata for the action. Tags Tags }@@ -2035,13 +2025,13 @@
ActionHandler represents a handler that is executed when an action is created -with Context.NewAction(). +
ActionHandler defines a callback executed when an action is triggered +via Context.NewAction().
type ActionHandler func(Context, Action)@@ -2059,19 +2049,27 @@
AppInstaller is the interface that describes a component that is notified -when the application installation state changes. +
AppInstaller outlines components that receive notifications about changes in +the application's installation status. Through this interface, components can +actively respond to installation state transitions, facilitating dynamic +user experiences tailored to the app's current status.
type AppInstaller interface { - // The function called when the application becomes installable or - // installed. Use Context.IsAppInstallable() or Context.IsAppInstalled to - // check the install state. OnAppInstallChange is always called on the UI - // goroutine. + // OnAppInstallChange is invoked when the application shifts between the + // states of being installable and actually installed. + // + // To determine the current installation state, one can use + // Context.IsAppInstallable() or Context.IsAppInstalled(). + // + // By leveraging this method, components can maintain alignment with the + // app's installation status, potentially influencing UI elements like an + // "Install" button visibility or behavior. + // This method is always executed in the UI goroutine context. OnAppInstallChange(Context) }@@ -2089,17 +2087,22 @@
AppUpdater is the interface that describes a component that is notified when -the application is updated. +
AppUpdater defines components that are alerted when a newer version of the +application is downloaded in the background. Implementing this interface +allows components to proactively adapt to app updates, ensuring coherence +with the most up-to-date version of the application.
type AppUpdater interface { - // The function called when the application is updated. It is always called - // on the UI goroutine. + // OnAppUpdate is called once a new version of the application has been + // fetched in the background. It offers a window for components to execute + // actions, such as prompting a page reload, to transition to the updated + // app version. + // This function always operates within the UI goroutine context. OnAppUpdate(Context) }@@ -2160,7 +2163,7 @@
ClientDispatcher is the interface that describes a dispatcher that emulates a -client environment. - -
type ClientDispatcher interface { - Dispatcher - - // Consume executes all the remaining UI instructions. - Consume() - - // ConsumeNext executes the next UI instructions. - ConsumeNext() - - // Close consumes all the remaining UI instruction and releases allocated - // resources. - Close() - - // Mounts the given component as root element. - Mount(UI) - - // Triggers OnNav from the root component. - Nav(*url.URL) - - // Triggers OnAppUpdate from the root component. - AppUpdate() - - // Triggers OnAppInstallChange from the root component. - AppInstallChange() - - // Triggers OnAppResize from the root component. - AppResize() -}- - - - - - - - - - - -
func NewClientTester(n UI) ClientDispatcher-
NewClientTester creates a testing dispatcher that simulates a -client environment. The given UI element is mounted upon creation. - - - - - - - - - -
Compo represents the base struct to use in order to build a component. +
Compo serves as the foundational struct for constructing a component. It +provides basic methods and fields needed for component management.
type Compo struct { // contains filtered or unexported fields @@ -2306,100 +2241,59 @@type func (*Compo) JSValue +
func (*Compo) JSValue ¶
func (c *Compo) JSValue() Value-JSValue returns the javascript value of the component root. +
JSValue retrieves the JavaScript value associated with the component's root. +If the root element isn't defined, it returns a nil JavaScript value. -
func (*Compo) Kind - ¶ - - -
-func (c *Compo) Kind() Kind-Kind returns the ui element kind. - - - - - - -
func (*Compo) Mounted +
func (*Compo) Mounted ¶
func (c *Compo) Mounted() bool-Mounted reports whether the component is mounted. +
Mounted checks if the component is currently mounted within the UI. -
func (*Compo) Render +
func (*Compo) Render ¶
func (c *Compo) Render() UI-Render describes the component content. This is a default implementation to -satisfy the app.Composer interface. It should be redefined when app.Compo is -embedded. - - - - - - -
func (*Compo) ResizeContent - ¶ - - -
-func (c *Compo) ResizeContent()-ResizeContent triggers OnResize() on all the component children that -implement the Resizer interface. +
Render produces a visual representation of the component's content. This +default implementation ensures the app.Composer interface is satisfied +when app.Compo is embedded. However, developers are encouraged to redefine +this method to customize the component's appearance. -
func (*Compo) Update - ¶ - - -
-func (c *Compo) Update()-Update triggers a component appearance update. It should be called when a -field used to render the component has been modified. Updates are always -performed on the UI goroutine. - - - - - - -
func (*Compo) ValueTo +
func (*Compo) ValueTo ¶
func (c *Compo) ValueTo(v any) EventHandler-ValueTo stores the value of the DOM element (if exists) that emitted an event -into the given value. -
The given value must be a pointer to a signed integer, unsigned integer, or a -float. -
It panics if the given value is not a pointer. +
ValueTo captures the value of the DOM element (if it exists) that triggered +an event, and assigns it to the provided receiver. The receiver must be a +pointer pointing to either a string, integer, unsigned integer, or a float. +This method panics if the provided value isn't a pointer. @@ -2408,15 +2302,17 @@
func (*Compo) type Composer +
type Composer ¶
-Composer is the interface that describes a customized, independent and -reusable UI element. -
Satisfying this interface is done by embedding app.Compo into a struct and -implementing the Render function. +
Composer defines a contract for creating custom, independent, and reusable +UI elements. Components that satisfy the Composer interface serve as building +blocks for richer user interfaces in a structured manner. +
Implementing the Composer interface typically involves embedding app.Compo +into a struct and defining the Render method, which dictates the component's +visual representation.
Example:
type Hello struct { app.Compo @@ -2430,25 +2326,9 @@@@ -2466,24 +2346,45 @@type UI - // Render returns the node tree that define how the component is desplayed. + // Render constructs and returns the visual representation of the component + // as a node tree. Render() UI - - // Update update the component appearance. It should be called when a field - // used to render the component has been modified. - Update() - - // ResizeContent triggers OnResize() on all the component children that - // implement the Resizer interface. - ResizeContent() - - // ValueTo stores the value of the DOM element (if exists) that emitted an - // event into the given value. - // - // The given value must be a pointer to a signed integer, unsigned integer, - // or a float. - // - // It panics if the given value is not a pointer. - ValueTo(any) EventHandler // contains filtered or unexported methods }
type type Condition +
type Condition ¶
-Condition represents a control structure that displays nodes depending on a -given expression. +
Condition represents a control structure for conditionally displaying UI +elements. It extends the UI interface to include methods for handling +conditional logic.
type Condition interface { UI - // ElseIf sets the condition with the given nodes if previous expressions - // were not met and given expression is true. - ElseIf(expr bool, elems ...UI) Condition + // ElseIf sets a UI element to be displayed when the given boolean + // expression is true and all previous conditions have been false. + // + // expr: Boolean expression to evaluate. + // elem: Function that returns the UI element to display. + ElseIf(expr bool, elem func() UI) Condition - // Else sets the condition with the given UI elements if previous - // expressions were not met. - Else(elems ...UI) Condition + // ElseIfSlice sets multiple UI elements to be displayed when the given + // boolean expression is true and all previous conditions have been false. + // + // expr: Boolean expression to evaluate. + // elems: Function that returns a slice of UI elements to display. + ElseIfSlice(expr bool, elems func() []UI) Condition + + // Else sets a UI element to be displayed as a fallback when all previous + // conditions have been false. + // + // elem: Function that returns the UI element to display. + Else(elem func() UI) Condition + + // ElseSlice sets multiple UI elements to be displayed as a fallback when + // all previous conditions have been false. + // + // expr: Boolean expression to evaluate. + // elems: Function that returns a slice of UI elements to display. + ElseSlice(elems func() []UI) Condition + // contains filtered or unexported methods }@@ -2496,14 +2397,27 @@type func If +
func If ¶
-func If(expr bool, elems ...UI) Condition-If returns a condition that filters the given elements according to the given -expression. +
func If(expr bool, elem func() UI) Condition+If returns a Condition that will display the given UI element based on the +evaluation of the provided boolean expression. + + + + + +
func IfSlice + ¶ + + +
+func IfSlice(expr bool, elems func() []UI) Condition+IfSlice returns a Condition that will display the given slice of UI elements +based on the evaluation of the provided boolean expression. @@ -2513,326 +2427,449 @@
func type Context +
type Context ¶
-Context is the interface that describes a context tied to a UI element. -
A context provides mechanisms to deal with the browser, the current page, -navigation, concurrency, and component communication. -
It is canceled when its associated UI element is dismounted. +
Context represents a UI element-associated environment enabling interactions +with the browser, page navigation, concurrency, and component communication. -
type Context interface { ++ + + + + +type Context struct { context.Context + // contains filtered or unexported fields +} +
- // Returns the UI element tied to the context. - Src() UI - - // Returns the associated JavaScript value. The is an helper method for: - // ctx.Src.JSValue() - JSSrc() Value - - // Reports whether the app has been updated in background. Use app.Reload() - // to load the updated version. - AppUpdateAvailable() bool - - // Reports whether the app is installable. - IsAppInstallable() bool - - // Shows the app install prompt if the app is installable. - ShowAppInstallPrompt() - - // Returns the current page. - Page() Page - - // Executes the given function on the UI goroutine and notifies the - // context's nearest component to update its state. - Dispatch(fn func(Context)) - - // Executes the given function on the UI goroutine after notifying the - // context's nearest component to update its state. - Defer(fn func(Context)) - - // Registers the handler for the given action name. When an action occurs, - // the handler is executed on the UI goroutine. - Handle(actionName string, h ActionHandler) - - // Creates an action with optional tags, to be handled with Context.Handle. - // Eg: - // ctx.NewAction("myAction") - // ctx.NewAction("myAction", app.T("purpose", "test")) - // ctx.NewAction("myAction", app.Tags{ - // "foo": "bar", - // "hello": "world", - // }) - NewAction(name string, tags ...Tagger) - - // Creates an action with a value and optional tags, to be handled with - // Context.Handle. Eg: - // ctx.NewActionWithValue("processValue", 42) - // ctx.NewActionWithValue("processValue", 42, app.T("type", "number")) - // ctx.NewActionWithValue("myAction", 42, app.Tags{ - // "foo": "bar", - // "hello": "world", - // }) - NewActionWithValue(name string, v any, tags ...Tagger) - - // Executes the given function on a new goroutine. - // - // The difference versus just launching a goroutine is that it ensures that - // the asynchronous function is called before a page is fully pre-rendered - // and served over HTTP. - Async(fn func()) - - // Asynchronously waits for the given duration and dispatches the given - // function. - After(d time.Duration, fn func(Context)) - - // Executes the given function and notifies the parent components to update - // their state. It should be used to launch component custom event handlers. - Emit(fn func()) + - // Reloads the WebAssembly app to the current page. It is like refreshing - // the browser page. - Reload() + - // Navigates to the given URL. This is a helper method that converts url to - // an *url.URL and then calls ctx.NavigateTo under the hood. - Navigate(url string) + + + - // Navigates to the given URL. - NavigateTo(u *url.URL) + - // Resolves the given path to make it point to the right location whether - // static resources are located on a local directory or a remote bucket. - ResolveStaticResource(string) string + + +func (Context) After + ¶ + + +
+func (ctx Context) After(d time.Duration, f func(Context))+After pauses for a determined span, then triggers a specified function. - // Returns a storage that uses the browser local storage associated to the - // document origin. Data stored has no expiration time. - LocalStorage() BrowserStorage + + + + + +
func (Context) AppUpdateAvailable + ¶ + + +
+func (ctx Context) AppUpdateAvailable() bool+AppUpdateAvailable checks if there's a pending app update. - // Returns a storage that uses the browser session storage associated to the - // document origin. Data stored expire when the page session ends. - SessionStorage() BrowserStorage + + + + + +
func (Context) Async + ¶ + + +
+func (ctx Context) Async(v func())+Async initiates a function asynchronously. It enables go-app to monitor +goroutines, ensuring they conclude when rendering server-side. - // Scrolls to the HTML element with the given id. - ScrollTo(id string) + + + + + +
func (Context) Decrypt + ¶ + + +
+func (ctx Context) Decrypt(crypted []byte, v any) error+Decrypt deciphers encrypted data into a given reference value. - // Returns a UUID that identifies the app on the current device. - DeviceID() string + + + + + +
func (Context) Defer + ¶ + + +
+func (ctx Context) Defer(v func(Context))+Defer postpones the function execution on the UI goroutine until the +current update cycle completes. - // Encrypts the given value using AES encryption. - Encrypt(v any) ([]byte, error) + + + + + +
func (Context) DelState + ¶ + + +
+func (ctx Context) DelState(state string)+DelState erases a state, halting all associated observations. - // Decrypts the given encrypted bytes and stores them in the given value. - Decrypt(crypted []byte, v any) error + + + + + +
func (Context) DeviceID + ¶ + + +
+func (ctx Context) DeviceID() string+DeviceID fetches a distinct identifier for the app on the present device. - // Sets the state with the given value. - // Example: - // ctx.SetState("/globalNumber", 42, Persistent) - // - // Options can be added to persist a state into the local storage, encrypt, - // expire, or broadcast the state across browser tabs and windows. - // Example: - // ctx.SetState("/globalNumber", 42, Persistent, Broadcast) - SetState(state string, v any, opts ...StateOption) - - // Stores the specified state value into the given receiver. Panics when the - // receiver is not a pointer or nil. - GetState(state string, recv any) - - // Deletes the given state. All value observations are stopped. - DelState(state string) - - // Creates an observer that observes changes for the given state. - // Example: - // type myComponent struct { - // app.Compo - // - // number int - // } - // - // func (c *myComponent) OnMount(ctx app.Context) { - // ctx.ObserveState("/globalNumber").Value(&c.number) - // } - ObserveState(state string) Observer + + + + + +
func (Context) Dispatch + ¶ + + +
+func (ctx Context) Dispatch(v func(Context))+Dispatch prompts the execution of a function on the UI goroutine, +flagging the enclosing component for an update, respecting any +implemented UpdateNotifier behavior. - // Returns the app dispatcher. - Dispatcher() Dispatcher + + + + + +
func (Context) Encrypt + ¶ + + +
+func (ctx Context) Encrypt(v any) ([]byte, error)+Encrypt enciphers a value using AES encryption. - // Returns the service to setup and display notifications. - Notifications() NotificationService + + + + + +
func (Context) GetState + ¶ + + +
+func (ctx Context) GetState(state string, recv any)+GetState fetches the value of a particular state. - // Prevents the component that contains the context source to be updated. - PreventUpdate() -}
func (Context) Handle + ¶ + + +
+func (ctx Context) Handle(action string, h ActionHandler)+Handle designates a handler for a particular action, set to run on the UI +goroutine. + + + + +
func (Context) IsAppInstallable + ¶ + + +
+func (ctx Context) IsAppInstallable() bool+IsAppInstallable verifies if the app is eligible for installation. + + + + +
func (Context) JSSrc + ¶ + + +
+func (ctx Context) JSSrc() Value+JSSrc fetches the JavaScript representation of the associated UI element. + + + + +
func (Context) LocalStorage + ¶ + + +
+func (ctx Context) LocalStorage() BrowserStorage+LocalStorage accesses the browser's local storage tied to the document +origin. + + + + + +
func (Context) Navigate + ¶ + + +
+func (ctx Context) Navigate(rawURL string)+Navigate transitions to the given URL string. + + + + + +
func (Context) NavigateTo + ¶ + + +
+func (ctx Context) NavigateTo(u *url.URL)+NavigateTo transitions to the provided URL. + + + + +
func (Context) NewAction + ¶ + + +
+func (ctx Context) NewAction(action string, tags ...Tagger)+NewAction generates a new action for handling. - - - - -
type Dismounter - ¶ -
-Dismounter is the interface that describes a component that can perform -additional actions when dismounted. - -
type Dismounter interface { - Composer - - // The function called when the component is dismounted. It is always called - // on the UI goroutine. - OnDismount() -}- + + +func (Context) NewActionWithValue + ¶ + + +
+func (ctx Context) NewActionWithValue(action string, v any, tags ...Tagger)+NewActionWithValue crafts an action with a given value for processing. + + + + +
func (Context) Notifications + ¶ + + +
+func (ctx Context) Notifications() NotificationService+Notifications accesses the notifications service. + + + - - + +
func (Context) ObserveState + ¶ + + +
+func (ctx Context) ObserveState(state string, recv any) Observer+ObserveState establishes an observer for a state, tracking its changes. + + + + +
func (Context) Page + ¶ + + +
+func (ctx Context) Page() Page+Page retrieves the current active page. - - - - -
type Dispatch - ¶ -
-Dispatch represents an operation executed on the UI goroutine. - -
type Dispatch struct { - Mode DispatchMode - Source UI - Function func(Context) -} -- + + +func (Context) PreventUpdate + ¶ + + +
+func (ctx Context) PreventUpdate()+PreventUpdate halts updates for the enclosing component, respecting any +implemented UpdateNotifier behavior. + + + + +
func (Context) Reload + ¶ + + +
+func (ctx Context) Reload()+Reload refreshes the present page. + + + - - + +
func (Context) ResizeContent + ¶ + + +
+func (ctx Context) ResizeContent()+TODO: see whether to deprecate + + + + +
func (Context) ResolveStaticResource + ¶ + + +
+func (ctx Context) ResolveStaticResource(v string) string+ResolveStaticResource adjusts a given path to point to the correct static +resource location. - - - - -
type DispatchMode - ¶ -
-DispatchMode represents how a dispatch is processed. - -
type DispatchMode int- - -const ( - // A dispatch mode where the dispatched operation is enqueued to be executed - // as soon as possible and its associated UI element is updated at the end - // of the current update cycle. - Update DispatchMode = iota - - // A dispatch mode that schedules the dispatched operation to be executed - // after the current update frame. - Defer - - // A dispatch mode where the dispatched operation is enqueued to be executed - // as soon as possible. - Next -)+ +func (Context) ScrollTo + ¶ + + +
+func (ctx Context) ScrollTo(id string)+ScrollTo adjusts the scrollbar to target an HTML element by its ID. + + + + +
func (Context) SessionStorage + ¶ + + +
+func (ctx Context) SessionStorage() BrowserStorage+SessionStorage accesses the browser's session storage tied to the +document origin. + + + + +
func (Context) SetState + ¶ + + +
+func (ctx Context) SetState(state string, v any) State+SetState modifies a state with the provided value. + + + + - + +
func (Context) ShowAppInstallPrompt + ¶ + + +
+func (ctx Context) ShowAppInstallPrompt()+ShowAppInstallPrompt initiates the app installation process. + + + + +
func (Context) Src + ¶ + + +
+func (ctx Context) Src() UI+Src retrieves the linked UI element of the context. + + + -
type Dispatcher - ¶ +
type Dismounter + ¶
-Dispatcher is the interface that describes an environment that synchronizes -UI instructions and UI elements lifecycle. - -
type Dispatcher interface { - // Context returns the context associated with the root element. - Context() Context - - // Executes the given dispatch operation on the UI goroutine. - Dispatch(d Dispatch) - - // Emit executes the given function and notifies the source's parent - // components to update their state. - Emit(src UI, fn func()) - - // Handle registers the handler for the given action name. When an action - // occurs, the handler is executed on the UI goroutine. - Handle(actionName string, src UI, h ActionHandler) - - // Post posts the given action. The action is then handled by handlers - // registered with Handle() and Context.Handle(). - Post(a Action) - - // Sets the state with the given value. - SetState(state string, v any, opts ...StateOption) - - // Stores the specified state value into the given receiver. Panics when the - // receiver is not a pointer or nil. - GetState(state string, recv any) +Dismounter outlines the behavior for components that require specific +tasks or cleanup operations when they're detached from the DOM. Components +adhering to this interface can designate procedures to run immediately +after their removal from the DOM structure. - // Deletes the given state. - DelState(state string) - - // Creates an observer that observes changes for the specified state while - // the given element is mounted. - ObserveState(state string, elem UI) Observer - - // Async launches the given function on a new goroutine. - // - // The difference versus just launching a goroutine is that it ensures that - // the asynchronous instructions are called before the dispatcher is closed. - // - // This is important during component prerendering since asynchronous - // operations need to complete before sending a pre-rendered page over HTTP. - Async(fn func()) - - // Wait waits for the asynchronous operations launched with Async() to - // complete. - Wait() - // contains filtered or unexported methods +
type Dismounter interface { + // OnDismount is invoked immediately after the component is detached from + // the DOM. This method offers a stage for executing cleanup or other + // concluding operations. + // This function is executed within the UI goroutine. + OnDismount() }@@ -2849,7 +2886,7 @@type type Environment +
type Environment ¶ @@ -2953,7 +2990,7 @@
type type Func +
type Func ¶ @@ -2979,7 +3016,7 @@
type func FuncOf +
func FuncOf ¶ @@ -3007,206 +3044,246 @@
func type HTMLA +
type HTML + ¶ + + +
+HTML provides an interface for representing HTML elements within the +application. + +
type HTML interface { + UI + + // Tag retrieves the name of the HTML tag that the element represents. + Tag() string + + // XMLNamespace fetches the XML namespace associated with the HTML element. + // This is relevant for elements like SVG which might have a different + // namespace. + XMLNamespace() string + + // SelfClosing determines whether the HTML element is self-closing. + // For elements like <img> or <br> which don't have closing tags, this + // method returns true. Otherwise, it returns false. + SelfClosing() bool + // contains filtered or unexported methods +}+ + + + + + + + + + + + + + + +type HTMLA ¶
-HTMLA is the interface that describes a "a" HTML element. +
The interface that represents a "a" HTML element.
type HTMLA interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLA - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLA - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLA - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLA - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLA - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLA - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLA - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLA - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLA - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLA - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLA - // Download specifies that the target will be downloaded when a user clicks on the hyperlink. Uses the given format and values. + // Hints the browser to download the linked resource, optionally providing a default filename. Download(format string, v ...any) HTMLA - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLA - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLA - // Href specifies the URL of the page the link goes to with the given format and values. + // Points to the URL of the destination when the link is clicked. Href(format string, v ...any) HTMLA - // HrefLang specifies the language of the linked document with the given format and values. + // Declares the language of the linked document's content. HrefLang(format string, v ...any) HTMLA - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLA - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLA - // Media specifies what media/device the linked document is optimized for. Uses the given format and values. + // Indicates the intended media or device for the linked document. Media(format string, v ...any) HTMLA - // Ping specifies a list of URLs to be notified if the user follows the hyperlink. Uses the given format and values. + // Lists URLs to be notified when the user activates the hyperlink. Ping(format string, v ...any) HTMLA - // Rel specifies the relationship between the current document and the linked document. uses the given format and values. + // Describes the relationship between the current and linked documents. Rel(format string, v ...any) HTMLA - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLA - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLA - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLA + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLA - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLA - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLA - // Target specifies the target for where to open the linked document or where to submit the form. Uses the given format and values. + // Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values. Target(format string, v ...any) HTMLA - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLA - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLA - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLA - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLA - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLA - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLA - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLA - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLA - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLA - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLA - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLA - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLA - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLA - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLA - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLA - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLA - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLA - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLA - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLA - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLA - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLA - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLA - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLA - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLA - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLA - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLA - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLA - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLA - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLA - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLA - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLA - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLA - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLA - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLA - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLA - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLA - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLA }@@ -3220,13 +3297,13 @@type func A +
func A ¶
func A() HTMLA-A returns an HTML element that defines a hyperlink. +
Returns an HTML element that creates a hyperlink, allowing navigation to other web pages or resources. @@ -3236,182 +3313,182 @@
func type HTMLAbbr +
type HTMLAbbr ¶
-HTMLAbbr is the interface that describes a "abbr" HTML element. +
The interface that represents a "abbr" HTML element.
type HTMLAbbr interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLAbbr - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLAbbr - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLAbbr - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLAbbr - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLAbbr - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLAbbr - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLAbbr - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLAbbr - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLAbbr - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLAbbr - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLAbbr - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLAbbr - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLAbbr - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLAbbr - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLAbbr - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLAbbr - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLAbbr - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLAbbr + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLAbbr - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLAbbr - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLAbbr - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLAbbr - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLAbbr - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLAbbr - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLAbbr - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAbbr - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLAbbr - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLAbbr - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLAbbr - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLAbbr - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLAbbr - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAbbr - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAbbr - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAbbr - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAbbr - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAbbr - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLAbbr - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLAbbr - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLAbbr - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLAbbr - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAbbr - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLAbbr - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAbbr - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLAbbr - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLAbbr - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAbbr - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLAbbr - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLAbbr - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLAbbr - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLAbbr - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLAbbr - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLAbbr - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLAbbr - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLAbbr - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLAbbr - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLAbbr - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLAbbr }@@ -3425,13 +3502,13 @@type func Abbr +
func Abbr ¶
func Abbr() HTMLAbbr-Abbr returns an HTML element that defines an abbreviation or an acronym. +
Returns an HTML element that represents an abbreviation or an acronym, providing a longer description or meaning of the content. @@ -3441,182 +3518,182 @@
func type HTMLAddress +
type HTMLAddress ¶
-HTMLAddress is the interface that describes a "address" HTML element. +
The interface that represents a "address" HTML element.
type HTMLAddress interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLAddress - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLAddress - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLAddress - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLAddress - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLAddress - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLAddress - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLAddress - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLAddress - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLAddress - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLAddress - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLAddress - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLAddress - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLAddress - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLAddress - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLAddress - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLAddress - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLAddress - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLAddress + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLAddress - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLAddress - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLAddress - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLAddress - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLAddress - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLAddress - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLAddress - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAddress - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLAddress - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLAddress - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLAddress - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLAddress - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLAddress - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAddress - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAddress - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAddress - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAddress - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAddress - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLAddress - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLAddress - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLAddress - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLAddress - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAddress - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLAddress - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAddress - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLAddress - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLAddress - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAddress - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLAddress - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLAddress - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLAddress - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLAddress - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLAddress - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLAddress - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLAddress - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLAddress - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLAddress - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLAddress - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLAddress }@@ -3630,13 +3707,13 @@type func Address +
func Address ¶
func Address() HTMLAddress-Address returns an HTML element that defines contact information for the author/owner of a document. +
Returns an HTML element that designates contact information for the author or owner of a document or web page. @@ -3646,203 +3723,203 @@
func type HTMLArea +
type HTMLArea ¶
-HTMLArea is the interface that describes a "area" HTML element. +
The interface that represents a "area" HTML element.
type HTMLArea interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLArea - // Alt specifies an alternate text with the given format and values when the original element fails to display. + // Provides a text alternative for elements (often images) ensuring content is accessible when visuals can't be rendered. Alt(format string, v ...any) HTMLArea - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLArea - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLArea - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLArea - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLArea - // Coords specifies the coordinates of the area with the given format and values. + // Defines the coordinates for elements in an image map, establishing active regions for hyperlinks. Coords(format string, v ...any) HTMLArea - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLArea - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLArea - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLArea - // Download specifies that the target will be downloaded when a user clicks on the hyperlink. Uses the given format and values. + // Hints the browser to download the linked resource, optionally providing a default filename. Download(format string, v ...any) HTMLArea - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLArea - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLArea - // Href specifies the URL of the page the link goes to with the given format and values. + // Points to the URL of the destination when the link is clicked. Href(format string, v ...any) HTMLArea - // HrefLang specifies the language of the linked document with the given format and values. + // Declares the language of the linked document's content. HrefLang(format string, v ...any) HTMLArea - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLArea - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLArea - // Media specifies what media/device the linked document is optimized for. Uses the given format and values. + // Indicates the intended media or device for the linked document. Media(format string, v ...any) HTMLArea - // Rel specifies the relationship between the current document and the linked document. uses the given format and values. + // Describes the relationship between the current and linked documents. Rel(format string, v ...any) HTMLArea - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLArea - // Shape specifies the shape of the area with the given format and values. + // Describes the shape of a clickable area within an image map. Uses the given format and values. Shape(format string, v ...any) HTMLArea - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLArea - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLArea + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLArea - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLArea - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLArea - // Target specifies the target for where to open the linked document or where to submit the form. Uses the given format and values. + // Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values. Target(format string, v ...any) HTMLArea - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLArea - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLArea - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLArea - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLArea - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLArea - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLArea - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLArea - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLArea - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLArea - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLArea - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLArea - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLArea - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLArea - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLArea - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLArea - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLArea - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLArea - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLArea - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLArea - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLArea - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLArea - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLArea - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLArea - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLArea - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLArea - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLArea - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLArea - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLArea - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLArea - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLArea - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLArea - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLArea - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLArea - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLArea - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLArea - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLArea - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLArea }@@ -3856,13 +3933,13 @@type func Area +
func Area ¶
func Area() HTMLArea-Area returns an HTML element that defines an area inside an image-map. +
Returns an HTML element that defines a clickable region within an image map, usually linking to another resource. @@ -3872,182 +3949,182 @@
func type HTMLArticle +
type HTMLArticle ¶
-HTMLArticle is the interface that describes a "article" HTML element. +
The interface that represents a "article" HTML element.
type HTMLArticle interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLArticle - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLArticle - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLArticle - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLArticle - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLArticle - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLArticle - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLArticle - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLArticle - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLArticle - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLArticle - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLArticle - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLArticle - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLArticle - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLArticle - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLArticle - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLArticle - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLArticle - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLArticle + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLArticle - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLArticle - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLArticle - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLArticle - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLArticle - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLArticle - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLArticle - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLArticle - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLArticle - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLArticle - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLArticle - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLArticle - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLArticle - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLArticle - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLArticle - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLArticle - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLArticle - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLArticle - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLArticle - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLArticle - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLArticle - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLArticle - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLArticle - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLArticle - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLArticle - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLArticle - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLArticle - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLArticle - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLArticle - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLArticle - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLArticle - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLArticle - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLArticle - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLArticle - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLArticle - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLArticle - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLArticle - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLArticle - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLArticle }@@ -4061,13 +4138,13 @@type func Article +
func Article ¶
func Article() HTMLArticle-Article returns an HTML element that defines an article. +
Returns an HTML element that marks a self-contained composition in a document, like a blog post or news story. @@ -4077,182 +4154,182 @@
func type HTMLAside +
type HTMLAside ¶
-HTMLAside is the interface that describes a "aside" HTML element. +
The interface that represents a "aside" HTML element.
type HTMLAside interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLAside - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLAside - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLAside - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLAside - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLAside - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLAside - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLAside - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLAside - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLAside - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLAside - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLAside - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLAside - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLAside - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLAside - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLAside - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLAside - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLAside - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLAside + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLAside - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLAside - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLAside - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLAside - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLAside - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLAside - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLAside - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAside - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLAside - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLAside - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLAside - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLAside - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLAside - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAside - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAside - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAside - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAside - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAside - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLAside - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLAside - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLAside - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLAside - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAside - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLAside - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAside - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLAside - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLAside - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAside - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLAside - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLAside - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLAside - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLAside - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLAside - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLAside - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLAside - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLAside - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLAside - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLAside - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLAside }@@ -4266,13 +4343,13 @@type func Aside +
func Aside ¶
func Aside() HTMLAside-Aside returns an HTML element that defines content aside from the page content. +
Returns an HTML element that represents content tangentially related to the main content, and can be considered separate. @@ -4282,272 +4359,272 @@
func type HTMLAudio +
type HTMLAudio ¶
-HTMLAudio is the interface that describes a "audio" HTML element. +
The interface that represents a "audio" HTML element.
type HTMLAudio interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLAudio - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLAudio - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLAudio - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLAudio - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLAudio - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLAudio - // AutoPlay specifies that the audio/video will start playing as soon as it is ready. + // Automatically plays audio or video elements once they're ready, enhancing media responsiveness. AutoPlay(v bool) HTMLAudio - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLAudio - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLAudio - // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc). + // Indicates the presence of user interface controls for audio or video elements, such as play or pause buttons. Controls(v bool) HTMLAudio - // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values. + // Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins. CrossOrigin(format string, v ...any) HTMLAudio - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLAudio - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLAudio - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLAudio - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLAudio - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLAudio - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLAudio - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLAudio - // Loop specifies that the audio/video will start over again, every time it is finished. + // Indicates that the audio or video should replay from the beginning upon reaching its end. Loop(v bool) HTMLAudio - // Muted specifies that the audio output of the video should be muted. + // Ensures that the video's audio playback is muted. Muted(v bool) HTMLAudio - // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads. Uses the given format and values. + // Indicates the preferred loading method for audio/video upon page load. Preload(format string, v ...any) HTMLAudio - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLAudio - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLAudio - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLAudio - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLAudio + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLAudio - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLAudio - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLAudio - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLAudio - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLAudio - // OnAbort calls the given handler on abort. + // Triggers the handler when media loading is aborted. OnAbort(h EventHandler, scope ...any) HTMLAudio - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLAudio - // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). + // Executes the handler when media has buffered sufficiently to begin playback. OnCanPlay(h EventHandler, scope ...any) HTMLAudio - // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. + // Invokes the handler when media can be played through without buffering interruptions. OnCanPlayThrough(h EventHandler, scope ...any) HTMLAudio - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLAudio - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLAudio - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLAudio - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLAudio - // OnCueChange calls the given handler when the cue changes in a track element. + // Triggers the handler upon cue changes within a track element. OnCueChange(h EventHandler, scope ...any) HTMLAudio - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLAudio - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLAudio - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLAudio - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLAudio - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLAudio - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLAudio - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLAudio - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLAudio - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLAudio - // OnDurationChange calls the given handler when the length of the media changes. + // Executes the handler when the media's duration changes. OnDurationChange(h EventHandler, scope ...any) HTMLAudio - // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). + // Invokes the handler when media unexpectedly becomes unavailable. OnEmptied(h EventHandler, scope ...any) HTMLAudio - // OnEnded calls the given handler when the media has reach the end. + // Triggers the handler when media playback reaches the end. OnEnded(h EventHandler, scope ...any) HTMLAudio - // OnError calls the given handler when an error occurs. + // Invokes the given handler when an error is encountered. OnError(h EventHandler, scope ...any) HTMLAudio - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLAudio - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLAudio - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLAudio - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLAudio - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLAudio - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLAudio - // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. + // Triggers the handler when media loading commences. OnLoadStart(h EventHandler, scope ...any) HTMLAudio - // OnLoadedData calls the given handler when media data is loaded. + // Executes the handler as media data finishes loading. OnLoadedData(h EventHandler, scope ...any) HTMLAudio - // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. + // Invokes the handler when metadata (like duration and dimensions) are fully loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLAudio - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLAudio - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLAudio - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLAudio - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLAudio - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLAudio - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLAudio - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLAudio - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLAudio - // OnPause calls the given handler when the media is paused either by the user or programmatically. + // Executes the handler when media playback is paused. OnPause(h EventHandler, scope ...any) HTMLAudio - // OnPlay calls the given handler when the media is ready to start playing. + // Invokes the handler when media starts its playback. OnPlay(h EventHandler, scope ...any) HTMLAudio - // OnPlaying calls the given handler when the media actually has started playing. + // Triggers the handler once the media has initiated playback. OnPlaying(h EventHandler, scope ...any) HTMLAudio - // OnProgress calls the given handler when the browser is in the process of getting the media data. + // Executes the handler while the browser fetches media data. OnProgress(h EventHandler, scope ...any) HTMLAudio - // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). + // Invokes the handler when playback rate changes (e.g., slow motion or fast forward). OnRateChange(h EventHandler, scope ...any) HTMLAudio - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLAudio - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLAudio - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLAudio - // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. + // Triggers the handler post seeking completion. OnSeeked(h EventHandler, scope ...any) HTMLAudio - // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. + // Executes the handler during the seeking process. OnSeeking(h EventHandler, scope ...any) HTMLAudio - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLAudio - // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. + // Invokes the handler when media data fetching stalls. OnStalled(h EventHandler, scope ...any) HTMLAudio - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLAudio - // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. + // Triggers the handler when media data fetching is suspended. OnSuspend(h EventHandler, scope ...any) HTMLAudio - // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). + // Executes the handler when the media's playback position changes. OnTimeUpdate(h EventHandler, scope ...any) HTMLAudio - // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). + // Invokes the handler upon volume changes or muting. OnVolumeChange(h EventHandler, scope ...any) HTMLAudio - // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). + // Triggers the handler when media pauses, awaiting further buffering. OnWaiting(h EventHandler, scope ...any) HTMLAudio - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLAudio }@@ -4561,13 +4638,13 @@type func Audio +
func Audio ¶
func Audio() HTMLAudio-Audio returns an HTML element that defines sound content. +
Returns an HTML element that embeds an audio player for playing sound or music content. @@ -4577,182 +4654,182 @@
func type HTMLB +
type HTMLB ¶
-HTMLB is the interface that describes a "b" HTML element. +
The interface that represents a "b" HTML element.
type HTMLB interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLB - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLB - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLB - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLB - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLB - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLB - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLB - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLB - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLB - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLB - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLB - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLB - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLB - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLB - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLB - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLB - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLB - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLB + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLB - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLB - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLB - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLB - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLB - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLB - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLB - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLB - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLB - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLB - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLB - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLB - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLB - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLB - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLB - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLB - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLB - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLB - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLB - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLB - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLB - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLB - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLB - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLB - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLB - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLB - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLB - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLB - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLB - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLB - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLB - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLB - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLB - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLB - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLB - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLB - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLB - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLB - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLB }@@ -4766,13 +4843,13 @@type func B +
func B ¶
func B() HTMLB-B returns an HTML element that defines bold text. +
Returns an HTML element that applies bold styling to its content. @@ -4782,179 +4859,179 @@
func type HTMLBase +
type HTMLBase ¶
-HTMLBase is the interface that describes a "base" HTML element. +
The interface that represents a "base" HTML element.
type HTMLBase interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLBase - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLBase - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLBase - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLBase - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLBase - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLBase - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLBase - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLBase - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLBase - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLBase - // Href specifies the URL of the page the link goes to with the given format and values. + // Points to the URL of the destination when the link is clicked. Href(format string, v ...any) HTMLBase - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLBase - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLBase - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLBase - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLBase - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLBase + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLBase - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLBase - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLBase - // Target specifies the target for where to open the linked document or where to submit the form. Uses the given format and values. + // Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values. Target(format string, v ...any) HTMLBase - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLBase - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLBase - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBase - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLBase - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBase - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLBase - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLBase - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLBase - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLBase - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLBase - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBase - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBase - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBase - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBase - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBase - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLBase - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLBase - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLBase - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLBase - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBase - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLBase - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBase - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLBase - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLBase - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBase - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLBase - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLBase - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLBase - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLBase - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLBase - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLBase - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLBase - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLBase - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLBase - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLBase - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLBase }@@ -4968,13 +5045,13 @@type func Base +
func Base ¶
func Base() HTMLBase-Base returns an HTML element that specifies the base URL/target for all relative URLs in a document. +
Returns an HTML element that specifies the base URL and target for all relative URLs in the document. @@ -4984,182 +5061,182 @@
func type HTMLBdi +
type HTMLBdi ¶
-HTMLBdi is the interface that describes a "bdi" HTML element. +
The interface that represents a "bdi" HTML element.
type HTMLBdi interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLBdi - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLBdi - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLBdi - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLBdi - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLBdi - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLBdi - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLBdi - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLBdi - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLBdi - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLBdi - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLBdi - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLBdi - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLBdi - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLBdi - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLBdi - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLBdi - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLBdi - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLBdi + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLBdi - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLBdi - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLBdi - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLBdi - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLBdi - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBdi - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLBdi - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBdi - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLBdi - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLBdi - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLBdi - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLBdi - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLBdi - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBdi - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBdi - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBdi - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBdi - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBdi - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLBdi - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLBdi - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLBdi - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLBdi - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBdi - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLBdi - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBdi - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLBdi - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLBdi - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBdi - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLBdi - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLBdi - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLBdi - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLBdi - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLBdi - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLBdi - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLBdi - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLBdi - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLBdi - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLBdi - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLBdi }@@ -5173,13 +5250,13 @@type func Bdi +
func Bdi ¶
func Bdi() HTMLBdi-Bdi returns an HTML element that isolates a part of text that might be formatted in a different direction from other text outside it. +
Returns an HTML element that isolates a section of text, allowing it to be formatted in a different direction than the surrounding content. @@ -5189,182 +5266,182 @@
func type HTMLBdo +
type HTMLBdo ¶
-HTMLBdo is the interface that describes a "bdo" HTML element. +
The interface that represents a "bdo" HTML element.
type HTMLBdo interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLBdo - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLBdo - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLBdo - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLBdo - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLBdo - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLBdo - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLBdo - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLBdo - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLBdo - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLBdo - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLBdo - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLBdo - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLBdo - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLBdo - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLBdo - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLBdo - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLBdo - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLBdo + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLBdo - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLBdo - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLBdo - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLBdo - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLBdo - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBdo - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLBdo - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBdo - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLBdo - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLBdo - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLBdo - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLBdo - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLBdo - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBdo - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBdo - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBdo - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBdo - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBdo - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLBdo - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLBdo - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLBdo - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLBdo - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBdo - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLBdo - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBdo - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLBdo - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLBdo - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBdo - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLBdo - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLBdo - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLBdo - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLBdo - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLBdo - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLBdo - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLBdo - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLBdo - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLBdo - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLBdo - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLBdo }@@ -5378,13 +5455,13 @@type func Bdo +
func Bdo ¶
func Bdo() HTMLBdo-Bdo returns an HTML element that overrides the current text direction. +
Returns an HTML element that controls the text direction of its content, overriding other directional settings. @@ -5394,185 +5471,185 @@
func type HTMLBlockquote +
type HTMLBlockquote ¶
-HTMLBlockquote is the interface that describes a "blockquote" HTML element. +
The interface that represents a "blockquote" HTML element.
type HTMLBlockquote interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLBlockquote - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLBlockquote - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLBlockquote - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLBlockquote - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLBlockquote - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLBlockquote - // Cite specifies a URL which explains the quote/deleted/inserted text with the given format and values. + // Provides a reference or link to a source explaining quoted or modified content in the element. Cite(format string, v ...any) HTMLBlockquote - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLBlockquote - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLBlockquote - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLBlockquote - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLBlockquote - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLBlockquote - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLBlockquote - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLBlockquote - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLBlockquote - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLBlockquote - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLBlockquote - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLBlockquote - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLBlockquote + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLBlockquote - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLBlockquote - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLBlockquote - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLBlockquote - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLBlockquote - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBlockquote - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLBlockquote - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBlockquote - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLBlockquote - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLBlockquote - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLBlockquote - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLBlockquote - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLBlockquote - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBlockquote - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBlockquote - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBlockquote - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBlockquote - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBlockquote - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLBlockquote - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLBlockquote - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLBlockquote - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLBlockquote - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBlockquote - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLBlockquote - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBlockquote - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLBlockquote - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLBlockquote - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBlockquote - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLBlockquote - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLBlockquote - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLBlockquote - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLBlockquote - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLBlockquote - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLBlockquote - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLBlockquote - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLBlockquote - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLBlockquote - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLBlockquote - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLBlockquote }@@ -5586,13 +5663,13 @@type func Blockquote +
func Blockquote ¶
func Blockquote() HTMLBlockquote-Blockquote returns an HTML element that defines a section that is quoted from another source. +
Returns an HTML element that represents a section of text quoted from another source. @@ -5602,218 +5679,218 @@
func type HTMLBody +
type HTMLBody ¶
-HTMLBody is the interface that describes a "body" HTML element. +
The interface that represents a "body" HTML element.
type HTMLBody interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLBody - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLBody - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLBody - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLBody - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLBody - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLBody - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLBody - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLBody - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLBody - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLBody - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLBody - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLBody - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLBody - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLBody - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLBody + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLBody - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLBody - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLBody - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLBody - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLBody - // OnAfterPrint runs the given handler after the document is printed. + // Executes the given handler after the document has been printed. OnAfterPrint(h EventHandler, scope ...any) HTMLBody - // OnBeforePrint calls the given handler before the document is printed. + // Invokes the specified handler before the document gets printed. OnBeforePrint(h EventHandler, scope ...any) HTMLBody - // OnBeforeUnload calls the given handler when the document is about to be unloaded. + // Triggers the specified handler when the document is about to be unloaded. OnBeforeUnload(h EventHandler, scope ...any) HTMLBody - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBody - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLBody - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBody - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLBody - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLBody - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLBody - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLBody - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLBody - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBody - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBody - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBody - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBody - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBody - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLBody - // OnError calls the given handler when an error occurs. + // Invokes the given handler when an error is encountered. OnError(h EventHandler, scope ...any) HTMLBody - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLBody - // OnHashChange calls the given handler when there has been changes to the anchor part of the a URL. + // Triggers the specified handler when changes occur to the anchor part of the URL. OnHashChange(h EventHandler, scope ...any) HTMLBody - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLBody - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLBody - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBody - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLBody - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBody - // OnLoad calls the given handler after the element is finished loading. + // Executes the specified handler once the element has completely loaded. OnLoad(h EventHandler, scope ...any) HTMLBody - // OnMessage calls then given handler when a message is triggered. + // Triggers the provided handler when a message event occurs. OnMessage(h EventHandler, scope ...any) HTMLBody - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLBody - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLBody - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBody - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLBody - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLBody - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLBody - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLBody - // OnOffline calls the given handler when the browser starts to work offline. + // Invokes the given handler when the browser transitions to offline mode. OnOffline(h EventHandler, scope ...any) HTMLBody - // OnOnline calls the given handler when the browser starts to work online. + // Executes the specified handler when the browser transitions to online mode. OnOnline(h EventHandler, scope ...any) HTMLBody - // OnPageHide calls the given handler when a user navigates away from a page. + // Triggers the given handler when a user navigates away from the current page. OnPageHide(h EventHandler, scope ...any) HTMLBody - // OnPageShow calls the given handler when a user navigates to a page. + // Invokes the specified handler when a user navigates to the page. OnPageShow(h EventHandler, scope ...any) HTMLBody - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLBody - // OnPopState calls the given handler when the window's history changes. + // Executes the provided handler when changes are made to the window's history. OnPopState(h EventHandler, scope ...any) HTMLBody - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLBody - // OnResize calls the given handler when the browser window is resized. + // Triggers the given handler upon resizing the browser window. OnResize(h EventHandler, scope ...any) HTMLBody - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLBody - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLBody - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLBody - // OnStorage calls the given handler when a Web Storage area is updated. + // Invokes the specified handler when a Web Storage area undergoes updates. OnStorage(h EventHandler, scope ...any) HTMLBody - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLBody - // OnUnload calls the given handler once a page has unloaded (or the browser window has been closed). + // Executes the provided handler once the page has been unloaded or the browser window closes. OnUnload(h EventHandler, scope ...any) HTMLBody - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLBody // contains filtered or unexported methods }@@ -5828,13 +5905,13 @@type func Body +
func Body ¶
func Body() HTMLBody-Body returns an HTML element that defines the document's body. +
Returns an HTML element that encloses the main content of the HTML document. @@ -5844,173 +5921,173 @@
func type HTMLBr +
type HTMLBr ¶
-HTMLBr is the interface that describes a "br" HTML element. +
The interface that represents a "br" HTML element.
type HTMLBr interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLBr - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLBr - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLBr - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLBr - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLBr - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLBr - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLBr - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLBr - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLBr - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLBr - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLBr - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLBr - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLBr - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLBr - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLBr + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLBr - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLBr - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLBr - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLBr - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLBr - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLBr - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLBr - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLBr - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLBr - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLBr - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLBr - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLBr - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLBr - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLBr - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLBr - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLBr - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLBr - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLBr - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLBr - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLBr - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLBr - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLBr - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLBr - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLBr - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLBr - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLBr - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLBr - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLBr - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLBr - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLBr - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLBr - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLBr - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLBr - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLBr - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLBr - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLBr - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLBr - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLBr - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLBr }@@ -6024,13 +6101,13 @@type func Br +
func Br ¶
func Br() HTMLBr-Br returns an HTML element that defines a single line break. +
Returns an HTML element that inserts a line break within inline content. @@ -6040,215 +6117,215 @@
func type HTMLButton +
type HTMLButton ¶
-HTMLButton is the interface that describes a "button" HTML element. +
The interface that represents a "button" HTML element.
type HTMLButton interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLButton - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLButton - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLButton - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLButton - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLButton - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLButton - // AutoFocus specifies that the element should automatically get focus when the page loads. + // Instructs the browser to focus this element automatically when the page loads. AutoFocus(v bool) HTMLButton - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLButton - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLButton - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLButton - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLButton - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLButton - // Disabled specifies that the specified element/group of elements should be disabled. + // Deactivates an element, rendering it uninteractive and visually distinct. Disabled(v bool) HTMLButton - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLButton - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLButton - // FormAction specifies where to send the form-data when a form is submitted. Only for submit type. Uses the given format and values. + // Defines the URL to which form data should be sent upon submission. Applicable only to 'submit' type inputs. FormAction(format string, v ...any) HTMLButton - // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type. Uses the given format and values. + // Dictates the encoding method for form data prior to its submission to a server. Applicable only to 'submit' type inputs. FormEncType(format string, v ...any) HTMLButton - // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type. Uses the given format and values. + // Determines the HTTP method for sending form data. Applicable only to 'submit' type inputs. FormMethod(format string, v ...any) HTMLButton - // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type. + // Indicates that the form data should bypass validation upon submission. Applicable only to 'submit' type inputs. FormNoValidate(v bool) HTMLButton - // FormTarget specifies where to display the response after submitting the form. Only for submit type. Uses the given format and values. + // Specifies where the server's response will be displayed after form submission. Applicable only to 'submit' type inputs. FormTarget(format string, v ...any) HTMLButton - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLButton - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLButton - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLButton - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLButton - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLButton - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLButton - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLButton + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLButton - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLButton - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLButton - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLButton - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLButton - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLButton - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLButton - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLButton - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLButton - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLButton - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLButton - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLButton - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLButton - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLButton - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLButton - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLButton - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLButton - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLButton - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLButton - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLButton - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLButton - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLButton - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLButton - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLButton - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLButton - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLButton - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLButton - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLButton - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLButton - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLButton - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLButton - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLButton - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLButton - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLButton - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLButton - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLButton - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLButton - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLButton - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLButton - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLButton - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLButton }@@ -6262,13 +6339,13 @@type func Button +
func Button ¶
func Button() HTMLButton-Button returns an HTML element that defines a clickable button. +
Returns an HTML element that creates a clickable button, typically used for form submission or triggering interactions. @@ -6278,188 +6355,188 @@
func type HTMLCanvas +
type HTMLCanvas ¶
-HTMLCanvas is the interface that describes a "canvas" HTML element. +
The interface that represents a "canvas" HTML element.
type HTMLCanvas interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLCanvas - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLCanvas - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLCanvas - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLCanvas - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLCanvas - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLCanvas - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLCanvas - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLCanvas - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLCanvas - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLCanvas - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLCanvas - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLCanvas - // Height specifies the height of the element (in pixels). + // Sets the height of the element, measured in pixels. Height(v int) HTMLCanvas - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLCanvas - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLCanvas - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLCanvas - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLCanvas - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLCanvas - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLCanvas + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLCanvas - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLCanvas - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLCanvas - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLCanvas - // Width specifies the width of the element. + // Sets the width of the element. Width(v int) HTMLCanvas - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLCanvas - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCanvas - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLCanvas - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCanvas - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLCanvas - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLCanvas - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLCanvas - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLCanvas - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLCanvas - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCanvas - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCanvas - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCanvas - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCanvas - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCanvas - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLCanvas - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLCanvas - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLCanvas - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLCanvas - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCanvas - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLCanvas - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCanvas - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLCanvas - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLCanvas - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCanvas - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLCanvas - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLCanvas - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLCanvas - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLCanvas - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLCanvas - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLCanvas - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLCanvas - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLCanvas - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLCanvas - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLCanvas - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLCanvas }@@ -6473,13 +6550,13 @@type func Canvas +
func Canvas ¶
func Canvas() HTMLCanvas-Canvas returns an HTML element that is used to draw graphics on the fly. +
Returns an HTML element that provides a space where graphics can be rendered dynamically, such as 2D drawings or 3D visualizations. @@ -6489,182 +6566,182 @@
func type HTMLCaption +
type HTMLCaption ¶
-HTMLCaption is the interface that describes a "caption" HTML element. +
The interface that represents a "caption" HTML element.
type HTMLCaption interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLCaption - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLCaption - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLCaption - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLCaption - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLCaption - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLCaption - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLCaption - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLCaption - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLCaption - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLCaption - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLCaption - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLCaption - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLCaption - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLCaption - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLCaption - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLCaption - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLCaption - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLCaption + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLCaption - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLCaption - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLCaption - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLCaption - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLCaption - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCaption - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLCaption - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCaption - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLCaption - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLCaption - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLCaption - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLCaption - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLCaption - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCaption - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCaption - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCaption - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCaption - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCaption - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLCaption - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLCaption - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLCaption - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLCaption - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCaption - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLCaption - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCaption - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLCaption - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLCaption - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCaption - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLCaption - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLCaption - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLCaption - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLCaption - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLCaption - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLCaption - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLCaption - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLCaption - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLCaption - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLCaption - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLCaption }@@ -6678,13 +6755,13 @@type func Caption +
func Caption ¶
func Caption() HTMLCaption-Caption returns an HTML element that defines a table caption. +
Returns an HTML element that represents the title or description of a table, usually appearing above or below the table. @@ -6694,182 +6771,182 @@
func type HTMLCite +
type HTMLCite ¶
-HTMLCite is the interface that describes a "cite" HTML element. +
The interface that represents a "cite" HTML element.
type HTMLCite interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLCite - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLCite - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLCite - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLCite - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLCite - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLCite - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLCite - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLCite - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLCite - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLCite - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLCite - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLCite - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLCite - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLCite - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLCite - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLCite - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLCite - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLCite + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLCite - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLCite - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLCite - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLCite - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLCite - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCite - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLCite - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCite - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLCite - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLCite - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLCite - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLCite - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLCite - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCite - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCite - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCite - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCite - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCite - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLCite - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLCite - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLCite - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLCite - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCite - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLCite - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCite - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLCite - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLCite - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCite - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLCite - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLCite - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLCite - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLCite - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLCite - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLCite - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLCite - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLCite - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLCite - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLCite - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLCite }@@ -6883,13 +6960,13 @@type func Cite +
func Cite ¶
func Cite() HTMLCite-Cite returns an HTML element that defines the title of a work. +
Returns an HTML element that indicates the title or reference of a creative work, such as a book, film, or research paper. @@ -6899,182 +6976,182 @@
func type HTMLCode +
type HTMLCode ¶
-HTMLCode is the interface that describes a "code" HTML element. +
The interface that represents a "code" HTML element.
type HTMLCode interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLCode - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLCode - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLCode - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLCode - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLCode - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLCode - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLCode - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLCode - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLCode - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLCode - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLCode - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLCode - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLCode - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLCode - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLCode - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLCode - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLCode - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLCode + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLCode - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLCode - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLCode - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLCode - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLCode - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCode - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLCode - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCode - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLCode - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLCode - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLCode - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLCode - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLCode - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCode - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCode - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCode - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCode - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCode - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLCode - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLCode - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLCode - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLCode - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCode - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLCode - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCode - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLCode - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLCode - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCode - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLCode - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLCode - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLCode - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLCode - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLCode - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLCode - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLCode - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLCode - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLCode - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLCode - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLCode }@@ -7088,13 +7165,13 @@type func Code +
func Code ¶
func Code() HTMLCode-Code returns an HTML element that defines a piece of computer code. +
Returns an HTML element that displays a single line of code or a code snippet, preserving its formatting. @@ -7104,176 +7181,176 @@
func type HTMLCol +
type HTMLCol ¶
-HTMLCol is the interface that describes a "col" HTML element. +
The interface that represents a "col" HTML element.
type HTMLCol interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLCol - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLCol - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLCol - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLCol - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLCol - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLCol - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLCol - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLCol - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLCol - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLCol - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLCol - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLCol - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLCol - // Span specifies the number of columns to span. + // Defines how many columns or rows a cell should span. Span(v int) HTMLCol - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLCol - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLCol + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLCol - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLCol - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLCol - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLCol - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLCol - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLCol - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLCol - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLCol - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLCol - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLCol - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLCol - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLCol - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLCol - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLCol - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLCol - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLCol - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLCol - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLCol - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLCol - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLCol - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLCol - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLCol - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLCol - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLCol - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLCol - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLCol - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLCol - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLCol - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLCol - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLCol - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLCol - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLCol - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLCol - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLCol - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLCol - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLCol - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLCol - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLCol - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLCol }@@ -7287,13 +7364,13 @@type func Col +
func Col ¶
func Col() HTMLCol-Col returns an HTML element that specifies column properties for each column within a colgroup element. +
Returns an HTML element that defines the properties for a single column or a group of columns within a table, when nested within a `<colgroup>` element. @@ -7303,185 +7380,185 @@
func type HTMLColGroup +
type HTMLColGroup ¶
-HTMLColGroup is the interface that describes a "colgroup" HTML element. +
The interface that represents a "colgroup" HTML element.
type HTMLColGroup interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLColGroup - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLColGroup - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLColGroup - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLColGroup - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLColGroup - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLColGroup - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLColGroup - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLColGroup - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLColGroup - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLColGroup - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLColGroup - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLColGroup - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLColGroup - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLColGroup - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLColGroup - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLColGroup - // Span specifies the number of columns to span. + // Defines how many columns or rows a cell should span. Span(v int) HTMLColGroup - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLColGroup - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLColGroup + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLColGroup - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLColGroup - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLColGroup - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLColGroup - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLColGroup - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLColGroup - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLColGroup - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLColGroup - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLColGroup - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLColGroup - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLColGroup - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLColGroup - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLColGroup - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLColGroup - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLColGroup - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLColGroup - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLColGroup - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLColGroup - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLColGroup - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLColGroup - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLColGroup - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLColGroup - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLColGroup - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLColGroup - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLColGroup - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLColGroup - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLColGroup - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLColGroup - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLColGroup - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLColGroup - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLColGroup - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLColGroup - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLColGroup - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLColGroup - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLColGroup - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLColGroup - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLColGroup - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLColGroup - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLColGroup }@@ -7495,13 +7572,13 @@type func ColGroup +
func ColGroup ¶
func ColGroup() HTMLColGroup-ColGroup returns an HTML element that specifies a group of one or more columns in a table for formatting. +
Returns an HTML element that groups one or more `<col>` elements, providing a way to apply styles and attributes to multiple columns simultaneously. @@ -7511,83 +7588,83 @@
func type HTMLData +
type HTMLData ¶
-HTMLData is the interface that describes a "data" HTML element. +
The interface that represents a "data" HTML element.
type HTMLData interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLData - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLData - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLData - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLData - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLData - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLData - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLData - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLData - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLData - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLData - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLData - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLData - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLData - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLData - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLData - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLData - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLData - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLData + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLData - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLData - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLData - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLData - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLData - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLData }@@ -7601,13 +7678,13 @@type func Data +
func Data ¶
func Data() HTMLData-Data returns an HTML element that links the given content with a machine-readable translation. +
Returns an HTML element that pairs content with its machine-readable translation or value. @@ -7617,182 +7694,182 @@
func type HTMLDataList +
type HTMLDataList ¶
-HTMLDataList is the interface that describes a "datalist" HTML element. +
The interface that represents a "datalist" HTML element.
type HTMLDataList interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDataList - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDataList - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDataList - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDataList - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDataList - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDataList - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDataList - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDataList - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDataList - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDataList - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDataList - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDataList - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDataList - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDataList - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDataList - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDataList - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDataList - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDataList + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDataList - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDataList - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDataList - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDataList - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDataList - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDataList - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDataList - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDataList - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDataList - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDataList - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDataList - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDataList - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDataList - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDataList - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDataList - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDataList - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDataList - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDataList - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDataList - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDataList - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDataList - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDataList - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDataList - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDataList - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDataList - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDataList - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDataList - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDataList - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDataList - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDataList - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDataList - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDataList - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDataList - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDataList - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDataList - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDataList - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDataList - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDataList - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDataList }@@ -7806,13 +7883,13 @@type func DataList +
func DataList ¶
func DataList() HTMLDataList-DataList returns an HTML element that specifies a list of pre-defined options for input controls. +
Returns an HTML element that offers a predefined set of options for input controls. @@ -7822,182 +7899,182 @@
func type HTMLDd +
type HTMLDd ¶
-HTMLDd is the interface that describes a "dd" HTML element. +
The interface that represents a "dd" HTML element.
type HTMLDd interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDd - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDd - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDd - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDd - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDd - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDd - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDd - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDd - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDd - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDd - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDd - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDd - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDd - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDd - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDd - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDd - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDd - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDd + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDd - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDd - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDd - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDd - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDd - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDd - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDd - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDd - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDd - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDd - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDd - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDd - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDd - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDd - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDd - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDd - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDd - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDd - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDd - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDd - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDd - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDd - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDd - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDd - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDd - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDd - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDd - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDd - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDd - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDd - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDd - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDd - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDd - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDd - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDd - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDd - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDd - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDd - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDd }@@ -8011,13 +8088,13 @@type func Dd +
func Dd ¶
func Dd() HTMLDd-Dd returns an HTML element that defines a description/value of a term in a description list. +
Returns an HTML element that provides the description or value for a term in a description list. @@ -8027,188 +8104,188 @@
func type HTMLDel +
type HTMLDel ¶
-HTMLDel is the interface that describes a "del" HTML element. +
The interface that represents a "del" HTML element.
type HTMLDel interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDel - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDel - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDel - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDel - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDel - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDel - // Cite specifies a URL which explains the quote/deleted/inserted text with the given format and values. + // Provides a reference or link to a source explaining quoted or modified content in the element. Cite(format string, v ...any) HTMLDel - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDel - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDel - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDel - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDel - // DateTime specifies the date and time with the given format and values. + // Represents the date and time, often used in context with machine-readable equivalents of time-related content. DateTime(format string, v ...any) HTMLDel - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDel - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDel - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDel - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDel - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDel - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDel - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDel - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDel + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDel - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDel - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDel - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDel - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDel - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDel - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDel - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDel - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDel - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDel - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDel - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDel - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDel - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDel - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDel - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDel - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDel - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDel - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDel - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDel - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDel - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDel - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDel - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDel - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDel - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDel - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDel - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDel - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDel - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDel - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDel - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDel - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDel - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDel - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDel - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDel - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDel - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDel - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDel }@@ -8222,13 +8299,13 @@type func Del +
func Del ¶
func Del() HTMLDel-Del returns an HTML element that defines text that has been deleted from a document. +
Returns an HTML element that denotes text segments that have been deleted or modified in the content. @@ -8238,188 +8315,188 @@
func type HTMLDetails +
type HTMLDetails ¶
-HTMLDetails is the interface that describes a "details" HTML element. +
The interface that represents a "details" HTML element.
type HTMLDetails interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDetails - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDetails - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDetails - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDetails - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDetails - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDetails - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDetails - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDetails - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDetails - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDetails - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDetails - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDetails - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDetails - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDetails - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDetails - // Open specifies that the details should be visible (open) to the user. + // Indicates that the details element is expanded and visible to the user. Open(v bool) HTMLDetails - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDetails - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDetails - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDetails + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDetails - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDetails - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDetails - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDetails - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDetails - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDetails - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDetails - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDetails - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDetails - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDetails - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDetails - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDetails - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDetails - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDetails - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDetails - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDetails - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDetails - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDetails - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDetails - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDetails - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDetails - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDetails - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDetails - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDetails - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDetails - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDetails - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDetails - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDetails - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDetails - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDetails - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDetails - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDetails - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDetails - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDetails - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDetails - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDetails - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDetails - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDetails - // OnToggle calls the given handler when the user opens or closes the details element. + // Executes the handler when the details element is toggled by the user. OnToggle(h EventHandler, scope ...any) HTMLDetails - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDetails }@@ -8433,13 +8510,13 @@type func Details +
func Details ¶
func Details() HTMLDetails-Details returns an HTML element that defines additional details that the user can view or hide. +
Returns an HTML element that encapsulates content users can toggle visibility for, such as additional information or context. @@ -8449,182 +8526,182 @@
func type HTMLDfn +
type HTMLDfn ¶
-HTMLDfn is the interface that describes a "dfn" HTML element. +
The interface that represents a "dfn" HTML element.
type HTMLDfn interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDfn - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDfn - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDfn - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDfn - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDfn - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDfn - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDfn - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDfn - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDfn - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDfn - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDfn - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDfn - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDfn - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDfn - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDfn - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDfn - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDfn - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDfn + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDfn - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDfn - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDfn - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDfn - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDfn - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDfn - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDfn - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDfn - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDfn - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDfn - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDfn - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDfn - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDfn - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDfn - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDfn - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDfn - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDfn - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDfn - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDfn - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDfn - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDfn - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDfn - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDfn - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDfn - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDfn - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDfn - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDfn - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDfn - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDfn - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDfn - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDfn - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDfn - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDfn - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDfn - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDfn - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDfn - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDfn - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDfn - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDfn }@@ -8638,13 +8715,13 @@type func Dfn +
func Dfn ¶
func Dfn() HTMLDfn-Dfn returns an HTML element that represents the defining instance of a term. +
Returns an HTML element that marks the defining occurrence or clarification of a term or phrase. @@ -8654,185 +8731,185 @@
func type HTMLDialog +
type HTMLDialog ¶
-HTMLDialog is the interface that describes a "dialog" HTML element. +
The interface that represents a "dialog" HTML element.
type HTMLDialog interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDialog - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDialog - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDialog - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDialog - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDialog - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDialog - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDialog - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDialog - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDialog - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDialog - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDialog - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDialog - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDialog - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDialog - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDialog - // Open specifies that the details should be visible (open) to the user. + // Indicates that the details element is expanded and visible to the user. Open(v bool) HTMLDialog - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDialog - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDialog - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDialog + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDialog - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDialog - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDialog - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDialog - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDialog - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDialog - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDialog - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDialog - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDialog - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDialog - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDialog - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDialog - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDialog - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDialog - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDialog - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDialog - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDialog - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDialog - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDialog - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDialog - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDialog - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDialog - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDialog - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDialog - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDialog - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDialog - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDialog - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDialog - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDialog - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDialog - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDialog - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDialog - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDialog - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDialog - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDialog - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDialog - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDialog - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDialog - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDialog }@@ -8846,13 +8923,13 @@type func Dialog +
func Dialog ¶
func Dialog() HTMLDialog-Dialog returns an HTML element that defines a dialog box or window. +
Returns an HTML element that represents a popup dialog box or an interactive window overlay. @@ -8862,182 +8939,182 @@
func type HTMLDiv +
type HTMLDiv ¶
-HTMLDiv is the interface that describes a "div" HTML element. +
The interface that represents a "div" HTML element.
type HTMLDiv interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDiv - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDiv - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDiv - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDiv - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDiv - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDiv - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDiv - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDiv - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDiv - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDiv - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDiv - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDiv - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDiv - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDiv - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDiv - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDiv - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDiv - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDiv + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDiv - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDiv - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDiv - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDiv - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDiv - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDiv - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDiv - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDiv - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDiv - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDiv - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDiv - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDiv - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDiv - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDiv - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDiv - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDiv - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDiv - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDiv - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDiv - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDiv - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDiv - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDiv - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDiv - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDiv - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDiv - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDiv - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDiv - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDiv - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDiv - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDiv - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDiv - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDiv - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDiv - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDiv - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDiv - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDiv - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDiv - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDiv - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDiv }@@ -9051,13 +9128,13 @@type func Div +
func Div ¶
func Div() HTMLDiv-Div returns an HTML element that defines a section in a document. +
Returns an HTML element that creates a generic container for flow content, usually combined with styles or scripts. @@ -9067,182 +9144,182 @@
func type HTMLDl +
type HTMLDl ¶
-HTMLDl is the interface that describes a "dl" HTML element. +
The interface that represents a "dl" HTML element.
type HTMLDl interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDl - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDl - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDl - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDl - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDl - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDl - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDl - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDl - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDl - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDl - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDl - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDl - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDl - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDl - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDl - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDl - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDl - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDl + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDl - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDl - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDl - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDl - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDl - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDl - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDl - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDl - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDl - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDl - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDl - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDl - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDl - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDl - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDl - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDl - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDl - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDl - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDl - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDl - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDl - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDl - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDl - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDl - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDl - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDl - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDl - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDl - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDl - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDl - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDl - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDl - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDl - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDl - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDl - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDl - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDl - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDl - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDl }@@ -9256,13 +9333,13 @@type func Dl +
func Dl ¶
func Dl() HTMLDl-Dl returns an HTML element that defines a description list. +
Returns an HTML element that structures a list of terms alongside their associated descriptions. @@ -9272,182 +9349,182 @@
func type HTMLDt +
type HTMLDt ¶
-HTMLDt is the interface that describes a "dt" HTML element. +
The interface that represents a "dt" HTML element.
type HTMLDt interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLDt - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLDt - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLDt - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLDt - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLDt - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLDt - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLDt - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLDt - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLDt - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLDt - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLDt - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLDt - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLDt - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLDt - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLDt - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLDt - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLDt - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLDt + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLDt - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLDt - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLDt - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLDt - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLDt - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLDt - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLDt - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLDt - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLDt - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLDt - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLDt - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLDt - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLDt - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLDt - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLDt - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLDt - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLDt - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLDt - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLDt - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLDt - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLDt - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLDt - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLDt - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLDt - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLDt - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLDt - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLDt - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLDt - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLDt - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLDt - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLDt - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLDt - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLDt - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLDt - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLDt - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLDt - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLDt - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLDt - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLDt }@@ -9461,13 +9538,13 @@type func Dt +
func Dt ¶
func Dt() HTMLDt-Dt returns an HTML element that defines a term/name in a description list. +
Returns an HTML element that specifies a term or name within a description list. @@ -9477,185 +9554,185 @@
func type HTMLElem +
type HTMLElem ¶
-HTMLElem is the interface that describes a "elem" HTML element. +
The interface that represents a "elem" HTML element.
type HTMLElem interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLElem - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLElem - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLElem - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLElem - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLElem - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLElem - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLElem - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLElem - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLElem - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLElem - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLElem - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLElem - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLElem - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLElem - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLElem - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLElem - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLElem - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLElem + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLElem - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLElem - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLElem - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLElem - // XMLNS specifies the xml namespace of the element. + // Defines the XML namespace for the element. XMLNS(v string) HTMLElem - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLElem - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLElem - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLElem - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLElem - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLElem - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLElem - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLElem - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLElem - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLElem - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLElem - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLElem - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLElem - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLElem - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLElem - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLElem - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLElem - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLElem - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLElem - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLElem - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLElem - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLElem - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLElem - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLElem - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLElem - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLElem - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLElem - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLElem - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLElem - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLElem - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLElem - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLElem - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLElem - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLElem - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLElem - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLElem }@@ -9669,13 +9746,13 @@type func Elem +
func Elem ¶
func Elem(tag string) HTMLElem-Elem returns an HTML element that represents an customizable HTML element. +
Returns an HTML element that is customizable. @@ -9685,176 +9762,176 @@
func type HTMLElemSelfClosing +
type HTMLElemSelfClosing ¶
-HTMLElemSelfClosing is the interface that describes a "elemselfclosing" HTML element. +
The interface that represents a "elemselfclosing" HTML element.
type HTMLElemSelfClosing interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLElemSelfClosing - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLElemSelfClosing - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLElemSelfClosing - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLElemSelfClosing - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLElemSelfClosing - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLElemSelfClosing - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLElemSelfClosing - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLElemSelfClosing - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLElemSelfClosing - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLElemSelfClosing - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLElemSelfClosing - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLElemSelfClosing - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLElemSelfClosing - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLElemSelfClosing - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLElemSelfClosing + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLElemSelfClosing - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLElemSelfClosing - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLElemSelfClosing - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLElemSelfClosing - // XMLNS specifies the xml namespace of the element. + // Defines the XML namespace for the element. XMLNS(v string) HTMLElemSelfClosing - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLElemSelfClosing - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLElemSelfClosing - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLElemSelfClosing }@@ -9868,13 +9945,13 @@type func ElemSelfClosing +
func ElemSelfClosing ¶
func ElemSelfClosing(tag string) HTMLElemSelfClosing-ElemSelfClosing returns an HTML element that represents a self closing custom HTML element. +
Returns an HTML element that is self-closing and customizable. @@ -9884,182 +9961,182 @@
func type HTMLEm +
type HTMLEm ¶
-HTMLEm is the interface that describes a "em" HTML element. +
The interface that represents a "em" HTML element.
type HTMLEm interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLEm - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLEm - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLEm - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLEm - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLEm - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLEm - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLEm - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLEm - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLEm - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLEm - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLEm - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLEm - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLEm - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLEm - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLEm - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLEm - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLEm - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLEm + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLEm - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLEm - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLEm - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLEm - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLEm - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLEm - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLEm - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLEm - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLEm - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLEm - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLEm - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLEm - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLEm - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLEm - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLEm - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLEm - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLEm - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLEm - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLEm - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLEm - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLEm - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLEm - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLEm - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLEm - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLEm - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLEm - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLEm - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLEm - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLEm - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLEm - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLEm - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLEm - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLEm - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLEm - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLEm - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLEm - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLEm - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLEm - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLEm }@@ -10073,13 +10150,13 @@type func Em +
func Em ¶
func Em() HTMLEm-Em returns an HTML element that defines emphasized text. +
Returns an HTML element that marks text for emphasis, typically rendered as italicized text. @@ -10089,254 +10166,254 @@
func type HTMLEmbed +
type HTMLEmbed ¶
-HTMLEmbed is the interface that describes a "embed" HTML element. +
The interface that represents a "embed" HTML element.
type HTMLEmbed interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLEmbed - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLEmbed - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLEmbed - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLEmbed - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLEmbed - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLEmbed - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLEmbed - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLEmbed - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLEmbed - // Height specifies the height of the element (in pixels). + // Sets the height of the element, measured in pixels. Height(v int) HTMLEmbed - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLEmbed - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLEmbed - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLEmbed - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLEmbed - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLEmbed - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLEmbed - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLEmbed + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLEmbed - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLEmbed - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLEmbed - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLEmbed - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLEmbed - // Width specifies the width of the element. + // Sets the width of the element. Width(v int) HTMLEmbed - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLEmbed - // OnAbort calls the given handler on abort. + // Triggers the handler when media loading is aborted. OnAbort(h EventHandler, scope ...any) HTMLEmbed - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLEmbed - // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). + // Executes the handler when media has buffered sufficiently to begin playback. OnCanPlay(h EventHandler, scope ...any) HTMLEmbed - // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. + // Invokes the handler when media can be played through without buffering interruptions. OnCanPlayThrough(h EventHandler, scope ...any) HTMLEmbed - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLEmbed - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLEmbed - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLEmbed - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLEmbed - // OnCueChange calls the given handler when the cue changes in a track element. + // Triggers the handler upon cue changes within a track element. OnCueChange(h EventHandler, scope ...any) HTMLEmbed - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLEmbed - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLEmbed - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLEmbed - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLEmbed - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLEmbed - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLEmbed - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLEmbed - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLEmbed - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLEmbed - // OnDurationChange calls the given handler when the length of the media changes. + // Executes the handler when the media's duration changes. OnDurationChange(h EventHandler, scope ...any) HTMLEmbed - // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). + // Invokes the handler when media unexpectedly becomes unavailable. OnEmptied(h EventHandler, scope ...any) HTMLEmbed - // OnEnded calls the given handler when the media has reach the end. + // Triggers the handler when media playback reaches the end. OnEnded(h EventHandler, scope ...any) HTMLEmbed - // OnError calls the given handler when an error occurs. + // Invokes the given handler when an error is encountered. OnError(h EventHandler, scope ...any) HTMLEmbed - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLEmbed - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLEmbed - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLEmbed - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLEmbed - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLEmbed - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLEmbed - // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. + // Triggers the handler when media loading commences. OnLoadStart(h EventHandler, scope ...any) HTMLEmbed - // OnLoadedData calls the given handler when media data is loaded. + // Executes the handler as media data finishes loading. OnLoadedData(h EventHandler, scope ...any) HTMLEmbed - // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. + // Invokes the handler when metadata (like duration and dimensions) are fully loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLEmbed - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLEmbed - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLEmbed - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLEmbed - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLEmbed - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLEmbed - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLEmbed - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLEmbed - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLEmbed - // OnPause calls the given handler when the media is paused either by the user or programmatically. + // Executes the handler when media playback is paused. OnPause(h EventHandler, scope ...any) HTMLEmbed - // OnPlay calls the given handler when the media is ready to start playing. + // Invokes the handler when media starts its playback. OnPlay(h EventHandler, scope ...any) HTMLEmbed - // OnPlaying calls the given handler when the media actually has started playing. + // Triggers the handler once the media has initiated playback. OnPlaying(h EventHandler, scope ...any) HTMLEmbed - // OnProgress calls the given handler when the browser is in the process of getting the media data. + // Executes the handler while the browser fetches media data. OnProgress(h EventHandler, scope ...any) HTMLEmbed - // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). + // Invokes the handler when playback rate changes (e.g., slow motion or fast forward). OnRateChange(h EventHandler, scope ...any) HTMLEmbed - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLEmbed - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLEmbed - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLEmbed - // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. + // Triggers the handler post seeking completion. OnSeeked(h EventHandler, scope ...any) HTMLEmbed - // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. + // Executes the handler during the seeking process. OnSeeking(h EventHandler, scope ...any) HTMLEmbed - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLEmbed - // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. + // Invokes the handler when media data fetching stalls. OnStalled(h EventHandler, scope ...any) HTMLEmbed - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLEmbed - // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. + // Triggers the handler when media data fetching is suspended. OnSuspend(h EventHandler, scope ...any) HTMLEmbed - // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). + // Executes the handler when the media's playback position changes. OnTimeUpdate(h EventHandler, scope ...any) HTMLEmbed - // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). + // Invokes the handler upon volume changes or muting. OnVolumeChange(h EventHandler, scope ...any) HTMLEmbed - // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). + // Triggers the handler when media pauses, awaiting further buffering. OnWaiting(h EventHandler, scope ...any) HTMLEmbed - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLEmbed }@@ -10350,13 +10427,13 @@type func Embed +
func Embed ¶
func Embed() HTMLEmbed-Embed returns an HTML element that defines a container for an external (non-HTML) application. +
Returns an HTML element that offers a container for integrating non-HTML content or applications. @@ -10366,191 +10443,191 @@
func type HTMLFieldSet +
type HTMLFieldSet ¶
-HTMLFieldSet is the interface that describes a "fieldset" HTML element. +
The interface that represents a "fieldset" HTML element.
type HTMLFieldSet interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLFieldSet - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLFieldSet - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLFieldSet - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLFieldSet - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLFieldSet - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLFieldSet - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLFieldSet - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLFieldSet - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLFieldSet - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLFieldSet - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLFieldSet - // Disabled specifies that the specified element/group of elements should be disabled. + // Deactivates an element, rendering it uninteractive and visually distinct. Disabled(v bool) HTMLFieldSet - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLFieldSet - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLFieldSet - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLFieldSet - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLFieldSet - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLFieldSet - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLFieldSet - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLFieldSet - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLFieldSet - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLFieldSet + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLFieldSet - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLFieldSet - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLFieldSet - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLFieldSet - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLFieldSet - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLFieldSet - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLFieldSet - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLFieldSet - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLFieldSet - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLFieldSet - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLFieldSet - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLFieldSet - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLFieldSet - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLFieldSet - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLFieldSet - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLFieldSet - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLFieldSet - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLFieldSet - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLFieldSet - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLFieldSet - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLFieldSet - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLFieldSet - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLFieldSet - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLFieldSet - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLFieldSet - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLFieldSet - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLFieldSet - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLFieldSet - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLFieldSet - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLFieldSet - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLFieldSet - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLFieldSet - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLFieldSet - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLFieldSet - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLFieldSet - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLFieldSet - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLFieldSet - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLFieldSet - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLFieldSet }@@ -10564,13 +10641,13 @@type func FieldSet +
func FieldSet ¶
func FieldSet() HTMLFieldSet-FieldSet returns an HTML element that groups related elements in a form. +
Returns an HTML element that clusters related input controls and labels within a form. @@ -10580,182 +10657,182 @@
func type HTMLFigCaption +
type HTMLFigCaption ¶
-HTMLFigCaption is the interface that describes a "figcaption" HTML element. +
The interface that represents a "figcaption" HTML element.
type HTMLFigCaption interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLFigCaption - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLFigCaption - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLFigCaption - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLFigCaption - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLFigCaption - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLFigCaption - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLFigCaption - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLFigCaption - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLFigCaption - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLFigCaption - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLFigCaption - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLFigCaption - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLFigCaption - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLFigCaption - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLFigCaption - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLFigCaption - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLFigCaption - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLFigCaption + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLFigCaption - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLFigCaption - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLFigCaption - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLFigCaption - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLFigCaption - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLFigCaption - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLFigCaption - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLFigCaption - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLFigCaption - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLFigCaption - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLFigCaption - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLFigCaption - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLFigCaption - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLFigCaption - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLFigCaption - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLFigCaption - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLFigCaption - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLFigCaption - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLFigCaption - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLFigCaption - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLFigCaption - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLFigCaption - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLFigCaption - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLFigCaption - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLFigCaption - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLFigCaption - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLFigCaption - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLFigCaption - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLFigCaption - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLFigCaption - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLFigCaption - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLFigCaption - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLFigCaption - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLFigCaption - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLFigCaption - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLFigCaption - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLFigCaption - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLFigCaption - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLFigCaption }@@ -10769,13 +10846,13 @@type func FigCaption +
func FigCaption ¶
func FigCaption() HTMLFigCaption-FigCaption returns an HTML element that defines a caption for a figure element. +
Returns an HTML element that supplies a caption or explanation for content within the <figure> element. @@ -10785,182 +10862,182 @@
func type HTMLFigure +
type HTMLFigure ¶
-HTMLFigure is the interface that describes a "figure" HTML element. +
The interface that represents a "figure" HTML element.
type HTMLFigure interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLFigure - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLFigure - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLFigure - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLFigure - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLFigure - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLFigure - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLFigure - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLFigure - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLFigure - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLFigure - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLFigure - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLFigure - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLFigure - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLFigure - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLFigure - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLFigure - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLFigure - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLFigure + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLFigure - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLFigure - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLFigure - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLFigure - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLFigure - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLFigure - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLFigure - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLFigure - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLFigure - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLFigure - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLFigure - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLFigure - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLFigure - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLFigure - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLFigure - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLFigure - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLFigure - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLFigure - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLFigure - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLFigure - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLFigure - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLFigure - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLFigure - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLFigure - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLFigure - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLFigure - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLFigure - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLFigure - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLFigure - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLFigure - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLFigure - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLFigure - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLFigure - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLFigure - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLFigure - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLFigure - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLFigure - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLFigure - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLFigure }@@ -10974,13 +11051,13 @@type func Figure +
func Figure ¶
func Figure() HTMLFigure-Figure returns an HTML element that specifies self-contained content. +
Returns an HTML element that encapsulates media content or illustrations with an optional caption. @@ -10990,182 +11067,182 @@
func type HTMLFooter +
type HTMLFooter ¶
-HTMLFooter is the interface that describes a "footer" HTML element. +
The interface that represents a "footer" HTML element.
type HTMLFooter interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLFooter - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLFooter - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLFooter - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLFooter - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLFooter - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLFooter - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLFooter - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLFooter - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLFooter - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLFooter - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLFooter - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLFooter - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLFooter - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLFooter - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLFooter - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLFooter - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLFooter - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLFooter + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLFooter - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLFooter - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLFooter - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLFooter - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLFooter - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLFooter - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLFooter - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLFooter - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLFooter - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLFooter - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLFooter - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLFooter - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLFooter - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLFooter - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLFooter - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLFooter - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLFooter - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLFooter - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLFooter - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLFooter - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLFooter - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLFooter - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLFooter - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLFooter - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLFooter - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLFooter - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLFooter - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLFooter - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLFooter - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLFooter - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLFooter - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLFooter - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLFooter - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLFooter - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLFooter - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLFooter - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLFooter - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLFooter - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLFooter }@@ -11179,13 +11256,13 @@type func Footer +
func Footer ¶
func Footer() HTMLFooter-Footer returns an HTML element that defines a footer for a document or section. +
Returns an HTML element that denotes the footer of a section or the whole document, often containing metadata or author info. @@ -11195,206 +11272,206 @@
func type HTMLForm +
type HTMLForm ¶
-HTMLForm is the interface that describes a "form" HTML element. +
The interface that represents a "form" HTML element.
type HTMLForm interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLForm - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLForm - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLForm - // AcceptCharset specifies the character encodings that are to be used for the form submission. - AcceptCharset(v string) HTMLForm + // Restricts the character encodings accepted for form submission, ensuring compatibility. + AcceptCharset(format string, v ...any) HTMLForm - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLForm - // Action specifies where to send the form-data with the given format and values when a form is submitted. + // Specifies the server endpoint to which form-data should be sent upon submission. Action(format string, v ...any) HTMLForm - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLForm - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLForm - // AutoComplete specifies whether the element should have autocomplete enabled. + // Toggles the browser's autocomplete feature, assisting users with common input values. AutoComplete(v bool) HTMLForm - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLForm - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLForm - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLForm - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLForm - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLForm - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLForm - // EncType specifies how the form-data should be encoded when submitting it to the server (only for post method). Uses the given format and values. + // Describes how form data should be encoded upon submission, especially vital for forms submitting file uploads. EncType(format string, v ...any) HTMLForm - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLForm - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLForm - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLForm - // Method specifies the HTTP method to use when sending form-data. Uses the given format and values. + // Determines the HTTP method for sending form data. Method(format string, v ...any) HTMLForm - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLForm - // NoValidate specifies that the form should not be validated when submitted. + // Indicates that the form should bypass validation upon submission. NoValidate(v bool) HTMLForm - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLForm - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLForm - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLForm + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLForm - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLForm - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLForm - // Target specifies the target for where to open the linked document or where to submit the form. Uses the given format and values. + // Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values. Target(format string, v ...any) HTMLForm - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLForm - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLForm - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLForm - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLForm - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLForm - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLForm - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLForm - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLForm - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLForm - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLForm - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLForm - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLForm - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLForm - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLForm - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLForm - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLForm - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLForm - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLForm - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLForm - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLForm - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLForm - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLForm - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLForm - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLForm - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLForm - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLForm - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLForm - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLForm - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLForm - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLForm - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLForm - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLForm - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLForm - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLForm - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLForm - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLForm }@@ -11408,13 +11485,13 @@type func Form +
func Form ¶
func Form() HTMLForm-Form returns an HTML element that defines an HTML form for user input. +
Returns an HTML element that constructs a user input form, allowing for various control elements and submission options. @@ -11424,182 +11501,182 @@
func type HTMLH1 +
type HTMLH1 ¶
-HTMLH1 is the interface that describes a "h1" HTML element. +
The interface that represents a "h1" HTML element.
type HTMLH1 interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLH1 - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLH1 - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLH1 - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLH1 - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLH1 - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLH1 - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLH1 - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLH1 - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLH1 - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLH1 - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLH1 - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLH1 - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLH1 - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLH1 - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLH1 - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLH1 - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLH1 - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLH1 + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLH1 - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLH1 - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLH1 - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLH1 - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLH1 - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH1 - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLH1 - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH1 - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLH1 - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLH1 - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLH1 - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLH1 - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLH1 - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH1 - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH1 - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH1 - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH1 - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH1 - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLH1 - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLH1 - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLH1 - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLH1 - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH1 - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLH1 - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH1 - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLH1 - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLH1 - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH1 - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLH1 - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLH1 - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLH1 - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLH1 - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLH1 - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLH1 - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLH1 - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLH1 - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLH1 - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLH1 - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLH1 }@@ -11613,13 +11690,13 @@type func H1 +
func H1 ¶
func H1() HTMLH1-H1 returns an HTML element that defines HTML heading. +
Returns an HTML element that defines a level 1 HTML heading, indicating the most important topic or section. @@ -11629,182 +11706,182 @@
func type HTMLH2 +
type HTMLH2 ¶
-HTMLH2 is the interface that describes a "h2" HTML element. +
The interface that represents a "h2" HTML element.
type HTMLH2 interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLH2 - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLH2 - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLH2 - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLH2 - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLH2 - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLH2 - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLH2 - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLH2 - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLH2 - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLH2 - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLH2 - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLH2 - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLH2 - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLH2 - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLH2 - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLH2 - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLH2 - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLH2 + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLH2 - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLH2 - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLH2 - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLH2 - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLH2 - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH2 - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLH2 - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH2 - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLH2 - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLH2 - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLH2 - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLH2 - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLH2 - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH2 - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH2 - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH2 - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH2 - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH2 - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLH2 - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLH2 - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLH2 - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLH2 - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH2 - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLH2 - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH2 - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLH2 - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLH2 - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH2 - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLH2 - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLH2 - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLH2 - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLH2 - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLH2 - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLH2 - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLH2 - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLH2 - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLH2 - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLH2 - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLH2 }@@ -11818,13 +11895,13 @@type func H2 +
func H2 ¶
func H2() HTMLH2-H2 returns an HTML element that defines HTML heading. +
Returns an HTML element that defines a level 2 HTML heading, indicating a main subsection under H1. @@ -11834,182 +11911,182 @@
func type HTMLH3 +
type HTMLH3 ¶
-HTMLH3 is the interface that describes a "h3" HTML element. +
The interface that represents a "h3" HTML element.
type HTMLH3 interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLH3 - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLH3 - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLH3 - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLH3 - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLH3 - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLH3 - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLH3 - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLH3 - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLH3 - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLH3 - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLH3 - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLH3 - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLH3 - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLH3 - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLH3 - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLH3 - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLH3 - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLH3 + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLH3 - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLH3 - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLH3 - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLH3 - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLH3 - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH3 - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLH3 - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH3 - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLH3 - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLH3 - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLH3 - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLH3 - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLH3 - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH3 - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH3 - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH3 - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH3 - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH3 - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLH3 - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLH3 - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLH3 - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLH3 - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH3 - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLH3 - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH3 - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLH3 - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLH3 - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH3 - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLH3 - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLH3 - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLH3 - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLH3 - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLH3 - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLH3 - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLH3 - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLH3 - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLH3 - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLH3 - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLH3 }@@ -12023,13 +12100,13 @@type func H3 +
func H3 ¶
func H3() HTMLH3-H3 returns an HTML element that defines HTML heading. +
Returns an HTML element that defines a level 3 HTML heading, indicating a subsection under H2. @@ -12039,182 +12116,182 @@
func type HTMLH4 +
type HTMLH4 ¶
-HTMLH4 is the interface that describes a "h4" HTML element. +
The interface that represents a "h4" HTML element.
type HTMLH4 interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLH4 - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLH4 - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLH4 - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLH4 - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLH4 - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLH4 - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLH4 - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLH4 - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLH4 - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLH4 - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLH4 - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLH4 - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLH4 - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLH4 - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLH4 - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLH4 - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLH4 - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLH4 + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLH4 - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLH4 - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLH4 - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLH4 - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLH4 - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH4 - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLH4 - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH4 - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLH4 - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLH4 - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLH4 - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLH4 - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLH4 - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH4 - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH4 - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH4 - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH4 - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH4 - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLH4 - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLH4 - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLH4 - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLH4 - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH4 - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLH4 - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH4 - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLH4 - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLH4 - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH4 - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLH4 - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLH4 - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLH4 - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLH4 - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLH4 - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLH4 - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLH4 - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLH4 - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLH4 - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLH4 - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLH4 }@@ -12228,13 +12305,13 @@type func H4 +
func H4 ¶
func H4() HTMLH4-H4 returns an HTML element that defines HTML heading. +
Returns an HTML element that defines a level 4 HTML heading, indicating topics that fall under the H3 section. @@ -12244,182 +12321,182 @@
func type HTMLH5 +
type HTMLH5 ¶
-HTMLH5 is the interface that describes a "h5" HTML element. +
The interface that represents a "h5" HTML element.
type HTMLH5 interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLH5 - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLH5 - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLH5 - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLH5 - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLH5 - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLH5 - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLH5 - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLH5 - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLH5 - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLH5 - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLH5 - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLH5 - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLH5 - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLH5 - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLH5 - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLH5 - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLH5 - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLH5 + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLH5 - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLH5 - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLH5 - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLH5 - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLH5 - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH5 - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLH5 - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH5 - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLH5 - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLH5 - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLH5 - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLH5 - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLH5 - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH5 - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH5 - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH5 - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH5 - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH5 - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLH5 - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLH5 - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLH5 - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLH5 - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH5 - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLH5 - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH5 - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLH5 - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLH5 - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH5 - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLH5 - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLH5 - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLH5 - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLH5 - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLH5 - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLH5 - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLH5 - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLH5 - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLH5 - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLH5 - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLH5 }@@ -12433,13 +12510,13 @@type func H5 +
func H5 ¶
func H5() HTMLH5-H5 returns an HTML element that defines HTML heading. +
Returns an HTML element that defines a level 5 HTML heading, typically used for finer details under an H4 section. @@ -12449,182 +12526,182 @@
func type HTMLH6 +
type HTMLH6 ¶
-HTMLH6 is the interface that describes a "h6" HTML element. +
The interface that represents a "h6" HTML element.
type HTMLH6 interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLH6 - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLH6 - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLH6 - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLH6 - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLH6 - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLH6 - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLH6 - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLH6 - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLH6 - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLH6 - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLH6 - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLH6 - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLH6 - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLH6 - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLH6 - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLH6 - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLH6 - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLH6 + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLH6 - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLH6 - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLH6 - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLH6 - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLH6 - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLH6 - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLH6 - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLH6 - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLH6 - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLH6 - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLH6 - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLH6 - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLH6 - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLH6 - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLH6 - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLH6 - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLH6 - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLH6 - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLH6 - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLH6 - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLH6 - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLH6 - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLH6 - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLH6 - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLH6 - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLH6 - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLH6 - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLH6 - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLH6 - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLH6 - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLH6 - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLH6 - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLH6 - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLH6 - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLH6 - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLH6 - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLH6 - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLH6 - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLH6 }@@ -12638,13 +12715,13 @@type func H6 +
func H6 ¶
func H6() HTMLH6-H6 returns an HTML element that defines HTML heading. +
Returns an HTML element that defines a level 6 HTML heading, used for the smallest granularity of topics or details. @@ -12654,80 +12731,80 @@
func type HTMLHead +
type HTMLHead ¶
-HTMLHead is the interface that describes a "head" HTML element. +
The interface that represents a "head" HTML element.
type HTMLHead interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLHead - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLHead - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLHead - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLHead - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLHead - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLHead - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLHead - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLHead - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLHead - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLHead - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLHead - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLHead - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLHead - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLHead - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLHead - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLHead - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLHead - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLHead + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLHead - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLHead - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLHead - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLHead - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLHead }@@ -12741,13 +12818,13 @@type func Head +
func Head ¶
func Head() HTMLHead-Head returns an HTML element that defines information about the document. +
Returns an HTML element that defines information about the document. @@ -12757,182 +12834,182 @@
func type HTMLHeader +
type HTMLHeader ¶
-HTMLHeader is the interface that describes a "header" HTML element. +
The interface that represents a "header" HTML element.
type HTMLHeader interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLHeader - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLHeader - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLHeader - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLHeader - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLHeader - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLHeader - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLHeader - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLHeader - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLHeader - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLHeader - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLHeader - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLHeader - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLHeader - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLHeader - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLHeader - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLHeader - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLHeader - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLHeader + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLHeader - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLHeader - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLHeader - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLHeader - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLHeader - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLHeader - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLHeader - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLHeader - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLHeader - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLHeader - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLHeader - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLHeader - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLHeader - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLHeader - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLHeader - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLHeader - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLHeader - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLHeader - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLHeader - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLHeader - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLHeader - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLHeader - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLHeader - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLHeader - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLHeader - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLHeader - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLHeader - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLHeader - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLHeader - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLHeader - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLHeader - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLHeader - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLHeader - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLHeader - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLHeader - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLHeader - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLHeader - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLHeader - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLHeader }@@ -12946,13 +13023,13 @@type func Header +
func Header ¶
func Header() HTMLHeader-Header returns an HTML element that defines a header for a document or section. +
Returns an HTML element that defines a header for a document or section. @@ -12962,173 +13039,173 @@
func type HTMLHr +
type HTMLHr ¶
-HTMLHr is the interface that describes a "hr" HTML element. +
The interface that represents a "hr" HTML element.
type HTMLHr interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLHr - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLHr - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLHr - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLHr - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLHr - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLHr - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLHr - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLHr - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLHr - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLHr - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLHr - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLHr - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLHr - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLHr - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLHr + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLHr - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLHr - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLHr - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLHr - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLHr - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLHr - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLHr - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLHr - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLHr - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLHr - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLHr - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLHr - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLHr - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLHr - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLHr - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLHr - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLHr - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLHr - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLHr - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLHr - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLHr - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLHr - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLHr - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLHr - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLHr - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLHr - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLHr - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLHr - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLHr - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLHr - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLHr - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLHr - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLHr - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLHr - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLHr - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLHr - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLHr - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLHr - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLHr }@@ -13142,13 +13219,13 @@type func Hr +
func Hr ¶
func Hr() HTMLHr-Hr returns an HTML element that defines a thematic change in the content. +
Returns an HTML element that defines a thematic change in the content. @@ -13158,71 +13235,71 @@
func type HTMLHtml +
type HTMLHtml ¶
-HTMLHtml is the interface that describes a "html" HTML element. +
The interface that represents a "html" HTML element.
type HTMLHtml interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLHtml - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLHtml - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLHtml - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLHtml - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLHtml - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLHtml - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLHtml - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLHtml - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLHtml - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLHtml - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLHtml - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLHtml - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLHtml - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLHtml - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLHtml + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLHtml - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLHtml - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLHtml - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLHtml - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLHtml // contains filtered or unexported methods }@@ -13237,13 +13314,13 @@type func Html +
func Html ¶
func Html() HTMLHtml-Html returns an HTML element that defines the root of an HTML document. +
Returns an HTML element that defines the root of an HTML document. @@ -13253,182 +13330,182 @@
func type HTMLI +
type HTMLI ¶
-HTMLI is the interface that describes a "i" HTML element. +
The interface that represents a "i" HTML element.
type HTMLI interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLI - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLI - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLI - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLI - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLI - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLI - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLI - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLI - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLI - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLI - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLI - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLI - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLI - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLI - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLI - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLI - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLI - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLI + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLI - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLI - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLI - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLI - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLI - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLI - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLI - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLI - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLI - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLI - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLI - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLI - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLI - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLI - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLI - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLI - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLI - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLI - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLI - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLI - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLI - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLI - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLI - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLI - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLI - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLI - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLI - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLI - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLI - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLI - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLI - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLI - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLI - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLI - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLI - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLI - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLI - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLI - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLI }@@ -13442,13 +13519,13 @@type func I +
func I ¶
func I() HTMLI-I returns an HTML element that defines a part of text in an alternate voice or mood. +
Returns an HTML element that defines a part of text in an alternate voice or mood. @@ -13458,218 +13535,218 @@
func type HTMLIFrame +
type HTMLIFrame ¶
-HTMLIFrame is the interface that describes a "iframe" HTML element. +
The interface that represents a "iframe" HTML element.
type HTMLIFrame interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLIFrame - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLIFrame - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLIFrame - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLIFrame - // Allow specifies a feature policy with the given format and values. Can be called multiple times to set multiple policies. + // Sets a feature policy, enhancing security by controlling certain browser features. Allows multiple policies. Allow(format string, v ...any) HTMLIFrame - // AllowFullscreen reports whether an iframe can activate fullscreen mode. + // Grants an iframe the capability to request fullscreen mode. AllowFullscreen(v bool) HTMLIFrame - // AllowPaymentRequest reports whether an iframe should be allowed to invoke the Payment Request API + // Grants an iframe the permission to use the Payment Request API for smoother online transactions. AllowPaymentRequest(v bool) HTMLIFrame - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLIFrame - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLIFrame - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLIFrame - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLIFrame - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLIFrame - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLIFrame - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLIFrame - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLIFrame - // Height specifies the height of the element (in pixels). + // Sets the height of the element, measured in pixels. Height(v int) HTMLIFrame - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLIFrame - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLIFrame - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLIFrame - // Loading indicates how the browser should load the iframe (eager|lazy). Uses the given format and values. + // Determines the browser's loading behavior for the iframe ('eager' or 'lazy'). Loading(format string, v ...any) HTMLIFrame - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLIFrame - // ReferrerPolicy specifies how much/which referrer information that will be sent when processing the iframe attributes. Uses the given format and values. + // Determines the amount of referrer information sent when processing iframe attributes. ReferrerPolicy(format string, v ...any) HTMLIFrame - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLIFrame - // Sandbox enables an extra set of restrictions for the content in an iframe. - Sandbox(v any) HTMLIFrame + // Applies extra security restrictions to content within an iframe. + Sandbox(format string, v ...any) HTMLIFrame - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLIFrame - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLIFrame - // SrcDoc specifies the HTML content of the page to show in the iframe with the given format and values. + // Defines the HTML content to be displayed within an iframe. Uses the given format and values. SrcDoc(format string, v ...any) HTMLIFrame - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLIFrame + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLIFrame - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLIFrame - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLIFrame - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLIFrame - // Width specifies the width of the element. + // Sets the width of the element. Width(v int) HTMLIFrame - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLIFrame - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLIFrame - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLIFrame - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLIFrame - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLIFrame - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLIFrame - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLIFrame - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLIFrame - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLIFrame - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLIFrame - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLIFrame - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLIFrame - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLIFrame - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLIFrame - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLIFrame - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLIFrame - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLIFrame - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLIFrame - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLIFrame - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLIFrame - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLIFrame - // OnLoad calls the given handler after the element is finished loading. + // Executes the specified handler once the element has completely loaded. OnLoad(h EventHandler, scope ...any) HTMLIFrame - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLIFrame - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLIFrame - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLIFrame - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLIFrame - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLIFrame - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLIFrame - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLIFrame - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLIFrame - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLIFrame - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLIFrame - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLIFrame - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLIFrame - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLIFrame - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLIFrame }@@ -13683,13 +13760,13 @@type func IFrame +
func IFrame ¶
func IFrame() HTMLIFrame-IFrame returns an HTML element that defines an inline frame. +
Returns an HTML element that defines an inline frame. @@ -13699,275 +13776,275 @@
func type HTMLImg +
type HTMLImg ¶
-HTMLImg is the interface that describes a "img" HTML element. +
The interface that represents a "img" HTML element.
type HTMLImg interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLImg - // Alt specifies an alternate text with the given format and values when the original element fails to display. + // Provides a text alternative for elements (often images) ensuring content is accessible when visuals can't be rendered. Alt(format string, v ...any) HTMLImg - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLImg - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLImg - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLImg - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLImg - // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values. + // Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins. CrossOrigin(format string, v ...any) HTMLImg - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLImg - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLImg - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLImg - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLImg - // FetchPriority specifies a hint given to the browser on how it should prioritize the fetch of the image relative to other images. - FetchPriority(v string) HTMLImg + // Provides a hint to the browser about how it should prioritize the fetch of the image in relation to other images. + FetchPriority(format string, v ...any) HTMLImg - // Height specifies the height of the element (in pixels). + // Sets the height of the element, measured in pixels. Height(v int) HTMLImg - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLImg - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLImg - // IsMap specifies an image as a server-side image-map. + // Marks an image as a server-side image-map. IsMap(v bool) HTMLImg - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLImg - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLImg - // Sizes specifies the size of the linked resource with the given format and values. + // Specifies sizes of icons and images for different page or screen scenarios. Uses the given format and values. Sizes(format string, v ...any) HTMLImg - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLImg - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLImg - // SrcSet specifies the URL of the image to use in different situations with the given format and values. + // Provides URLs of images to display in varied resolutions or viewport conditions. Uses the given format and values. SrcSet(format string, v ...any) HTMLImg - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLImg + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLImg - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLImg - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLImg - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLImg - // UseMap specifies an image as a client-side image-map. Uses the given format and values. + // Associates the element with a client-side image map. Can be called with the designated format and values. UseMap(format string, v ...any) HTMLImg - // Width specifies the width of the element. + // Sets the width of the element. Width(v int) HTMLImg - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLImg - // OnAbort calls the given handler on abort. + // Triggers the handler when media loading is aborted. OnAbort(h EventHandler, scope ...any) HTMLImg - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLImg - // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). + // Executes the handler when media has buffered sufficiently to begin playback. OnCanPlay(h EventHandler, scope ...any) HTMLImg - // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. + // Invokes the handler when media can be played through without buffering interruptions. OnCanPlayThrough(h EventHandler, scope ...any) HTMLImg - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLImg - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLImg - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLImg - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLImg - // OnCueChange calls the given handler when the cue changes in a track element. + // Triggers the handler upon cue changes within a track element. OnCueChange(h EventHandler, scope ...any) HTMLImg - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLImg - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLImg - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLImg - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLImg - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLImg - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLImg - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLImg - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLImg - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLImg - // OnDurationChange calls the given handler when the length of the media changes. + // Executes the handler when the media's duration changes. OnDurationChange(h EventHandler, scope ...any) HTMLImg - // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). + // Invokes the handler when media unexpectedly becomes unavailable. OnEmptied(h EventHandler, scope ...any) HTMLImg - // OnEnded calls the given handler when the media has reach the end. + // Triggers the handler when media playback reaches the end. OnEnded(h EventHandler, scope ...any) HTMLImg - // OnError calls the given handler when an error occurs. + // Invokes the given handler when an error is encountered. OnError(h EventHandler, scope ...any) HTMLImg - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLImg - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLImg - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLImg - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLImg - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLImg - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLImg - // OnLoad calls the given handler after the element is finished loading. + // Executes the specified handler once the element has completely loaded. OnLoad(h EventHandler, scope ...any) HTMLImg - // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. + // Triggers the handler when media loading commences. OnLoadStart(h EventHandler, scope ...any) HTMLImg - // OnLoadedData calls the given handler when media data is loaded. + // Executes the handler as media data finishes loading. OnLoadedData(h EventHandler, scope ...any) HTMLImg - // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. + // Invokes the handler when metadata (like duration and dimensions) are fully loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLImg - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLImg - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLImg - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLImg - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLImg - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLImg - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLImg - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLImg - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLImg - // OnPause calls the given handler when the media is paused either by the user or programmatically. + // Executes the handler when media playback is paused. OnPause(h EventHandler, scope ...any) HTMLImg - // OnPlay calls the given handler when the media is ready to start playing. + // Invokes the handler when media starts its playback. OnPlay(h EventHandler, scope ...any) HTMLImg - // OnPlaying calls the given handler when the media actually has started playing. + // Triggers the handler once the media has initiated playback. OnPlaying(h EventHandler, scope ...any) HTMLImg - // OnProgress calls the given handler when the browser is in the process of getting the media data. + // Executes the handler while the browser fetches media data. OnProgress(h EventHandler, scope ...any) HTMLImg - // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). + // Invokes the handler when playback rate changes (e.g., slow motion or fast forward). OnRateChange(h EventHandler, scope ...any) HTMLImg - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLImg - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLImg - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLImg - // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. + // Triggers the handler post seeking completion. OnSeeked(h EventHandler, scope ...any) HTMLImg - // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. + // Executes the handler during the seeking process. OnSeeking(h EventHandler, scope ...any) HTMLImg - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLImg - // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. + // Invokes the handler when media data fetching stalls. OnStalled(h EventHandler, scope ...any) HTMLImg - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLImg - // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. + // Triggers the handler when media data fetching is suspended. OnSuspend(h EventHandler, scope ...any) HTMLImg - // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). + // Executes the handler when the media's playback position changes. OnTimeUpdate(h EventHandler, scope ...any) HTMLImg - // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). + // Invokes the handler upon volume changes or muting. OnVolumeChange(h EventHandler, scope ...any) HTMLImg - // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). + // Triggers the handler when media pauses, awaiting further buffering. OnWaiting(h EventHandler, scope ...any) HTMLImg - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLImg }@@ -13981,13 +14058,13 @@type func Img +
func Img ¶
func Img() HTMLImg-Img returns an HTML element that defines an image. +
Returns an HTML element that defines an image. @@ -13997,269 +14074,269 @@
func type HTMLInput +
type HTMLInput ¶
-HTMLInput is the interface that describes a "input" HTML element. +
The interface that represents a "input" HTML element.
type HTMLInput interface { - UI + HTML - // Accept specifies the types of files that the server accepts (only for file type) with the given format and values. + // Restricts file types the server accepts, especially used for file input elements. Accept(format string, v ...any) HTMLInput - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLInput - // Alt specifies an alternate text with the given format and values when the original element fails to display. + // Provides a text alternative for elements (often images) ensuring content is accessible when visuals can't be rendered. Alt(format string, v ...any) HTMLInput - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLInput - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLInput - // AutoComplete specifies whether the element should have autocomplete enabled. + // Toggles the browser's autocomplete feature, assisting users with common input values. AutoComplete(v bool) HTMLInput - // AutoFocus specifies that the element should automatically get focus when the page loads. + // Instructs the browser to focus this element automatically when the page loads. AutoFocus(v bool) HTMLInput - // Capture specifies the capture input method in file upload controls with the given format and values. + // Directs how media capture for file uploads should be handled, such as using the device's camera or microphone. Capture(format string, v ...any) HTMLInput - // Checked specifies that an input element should be pre-selected when the page loads (for checkbox or radio types). + // Indicates that an input element (checkbox or radio) should start in a selected state upon page load. Checked(v bool) HTMLInput - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLInput - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLInput - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLInput - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLInput - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLInput - // DirName specifies that the text direction will be submitted using the given format and values. + // Instructs the browser to also submit the text direction of a form field when the form is submitted. DirName(format string, v ...any) HTMLInput - // Disabled specifies that the specified element/group of elements should be disabled. + // Deactivates an element, rendering it uninteractive and visually distinct. Disabled(v bool) HTMLInput - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLInput - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLInput - // FormAction specifies where to send the form-data when a form is submitted. Only for submit type. Uses the given format and values. + // Defines the URL to which form data should be sent upon submission. Applicable only to 'submit' type inputs. FormAction(format string, v ...any) HTMLInput - // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type. Uses the given format and values. + // Dictates the encoding method for form data prior to its submission to a server. Applicable only to 'submit' type inputs. FormEncType(format string, v ...any) HTMLInput - // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type. Uses the given format and values. + // Determines the HTTP method for sending form data. Applicable only to 'submit' type inputs. FormMethod(format string, v ...any) HTMLInput - // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type. + // Indicates that the form data should bypass validation upon submission. Applicable only to 'submit' type inputs. FormNoValidate(v bool) HTMLInput - // FormTarget specifies where to display the response after submitting the form. Only for submit type. Uses the given format and values. + // Specifies where the server's response will be displayed after form submission. Applicable only to 'submit' type inputs. FormTarget(format string, v ...any) HTMLInput - // Height specifies the height of the element (in pixels). + // Sets the height of the element, measured in pixels. Height(v int) HTMLInput - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLInput - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLInput - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLInput - // List refers to a datalist element that contains pre-defined options for an input element. Uses the given format and values. + // Links to a datalist element offering predefined options for an input element. List(format string, v ...any) HTMLInput - // Max Specifies the maximum value. + // Establishes the maximum permissible value. Max(v any) HTMLInput - // MaxLength specifies the maximum number of characters allowed in an element. + // Defines the maximum number of characters permissible in an element. MaxLength(v int) HTMLInput - // Min specifies a minimum value. + // Establishes the minimum permissible value. Min(v any) HTMLInput - // Multiple specifies that a user can enter more than one value. + // Allows users to input multiple values. Multiple(v bool) HTMLInput - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLInput - // Pattern specifies a regular expression that an input element's value is checked against. Uses the given format and values. + // Establishes a regular expression against which an input element's value is validated. Pattern(format string, v ...any) HTMLInput - // Placeholder specifies a short hint that describes the expected value of the element. Uses the given format and values. + // Provides a brief hint describing the expected value of the element. Placeholder(format string, v ...any) HTMLInput - // ReadOnly specifies that the element is read-only. + // Indicates that the element's value cannot be edited by the user. ReadOnly(v bool) HTMLInput - // Required specifies that the element must be filled out before submitting the form. + // Indicates that the element must contain a value before form submission. Required(v bool) HTMLInput - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLInput - // Size specifies the width. + // Indicates the width of the element, usually in characters for input elements. Size(v int) HTMLInput - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLInput - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLInput - // Step specifies the legal number intervals for an input field. + // Specifies the interval between permissible values for an input field. Step(v float64) HTMLInput - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLInput + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLInput - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLInput - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLInput - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLInput - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLInput - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLInput - // Width specifies the width of the element. + // Sets the width of the element. Width(v int) HTMLInput - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLInput - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLInput - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLInput - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLInput - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLInput - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLInput - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLInput - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLInput - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLInput - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLInput - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLInput - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLInput - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLInput - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLInput - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLInput - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLInput - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLInput - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLInput - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLInput - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLInput - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLInput - // OnLoad calls the given handler after the element is finished loading. + // Executes the specified handler once the element has completely loaded. OnLoad(h EventHandler, scope ...any) HTMLInput - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLInput - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLInput - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLInput - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLInput - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLInput - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLInput - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLInput - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLInput - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLInput - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLInput - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLInput - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLInput - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLInput - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLInput }@@ -14273,13 +14350,13 @@type func Input +
func Input ¶
func Input() HTMLInput-Input returns an HTML element that defines an input control. +
Returns an HTML element that defines an input control. @@ -14289,182 +14366,182 @@
func type HTMLIns +
type HTMLIns ¶
-HTMLIns is the interface that describes a "ins" HTML element. +
The interface that represents a "ins" HTML element.
type HTMLIns interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLIns - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLIns - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLIns - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLIns - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLIns - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLIns - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLIns - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLIns - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLIns - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLIns - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLIns - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLIns - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLIns - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLIns - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLIns - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLIns - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLIns - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLIns + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLIns - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLIns - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLIns - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLIns - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLIns - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLIns - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLIns - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLIns - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLIns - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLIns - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLIns - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLIns - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLIns - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLIns - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLIns - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLIns - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLIns - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLIns - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLIns - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLIns - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLIns - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLIns - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLIns - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLIns - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLIns - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLIns - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLIns - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLIns - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLIns - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLIns - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLIns - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLIns - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLIns - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLIns - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLIns - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLIns - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLIns - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLIns - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLIns }@@ -14478,13 +14555,13 @@type func Ins +
func Ins ¶
func Ins() HTMLIns-Ins returns an HTML element that defines a text that has been inserted into a document. +
Returns an HTML element that defines text that has been inserted into a document. @@ -14494,182 +14571,182 @@
func type HTMLKbd +
type HTMLKbd ¶
-HTMLKbd is the interface that describes a "kbd" HTML element. +
The interface that represents a "kbd" HTML element.
type HTMLKbd interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLKbd - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLKbd - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLKbd - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLKbd - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLKbd - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLKbd - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLKbd - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLKbd - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLKbd - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLKbd - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLKbd - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLKbd - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLKbd - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLKbd - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLKbd - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLKbd - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLKbd - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLKbd + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLKbd - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLKbd - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLKbd - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLKbd - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLKbd - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLKbd - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLKbd - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLKbd - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLKbd - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLKbd - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLKbd - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLKbd - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLKbd - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLKbd - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLKbd - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLKbd - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLKbd - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLKbd - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLKbd - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLKbd - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLKbd - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLKbd - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLKbd - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLKbd - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLKbd - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLKbd - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLKbd - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLKbd - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLKbd - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLKbd - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLKbd - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLKbd - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLKbd - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLKbd - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLKbd - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLKbd - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLKbd - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLKbd - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLKbd }@@ -14683,13 +14760,13 @@type func Kbd +
func Kbd ¶
func Kbd() HTMLKbd-Kbd returns an HTML element that defines keyboard input. +
Returns an HTML element that represents keyboard input. @@ -14699,188 +14776,188 @@
func type HTMLLabel +
type HTMLLabel ¶
-HTMLLabel is the interface that describes a "label" HTML element. +
The interface that represents a "label" HTML element.
type HTMLLabel interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLLabel - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLLabel - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLLabel - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLLabel - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLLabel - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLLabel - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLLabel - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLLabel - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLLabel - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLLabel - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLLabel - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLLabel - // For specifies which form element(s) a label/calculation is bound to. Uses the given format and values. + // Associates a label or calculation with specific form element(s). For(format string, v ...any) HTMLLabel - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLLabel - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLLabel - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLLabel - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLLabel - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLLabel - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLLabel - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLLabel + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLLabel - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLLabel - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLLabel - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLLabel - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLLabel - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLabel - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLLabel - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLabel - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLLabel - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLLabel - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLLabel - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLLabel - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLLabel - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLabel - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLabel - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLabel - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLabel - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLabel - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLLabel - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLLabel - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLLabel - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLLabel - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLabel - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLLabel - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLabel - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLLabel - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLLabel - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLabel - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLLabel - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLLabel - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLLabel - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLLabel - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLLabel - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLLabel - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLLabel - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLLabel - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLLabel - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLLabel - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLLabel }@@ -14894,13 +14971,13 @@type func Label +
func Label ¶
func Label() HTMLLabel-Label returns an HTML element that defines a label for an input element. +
Returns an HTML element that represents a label for an input element. @@ -14910,182 +14987,182 @@
func type HTMLLegend +
type HTMLLegend ¶
-HTMLLegend is the interface that describes a "legend" HTML element. +
The interface that represents a "legend" HTML element.
type HTMLLegend interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLLegend - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLLegend - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLLegend - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLLegend - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLLegend - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLLegend - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLLegend - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLLegend - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLLegend - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLLegend - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLLegend - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLLegend - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLLegend - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLLegend - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLLegend - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLLegend - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLLegend - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLLegend + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLLegend - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLLegend - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLLegend - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLLegend - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLLegend - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLegend - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLLegend - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLegend - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLLegend - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLLegend - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLLegend - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLLegend - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLLegend - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLegend - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLegend - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLegend - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLegend - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLegend - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLLegend - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLLegend - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLLegend - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLLegend - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLegend - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLLegend - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLegend - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLLegend - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLLegend - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLegend - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLLegend - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLLegend - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLLegend - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLLegend - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLLegend - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLLegend - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLLegend - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLLegend - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLLegend - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLLegend - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLLegend }@@ -15099,13 +15176,13 @@type func Legend +
func Legend ¶
func Legend() HTMLLegend-Legend returns an HTML element that defines a caption for a fieldset element. +
Returns an HTML element that represents a caption for a fieldset element. @@ -15115,185 +15192,185 @@
func type HTMLLi +
type HTMLLi ¶
-HTMLLi is the interface that describes a "li" HTML element. +
The interface that represents a "li" HTML element.
type HTMLLi interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLLi - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLLi - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLLi - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLLi - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLLi - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLLi - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLLi - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLLi - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLLi - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLLi - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLLi - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLLi - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLLi - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLLi - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLLi - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLLi - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLLi - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLLi + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLLi - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLLi - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLLi - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLLi - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLLi - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLLi - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLi - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLLi - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLi - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLLi - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLLi - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLLi - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLLi - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLLi - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLi - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLi - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLi - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLi - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLi - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLLi - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLLi - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLLi - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLLi - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLi - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLLi - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLi - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLLi - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLLi - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLi - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLLi - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLLi - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLLi - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLLi - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLLi - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLLi - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLLi - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLLi - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLLi - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLLi - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLLi }@@ -15307,13 +15384,13 @@type func Li +
func Li ¶
func Li() HTMLLi-Li returns an HTML element that defines a list item. +
Returns an HTML element that represents a list item. @@ -15323,203 +15400,203 @@
func type HTMLLink +
type HTMLLink ¶
-HTMLLink is the interface that describes a "link" HTML element. +
The interface that represents a "link" HTML element.
type HTMLLink interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLLink - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLLink - // As specifies a resource type to preload with the given format and values. + // Hints the type of content to preload, optimizing loading for certain resources. As(format string, v ...any) HTMLLink - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLLink - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLLink - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLLink - // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values. + // Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins. CrossOrigin(format string, v ...any) HTMLLink - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLLink - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLLink - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLLink - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLLink - // FetchPriority specifies a hint given to the browser on how it should prioritize the fetch of the image relative to other images. - FetchPriority(v string) HTMLLink + // Provides a hint to the browser about how it should prioritize the fetch of the image in relation to other images. + FetchPriority(format string, v ...any) HTMLLink - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLLink - // Href specifies the URL of the page the link goes to with the given format and values. + // Points to the URL of the destination when the link is clicked. Href(format string, v ...any) HTMLLink - // HrefLang specifies the language of the linked document with the given format and values. + // Declares the language of the linked document's content. HrefLang(format string, v ...any) HTMLLink - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLLink - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLLink - // Media specifies what media/device the linked document is optimized for. Uses the given format and values. + // Indicates the intended media or device for the linked document. Media(format string, v ...any) HTMLLink - // Rel specifies the relationship between the current document and the linked document. uses the given format and values. + // Describes the relationship between the current and linked documents. Rel(format string, v ...any) HTMLLink - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLLink - // Sizes specifies the size of the linked resource with the given format and values. + // Specifies sizes of icons and images for different page or screen scenarios. Uses the given format and values. Sizes(format string, v ...any) HTMLLink - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLLink - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLLink + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLLink - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLLink - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLLink - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLLink - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLLink - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLLink - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLLink - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLLink - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLLink - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLLink - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLLink - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLLink - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLLink - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLLink - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLLink - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLLink - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLLink - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLLink - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLLink - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLLink - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLLink - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLLink - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLLink - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLLink - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLLink - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLLink - // OnLoad calls the given handler after the element is finished loading. + // Executes the specified handler once the element has completely loaded. OnLoad(h EventHandler, scope ...any) HTMLLink - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLLink - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLLink - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLLink - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLLink - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLLink - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLLink - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLLink - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLLink - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLLink - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLLink - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLLink - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLLink - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLLink - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLLink }@@ -15533,13 +15610,13 @@type func Link +
func Link ¶
func Link() HTMLLink-Link returns an HTML element that defines the relationship between a document and an external resource (most used to link to style sheets). +
Returns an HTML element that describes the relationship between a document and an external resource (most commonly used to link to style sheets). @@ -15549,182 +15626,182 @@
func type HTMLMain +
type HTMLMain ¶
-HTMLMain is the interface that describes a "main" HTML element. +
The interface that represents a "main" HTML element.
type HTMLMain interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLMain - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLMain - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLMain - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLMain - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLMain - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLMain - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLMain - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLMain - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLMain - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLMain - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLMain - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLMain - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLMain - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLMain - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLMain - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLMain - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLMain - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLMain + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLMain - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLMain - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLMain - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLMain - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLMain - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMain - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLMain - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMain - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLMain - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLMain - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLMain - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLMain - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLMain - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMain - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMain - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMain - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMain - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMain - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLMain - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLMain - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLMain - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLMain - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMain - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLMain - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMain - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLMain - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLMain - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMain - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLMain - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLMain - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLMain - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLMain - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLMain - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLMain - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLMain - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLMain - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLMain - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLMain - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLMain }@@ -15738,13 +15815,13 @@type func Main +
func Main ¶
func Main() HTMLMain-Main returns an HTML element that specifies the main content of a document. +
Returns an HTML element that specifies the main content of a document. @@ -15754,185 +15831,185 @@
func type HTMLMap +
type HTMLMap ¶
-HTMLMap is the interface that describes a "map" HTML element. +
The interface that represents a "map" HTML element.
type HTMLMap interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLMap - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLMap - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLMap - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLMap - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLMap - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLMap - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLMap - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLMap - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLMap - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLMap - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLMap - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLMap - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLMap - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLMap - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLMap - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLMap - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLMap - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLMap - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLMap + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLMap - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLMap - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLMap - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLMap - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLMap - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMap - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLMap - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMap - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLMap - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLMap - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLMap - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLMap - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLMap - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMap - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMap - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMap - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMap - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMap - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLMap - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLMap - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLMap - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLMap - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMap - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLMap - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMap - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLMap - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLMap - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMap - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLMap - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLMap - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLMap - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLMap - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLMap - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLMap - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLMap - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLMap - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLMap - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLMap - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLMap }@@ -15946,13 +16023,13 @@type func Map +
func Map ¶
func Map() HTMLMap-Map returns an HTML element that defines a client-side image-map. +
Returns an HTML element that represents a client-side image-map. @@ -15962,182 +16039,182 @@
func type HTMLMark +
type HTMLMark ¶
-HTMLMark is the interface that describes a "mark" HTML element. +
The interface that represents a "mark" HTML element.
type HTMLMark interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLMark - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLMark - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLMark - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLMark - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLMark - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLMark - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLMark - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLMark - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLMark - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLMark - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLMark - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLMark - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLMark - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLMark - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLMark - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLMark - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLMark - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLMark + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLMark - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLMark - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLMark - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLMark - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLMark - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMark - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLMark - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMark - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLMark - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLMark - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLMark - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLMark - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLMark - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMark - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMark - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMark - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMark - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMark - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLMark - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLMark - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLMark - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLMark - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMark - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLMark - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMark - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLMark - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLMark - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMark - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLMark - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLMark - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLMark - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLMark - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLMark - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLMark - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLMark - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLMark - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLMark - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLMark - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLMark }@@ -16151,13 +16228,13 @@type func Mark +
func Mark ¶
func Mark() HTMLMark-Mark returns an HTML element that defines marked/highlighted text. +
Returns an HTML element that represents marked/highlighted text. @@ -16167,86 +16244,86 @@
func type HTMLMeta +
type HTMLMeta ¶
-HTMLMeta is the interface that describes a "meta" HTML element. +
The interface that represents a "meta" HTML element.
type HTMLMeta interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLMeta - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLMeta - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLMeta - // Charset specifies the character encoding with the given format and values. + // Specifies the character encoding for the linked document or external resource. Charset(format string, v ...any) HTMLMeta - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLMeta - // Content specifies the value associated with the http-equiv or name attribute using the given format and values. + // Specifies metadata content for the `http-equiv` or `name` attributes, often used in meta tags. Content(format string, v ...any) HTMLMeta - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLMeta - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLMeta - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLMeta - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLMeta - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLMeta - // HTTPEquiv provides an HTTP header for the information/value of the content attribute. - HTTPEquiv(v string) HTMLMeta + // Supplies an HTTP header for the content attribute, often used for refresh rates or setting a default charset. + HTTPEquiv(format string, v ...any) HTMLMeta - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLMeta - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLMeta - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLMeta - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLMeta - // Property specifies the property name with the given format and values. + // Defines the property name of the element. Property(format string, v ...any) HTMLMeta - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLMeta - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLMeta - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLMeta + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLMeta - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLMeta - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLMeta - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLMeta - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLMeta }@@ -16260,13 +16337,13 @@type func Meta +
func Meta ¶
func Meta() HTMLMeta-Meta returns an HTML element that . +
Returns an HTML element that provides metadata about the HTML document. @@ -16276,203 +16353,203 @@
func type HTMLMeter +
type HTMLMeter ¶
-HTMLMeter is the interface that describes a "meter" HTML element. +
The interface that represents a "meter" HTML element.
type HTMLMeter interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLMeter - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLMeter - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLMeter - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLMeter - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLMeter - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLMeter - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLMeter - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLMeter - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLMeter - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLMeter - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLMeter - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLMeter - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLMeter - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLMeter - // High specifies the range that is considered to be a high value. + // Defines the value threshold considered as 'high' in a range context. High(v float64) HTMLMeter - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLMeter - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLMeter - // Low specifies the range that is considered to be a low value. + // Sets the value threshold regarded as 'low' in a range context. Low(v float64) HTMLMeter - // Max Specifies the maximum value. + // Establishes the maximum permissible value. Max(v any) HTMLMeter - // Min specifies a minimum value. + // Establishes the minimum permissible value. Min(v any) HTMLMeter - // Optimum specifies what value is the optimal value for the gauge. + // Sets the optimal numeric value for a gauge element. Optimum(v float64) HTMLMeter - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLMeter - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLMeter - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLMeter + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLMeter - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLMeter - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLMeter - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLMeter - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLMeter - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLMeter - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLMeter - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLMeter - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLMeter - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLMeter - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLMeter - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLMeter - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLMeter - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLMeter - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLMeter - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLMeter - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLMeter - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLMeter - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLMeter - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLMeter - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLMeter - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLMeter - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLMeter - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLMeter - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLMeter - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLMeter - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLMeter - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLMeter - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLMeter - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLMeter - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLMeter - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLMeter - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLMeter - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLMeter - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLMeter - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLMeter - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLMeter - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLMeter - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLMeter - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLMeter }@@ -16486,13 +16563,13 @@type func Meter +
func Meter ¶
func Meter() HTMLMeter-Meter returns an HTML element that defines a scalar measurement within a known range (a gauge). +
Returns an HTML element that represents a scalar measurement within a known range (like a gauge). @@ -16502,182 +16579,182 @@
func type HTMLNav +
type HTMLNav ¶
-HTMLNav is the interface that describes a "nav" HTML element. +
The interface that represents a "nav" HTML element.
type HTMLNav interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLNav - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLNav - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLNav - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLNav - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLNav - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLNav - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLNav - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLNav - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLNav - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLNav - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLNav - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLNav - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLNav - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLNav - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLNav - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLNav - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLNav - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLNav + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLNav - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLNav - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLNav - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLNav - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLNav - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLNav - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLNav - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLNav - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLNav - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLNav - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLNav - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLNav - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLNav - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLNav - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLNav - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLNav - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLNav - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLNav - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLNav - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLNav - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLNav - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLNav - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLNav - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLNav - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLNav - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLNav - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLNav - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLNav - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLNav - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLNav - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLNav - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLNav - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLNav - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLNav - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLNav - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLNav - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLNav - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLNav - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLNav }@@ -16691,13 +16768,13 @@type func Nav +
func Nav ¶
func Nav() HTMLNav-Nav returns an HTML element that defines navigation links. +
Returns an HTML element that represents navigation links. @@ -16707,80 +16784,80 @@
func type HTMLNoScript +
type HTMLNoScript ¶
-HTMLNoScript is the interface that describes a "noscript" HTML element. +
The interface that represents a "noscript" HTML element.
type HTMLNoScript interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLNoScript - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLNoScript - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLNoScript - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLNoScript - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLNoScript - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLNoScript - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLNoScript - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLNoScript - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLNoScript - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLNoScript - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLNoScript - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLNoScript - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLNoScript - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLNoScript - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLNoScript - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLNoScript - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLNoScript - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLNoScript + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLNoScript - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLNoScript - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLNoScript - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLNoScript - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLNoScript }@@ -16794,13 +16871,13 @@type func NoScript +
func NoScript ¶
func NoScript() HTMLNoScript-NoScript returns an HTML element that defines an alternate content for users that do not support client-side scripts. +
Returns an HTML element that provides alternate content for users who do not support client-side scripts. @@ -16810,272 +16887,272 @@
func type HTMLObject +
type HTMLObject ¶
-HTMLObject is the interface that describes a "object" HTML element. +
The interface that represents a "object" HTML element.
type HTMLObject interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLObject - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLObject - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLObject - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLObject - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLObject - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLObject - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLObject - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLObject - // Data specifies the URL of the resource to be used by the object with the given format and values. + // Specifies the URL of a resource associated with an embedded object, such as media or data. Data(format string, v ...any) HTMLObject - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLObject - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLObject - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLObject - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLObject - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLObject - // Height specifies the height of the element (in pixels). + // Sets the height of the element, measured in pixels. Height(v int) HTMLObject - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLObject - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLObject - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLObject - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLObject - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLObject - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLObject - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLObject + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLObject - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLObject - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLObject - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLObject - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLObject - // UseMap specifies an image as a client-side image-map. Uses the given format and values. + // Associates the element with a client-side image map. Can be called with the designated format and values. UseMap(format string, v ...any) HTMLObject - // Width specifies the width of the element. + // Sets the width of the element. Width(v int) HTMLObject - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLObject - // OnAbort calls the given handler on abort. + // Triggers the handler when media loading is aborted. OnAbort(h EventHandler, scope ...any) HTMLObject - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLObject - // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). + // Executes the handler when media has buffered sufficiently to begin playback. OnCanPlay(h EventHandler, scope ...any) HTMLObject - // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. + // Invokes the handler when media can be played through without buffering interruptions. OnCanPlayThrough(h EventHandler, scope ...any) HTMLObject - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLObject - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLObject - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLObject - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLObject - // OnCueChange calls the given handler when the cue changes in a track element. + // Triggers the handler upon cue changes within a track element. OnCueChange(h EventHandler, scope ...any) HTMLObject - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLObject - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLObject - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLObject - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLObject - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLObject - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLObject - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLObject - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLObject - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLObject - // OnDurationChange calls the given handler when the length of the media changes. + // Executes the handler when the media's duration changes. OnDurationChange(h EventHandler, scope ...any) HTMLObject - // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). + // Invokes the handler when media unexpectedly becomes unavailable. OnEmptied(h EventHandler, scope ...any) HTMLObject - // OnEnded calls the given handler when the media has reach the end. + // Triggers the handler when media playback reaches the end. OnEnded(h EventHandler, scope ...any) HTMLObject - // OnError calls the given handler when an error occurs. + // Invokes the given handler when an error is encountered. OnError(h EventHandler, scope ...any) HTMLObject - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLObject - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLObject - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLObject - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLObject - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLObject - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLObject - // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. + // Triggers the handler when media loading commences. OnLoadStart(h EventHandler, scope ...any) HTMLObject - // OnLoadedData calls the given handler when media data is loaded. + // Executes the handler as media data finishes loading. OnLoadedData(h EventHandler, scope ...any) HTMLObject - // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. + // Invokes the handler when metadata (like duration and dimensions) are fully loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLObject - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLObject - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLObject - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLObject - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLObject - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLObject - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLObject - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLObject - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLObject - // OnPause calls the given handler when the media is paused either by the user or programmatically. + // Executes the handler when media playback is paused. OnPause(h EventHandler, scope ...any) HTMLObject - // OnPlay calls the given handler when the media is ready to start playing. + // Invokes the handler when media starts its playback. OnPlay(h EventHandler, scope ...any) HTMLObject - // OnPlaying calls the given handler when the media actually has started playing. + // Triggers the handler once the media has initiated playback. OnPlaying(h EventHandler, scope ...any) HTMLObject - // OnProgress calls the given handler when the browser is in the process of getting the media data. + // Executes the handler while the browser fetches media data. OnProgress(h EventHandler, scope ...any) HTMLObject - // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). + // Invokes the handler when playback rate changes (e.g., slow motion or fast forward). OnRateChange(h EventHandler, scope ...any) HTMLObject - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLObject - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLObject - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLObject - // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. + // Triggers the handler post seeking completion. OnSeeked(h EventHandler, scope ...any) HTMLObject - // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. + // Executes the handler during the seeking process. OnSeeking(h EventHandler, scope ...any) HTMLObject - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLObject - // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. + // Invokes the handler when media data fetching stalls. OnStalled(h EventHandler, scope ...any) HTMLObject - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLObject - // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. + // Triggers the handler when media data fetching is suspended. OnSuspend(h EventHandler, scope ...any) HTMLObject - // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). + // Executes the handler when the media's playback position changes. OnTimeUpdate(h EventHandler, scope ...any) HTMLObject - // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). + // Invokes the handler upon volume changes or muting. OnVolumeChange(h EventHandler, scope ...any) HTMLObject - // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). + // Triggers the handler when media pauses, awaiting further buffering. OnWaiting(h EventHandler, scope ...any) HTMLObject - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLObject }@@ -17089,13 +17166,13 @@type func Object +
func Object ¶
func Object() HTMLObject-Object returns an HTML element that defines an embedded object. +
Returns an HTML element that embeds an object within the document. @@ -17105,191 +17182,191 @@
func type HTMLOl +
type HTMLOl ¶
-HTMLOl is the interface that describes a "ol" HTML element. +
The interface that represents a "ol" HTML element.
type HTMLOl interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLOl - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLOl - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLOl - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLOl - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLOl - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLOl - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLOl - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLOl - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLOl - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLOl - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLOl - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLOl - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLOl - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLOl - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLOl - // Reversed specifies that the list order should be descending (9,8,7...). + // States that the list items should be displayed in descending order. Reversed(v bool) HTMLOl - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLOl - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLOl - // Start specifies the start value of the ordered list. + // Determines the starting number for an ordered list. Start(v int) HTMLOl - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLOl + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLOl - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLOl - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLOl - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLOl - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLOl - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLOl - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOl - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLOl - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOl - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLOl - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLOl - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLOl - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLOl - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLOl - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOl - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOl - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOl - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOl - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOl - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLOl - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLOl - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLOl - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLOl - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOl - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLOl - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOl - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLOl - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLOl - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOl - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLOl - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLOl - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLOl - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLOl - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLOl - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLOl - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLOl - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLOl - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLOl - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLOl - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLOl }@@ -17303,13 +17380,13 @@type func Ol +
func Ol ¶
func Ol() HTMLOl-Ol returns an HTML element that defines an ordered list. +
Returns an HTML element that represents an ordered list. @@ -17319,188 +17396,188 @@
func type HTMLOptGroup +
type HTMLOptGroup ¶
-HTMLOptGroup is the interface that describes a "optgroup" HTML element. +
The interface that represents a "optgroup" HTML element.
type HTMLOptGroup interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLOptGroup - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLOptGroup - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLOptGroup - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLOptGroup - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLOptGroup - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLOptGroup - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLOptGroup - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLOptGroup - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLOptGroup - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLOptGroup - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLOptGroup - // Disabled specifies that the specified element/group of elements should be disabled. + // Deactivates an element, rendering it uninteractive and visually distinct. Disabled(v bool) HTMLOptGroup - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLOptGroup - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLOptGroup - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLOptGroup - // Label specifies a shorter label for the option with the given format and values. + // Provides a concise label for an option element. Label(format string, v ...any) HTMLOptGroup - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLOptGroup - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLOptGroup - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLOptGroup - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLOptGroup + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLOptGroup - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLOptGroup - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLOptGroup - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLOptGroup - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLOptGroup - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOptGroup - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLOptGroup - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOptGroup - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLOptGroup - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLOptGroup - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLOptGroup - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLOptGroup - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLOptGroup - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOptGroup - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOptGroup - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOptGroup - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOptGroup - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOptGroup - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLOptGroup - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLOptGroup - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLOptGroup - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLOptGroup - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOptGroup - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLOptGroup - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOptGroup - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLOptGroup - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLOptGroup - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOptGroup - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLOptGroup - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLOptGroup - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLOptGroup - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLOptGroup - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLOptGroup - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLOptGroup - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLOptGroup - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLOptGroup - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLOptGroup - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLOptGroup - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLOptGroup }@@ -17514,13 +17591,13 @@type func OptGroup +
func OptGroup ¶
func OptGroup() HTMLOptGroup-OptGroup returns an HTML element that defines a group of related options in a drop-down list. +
Returns an HTML element that groups related options in a drop-down list. @@ -17530,194 +17607,194 @@
func type HTMLOption +
type HTMLOption ¶
-HTMLOption is the interface that describes a "option" HTML element. +
The interface that represents a "option" HTML element.
type HTMLOption interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLOption - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLOption - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLOption - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLOption - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLOption - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLOption - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLOption - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLOption - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLOption - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLOption - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLOption - // Disabled specifies that the specified element/group of elements should be disabled. + // Deactivates an element, rendering it uninteractive and visually distinct. Disabled(v bool) HTMLOption - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLOption - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLOption - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLOption - // Label specifies a shorter label for the option with the given format and values. + // Provides a concise label for an option element. Label(format string, v ...any) HTMLOption - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLOption - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLOption - // Selected specifies that an option should be pre-selected when the page loads. + // Indicates that an option should be pre-selected when the page loads. Selected(v bool) HTMLOption - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLOption - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLOption + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLOption - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLOption - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLOption - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLOption - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLOption - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLOption - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOption - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLOption - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOption - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLOption - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLOption - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLOption - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLOption - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLOption - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOption - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOption - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOption - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOption - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOption - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLOption - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLOption - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLOption - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLOption - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOption - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLOption - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOption - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLOption - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLOption - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOption - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLOption - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLOption - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLOption - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLOption - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLOption - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLOption - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLOption - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLOption - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLOption - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLOption - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLOption }@@ -17731,13 +17808,13 @@type func Option +
func Option ¶
func Option() HTMLOption-Option returns an HTML element that defines an option in a drop-down list. +
Returns an HTML element that represents an option in a drop-down list. @@ -17747,191 +17824,191 @@
func type HTMLOutput +
type HTMLOutput ¶
-HTMLOutput is the interface that describes a "output" HTML element. +
The interface that represents a "output" HTML element.
type HTMLOutput interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLOutput - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLOutput - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLOutput - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLOutput - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLOutput - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLOutput - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLOutput - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLOutput - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLOutput - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLOutput - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLOutput - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLOutput - // For specifies which form element(s) a label/calculation is bound to. Uses the given format and values. + // Associates a label or calculation with specific form element(s). For(format string, v ...any) HTMLOutput - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLOutput - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLOutput - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLOutput - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLOutput - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLOutput - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLOutput - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLOutput - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLOutput + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLOutput - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLOutput - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLOutput - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLOutput - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLOutput - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLOutput - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLOutput - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLOutput - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLOutput - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLOutput - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLOutput - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLOutput - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLOutput - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLOutput - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLOutput - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLOutput - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLOutput - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLOutput - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLOutput - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLOutput - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLOutput - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLOutput - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLOutput - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLOutput - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLOutput - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLOutput - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLOutput - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLOutput - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLOutput - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLOutput - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLOutput - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLOutput - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLOutput - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLOutput - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLOutput - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLOutput - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLOutput - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLOutput - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLOutput }@@ -17945,13 +18022,13 @@type func Output +
func Output ¶
func Output() HTMLOutput-Output returns an HTML element that . +
Returns an HTML element that displays the result of a calculation or user action. @@ -17961,182 +18038,182 @@
func type HTMLP +
type HTMLP ¶
-HTMLP is the interface that describes a "p" HTML element. +
The interface that represents a "p" HTML element.
type HTMLP interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLP - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLP - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLP - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLP - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLP - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLP - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLP - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLP - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLP - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLP - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLP - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLP - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLP - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLP - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLP - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLP - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLP - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLP + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLP - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLP - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLP - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLP - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLP - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLP - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLP - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLP - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLP - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLP - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLP - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLP - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLP - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLP - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLP - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLP - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLP - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLP - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLP - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLP - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLP - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLP - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLP - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLP - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLP - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLP - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLP - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLP - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLP - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLP - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLP - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLP - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLP - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLP - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLP - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLP - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLP - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLP - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLP }@@ -18150,13 +18227,13 @@type func P +
func P ¶
func P() HTMLP-P returns an HTML element that defines a paragraph. +
Returns an HTML element that represents a paragraph. @@ -18166,179 +18243,179 @@
func type HTMLParam +
type HTMLParam ¶
-HTMLParam is the interface that describes a "param" HTML element. +
The interface that represents a "param" HTML element.
type HTMLParam interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLParam - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLParam - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLParam - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLParam - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLParam - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLParam - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLParam - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLParam - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLParam - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLParam - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLParam - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLParam - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLParam - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLParam - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLParam - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLParam + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLParam - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLParam - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLParam - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLParam - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLParam - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLParam - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLParam - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLParam - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLParam - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLParam - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLParam - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLParam - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLParam - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLParam - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLParam - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLParam - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLParam - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLParam - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLParam - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLParam - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLParam - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLParam - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLParam - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLParam - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLParam - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLParam - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLParam - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLParam - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLParam - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLParam - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLParam - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLParam - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLParam - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLParam - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLParam - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLParam - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLParam - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLParam - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLParam - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLParam }@@ -18352,13 +18429,13 @@type func Param +
func Param ¶
func Param() HTMLParam-Param returns an HTML element that defines a parameter for an object. +
Returns an HTML element that defines a parameter for an embedded object. @@ -18368,182 +18445,182 @@
func type HTMLPicture +
type HTMLPicture ¶
-HTMLPicture is the interface that describes a "picture" HTML element. +
The interface that represents a "picture" HTML element.
type HTMLPicture interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLPicture - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLPicture - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLPicture - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLPicture - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLPicture - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLPicture - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLPicture - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLPicture - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLPicture - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLPicture - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLPicture - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLPicture - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLPicture - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLPicture - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLPicture - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLPicture - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLPicture - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLPicture + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLPicture - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLPicture - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLPicture - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLPicture - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLPicture - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLPicture - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLPicture - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLPicture - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLPicture - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLPicture - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLPicture - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLPicture - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLPicture - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLPicture - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLPicture - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLPicture - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLPicture - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLPicture - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLPicture - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLPicture - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLPicture - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLPicture - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLPicture - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLPicture - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLPicture - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLPicture - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLPicture - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLPicture - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLPicture - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLPicture - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLPicture - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLPicture - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLPicture - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLPicture - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLPicture - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLPicture - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLPicture - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLPicture - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLPicture }@@ -18557,13 +18634,13 @@type func Picture +
func Picture ¶
func Picture() HTMLPicture-Picture returns an HTML element that defines a container for multiple image resources. +
Returns an HTML element that provides a container for multiple image sources. @@ -18573,182 +18650,182 @@
func type HTMLPre +
type HTMLPre ¶
-HTMLPre is the interface that describes a "pre" HTML element. +
The interface that represents a "pre" HTML element.
type HTMLPre interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLPre - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLPre - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLPre - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLPre - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLPre - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLPre - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLPre - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLPre - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLPre - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLPre - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLPre - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLPre - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLPre - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLPre - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLPre - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLPre - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLPre - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLPre + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLPre - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLPre - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLPre - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLPre - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLPre - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLPre - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLPre - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLPre - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLPre - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLPre - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLPre - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLPre - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLPre - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLPre - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLPre - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLPre - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLPre - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLPre - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLPre - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLPre - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLPre - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLPre - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLPre - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLPre - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLPre - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLPre - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLPre - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLPre - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLPre - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLPre - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLPre - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLPre - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLPre - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLPre - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLPre - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLPre - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLPre - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLPre - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLPre }@@ -18762,13 +18839,13 @@type func Pre +
func Pre ¶
func Pre() HTMLPre-Pre returns an HTML element that defines preformatted text. +
Returns an HTML element that displays preformatted text. @@ -18778,188 +18855,188 @@
func type HTMLProgress +
type HTMLProgress ¶
-HTMLProgress is the interface that describes a "progress" HTML element. +
The interface that represents a "progress" HTML element.
type HTMLProgress interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLProgress - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLProgress - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLProgress - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLProgress - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLProgress - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLProgress - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLProgress - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLProgress - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLProgress - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLProgress - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLProgress - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLProgress - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLProgress - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLProgress - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLProgress - // Max Specifies the maximum value. + // Establishes the maximum permissible value. Max(v any) HTMLProgress - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLProgress - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLProgress - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLProgress + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLProgress - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLProgress - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLProgress - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLProgress - // Value specifies the value of the element. + // Assigns a value to the element. Value(v any) HTMLProgress - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLProgress - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLProgress - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLProgress - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLProgress - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLProgress - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLProgress - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLProgress - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLProgress - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLProgress - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLProgress - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLProgress - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLProgress - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLProgress - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLProgress - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLProgress - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLProgress - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLProgress - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLProgress - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLProgress - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLProgress - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLProgress - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLProgress - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLProgress - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLProgress - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLProgress - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLProgress - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLProgress - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLProgress - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLProgress - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLProgress - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLProgress - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLProgress - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLProgress - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLProgress - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLProgress }@@ -18973,13 +19050,13 @@type func Progress +
func Progress ¶
func Progress() HTMLProgress-Progress returns an HTML element that represents the progress of a task. +
Returns an HTML element that visualizes the progress of a task. @@ -18989,185 +19066,185 @@
func type HTMLQ +
type HTMLQ ¶
-HTMLQ is the interface that describes a "q" HTML element. +
The interface that represents a "q" HTML element.
type HTMLQ interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLQ - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLQ - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLQ - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLQ - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLQ - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLQ - // Cite specifies a URL which explains the quote/deleted/inserted text with the given format and values. + // Provides a reference or link to a source explaining quoted or modified content in the element. Cite(format string, v ...any) HTMLQ - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLQ - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLQ - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLQ - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLQ - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLQ - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLQ - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLQ - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLQ - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLQ - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLQ - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLQ - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLQ + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLQ - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLQ - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLQ - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLQ - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLQ - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLQ - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLQ - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLQ - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLQ - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLQ - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLQ - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLQ - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLQ - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLQ - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLQ - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLQ - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLQ - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLQ - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLQ - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLQ - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLQ - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLQ - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLQ - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLQ - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLQ - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLQ - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLQ - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLQ - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLQ - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLQ - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLQ - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLQ - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLQ - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLQ - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLQ - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLQ - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLQ - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLQ - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLQ }@@ -19181,13 +19258,13 @@type func Q +
func Q ¶
func Q() HTMLQ-Q returns an HTML element that defines a short quotation. +
Returns an HTML element that represents a short quotation. @@ -19197,182 +19274,182 @@
func type HTMLRp +
type HTMLRp ¶
-HTMLRp is the interface that describes a "rp" HTML element. +
The interface that represents a "rp" HTML element.
type HTMLRp interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLRp - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLRp - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLRp - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLRp - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLRp - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLRp - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLRp - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLRp - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLRp - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLRp - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLRp - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLRp - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLRp - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLRp - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLRp - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLRp - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLRp - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLRp + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLRp - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLRp - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLRp - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLRp - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLRp - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLRp - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLRp - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLRp - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLRp - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLRp - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLRp - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLRp - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLRp - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLRp - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLRp - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLRp - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLRp - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLRp - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLRp - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLRp - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLRp - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLRp - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLRp - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLRp - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLRp - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLRp - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLRp - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLRp - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLRp - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLRp - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLRp - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLRp - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLRp - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLRp - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLRp - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLRp - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLRp - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLRp - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLRp }@@ -19386,13 +19463,13 @@type func Rp +
func Rp ¶
func Rp() HTMLRp-Rp returns an HTML element that defines what to show in browsers that do not support ruby annotations. +
Returns an HTML element that indicates text for browsers not supporting ruby annotations. @@ -19402,182 +19479,182 @@
func type HTMLRt +
type HTMLRt ¶
-HTMLRt is the interface that describes a "rt" HTML element. +
The interface that represents a "rt" HTML element.
type HTMLRt interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLRt - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLRt - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLRt - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLRt - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLRt - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLRt - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLRt - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLRt - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLRt - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLRt - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLRt - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLRt - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLRt - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLRt - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLRt - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLRt - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLRt - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLRt + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLRt - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLRt - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLRt - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLRt - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLRt - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLRt - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLRt - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLRt - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLRt - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLRt - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLRt - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLRt - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLRt - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLRt - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLRt - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLRt - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLRt - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLRt - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLRt - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLRt - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLRt - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLRt - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLRt - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLRt - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLRt - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLRt - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLRt - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLRt - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLRt - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLRt - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLRt - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLRt - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLRt - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLRt - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLRt - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLRt - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLRt - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLRt - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLRt }@@ -19591,13 +19668,13 @@type func Rt +
func Rt ¶
func Rt() HTMLRt-Rt returns an HTML element that defines an explanation/pronunciation of characters (for East Asian typography). +
Returns an HTML element that provides explanation or pronunciation of characters (used in East Asian typography). @@ -19607,182 +19684,182 @@
func type HTMLRuby +
type HTMLRuby ¶
-HTMLRuby is the interface that describes a "ruby" HTML element. +
The interface that represents a "ruby" HTML element.
type HTMLRuby interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLRuby - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLRuby - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLRuby - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLRuby - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLRuby - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLRuby - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLRuby - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLRuby - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLRuby - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLRuby - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLRuby - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLRuby - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLRuby - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLRuby - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLRuby - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLRuby - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLRuby - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLRuby + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLRuby - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLRuby - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLRuby - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLRuby - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLRuby - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLRuby - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLRuby - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLRuby - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLRuby - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLRuby - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLRuby - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLRuby - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLRuby - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLRuby - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLRuby - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLRuby - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLRuby - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLRuby - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLRuby - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLRuby - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLRuby - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLRuby - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLRuby - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLRuby - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLRuby - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLRuby - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLRuby - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLRuby - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLRuby - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLRuby - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLRuby - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLRuby - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLRuby - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLRuby - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLRuby - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLRuby - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLRuby - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLRuby - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLRuby }@@ -19796,13 +19873,13 @@type func Ruby +
func Ruby ¶
func Ruby() HTMLRuby-Ruby returns an HTML element that defines a ruby annotation (for East Asian typography). +
Returns an HTML element that marks a ruby annotation (used for East Asian typography). @@ -19812,182 +19889,182 @@
func type HTMLS +
type HTMLS ¶
-HTMLS is the interface that describes a "s" HTML element. +
The interface that represents a "s" HTML element.
type HTMLS interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLS - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLS - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLS - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLS - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLS - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLS - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLS - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLS - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLS - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLS - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLS - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLS - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLS - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLS - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLS - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLS - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLS - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLS + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLS - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLS - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLS - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLS - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLS - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLS - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLS - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLS - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLS - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLS - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLS - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLS - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLS - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLS - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLS - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLS - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLS - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLS - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLS - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLS - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLS - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLS - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLS - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLS - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLS - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLS - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLS - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLS - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLS - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLS - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLS - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLS - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLS - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLS - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLS - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLS - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLS - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLS - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLS }@@ -20001,13 +20078,13 @@type func S +
func S ¶
func S() HTMLS-S returns an HTML element that Defines text that is no longer correct. +
Returns an HTML element that represents text which is no longer correct or relevant. @@ -20017,182 +20094,182 @@
func type HTMLSamp +
type HTMLSamp ¶
-HTMLSamp is the interface that describes a "samp" HTML element. +
The interface that represents a "samp" HTML element.
type HTMLSamp interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSamp - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSamp - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSamp - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSamp - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSamp - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSamp - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSamp - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSamp - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSamp - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSamp - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSamp - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSamp - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSamp - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSamp - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSamp - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSamp - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSamp - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSamp + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSamp - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSamp - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSamp - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSamp - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSamp - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSamp - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSamp - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSamp - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSamp - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSamp - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSamp - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSamp - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSamp - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSamp - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSamp - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSamp - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSamp - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSamp - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSamp - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSamp - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSamp - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSamp - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSamp - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSamp - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSamp - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSamp - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSamp - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSamp - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSamp - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSamp - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSamp - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSamp - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSamp - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSamp - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSamp - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSamp - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSamp - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSamp - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSamp }@@ -20206,13 +20283,13 @@type func Samp +
func Samp ¶
func Samp() HTMLSamp-Samp returns an HTML element that defines sample output from a computer program. +
Returns an HTML element that displays sample output from a computer program. @@ -20222,101 +20299,101 @@
func type HTMLScript +
type HTMLScript ¶
-HTMLScript is the interface that describes a "script" HTML element. +
The interface that represents a "script" HTML element.
type HTMLScript interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLScript - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLScript - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLScript - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLScript - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLScript - // Async specifies that the script is executed asynchronously (only for external scripts). + // Specifies that external scripts are executed asynchronously, preventing blocking of page rendering. Async(v bool) HTMLScript - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLScript - // Charset specifies the character encoding with the given format and values. + // Specifies the character encoding for the linked document or external resource. Charset(format string, v ...any) HTMLScript - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLScript - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLScript - // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values. + // Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins. CrossOrigin(format string, v ...any) HTMLScript - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLScript - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLScript - // Defer specifies that the script is executed when the page has finished parsing (only for external scripts). + // Delays the execution of a script until after the document is parsed, typically applied to external scripts. Defer(v bool) HTMLScript - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLScript - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLScript - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLScript - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLScript - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLScript - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLScript - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLScript - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLScript - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLScript + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLScript - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLScript - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLScript - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLScript - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLScript - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLScript - // OnLoad calls the given handler after the element is finished loading. + // Executes the specified handler once the element has completely loaded. OnLoad(h EventHandler, scope ...any) HTMLScript }@@ -20330,13 +20407,13 @@type func Script +
func Script ¶
func Script() HTMLScript-Script returns an HTML element that defines a client-side script. +
Returns an HTML element that embeds or references a client-side script. @@ -20346,182 +20423,182 @@
func type HTMLSection +
type HTMLSection ¶
-HTMLSection is the interface that describes a "section" HTML element. +
The interface that represents a "section" HTML element.
type HTMLSection interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSection - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSection - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSection - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSection - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSection - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSection - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSection - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSection - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSection - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSection - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSection - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSection - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSection - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSection - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSection - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSection - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSection - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSection + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSection - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSection - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSection - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSection - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSection - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSection - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSection - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSection - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSection - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSection - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSection - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSection - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSection - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSection - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSection - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSection - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSection - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSection - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSection - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSection - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSection - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSection - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSection - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSection - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSection - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSection - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSection - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSection - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSection - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSection - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSection - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSection - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSection - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSection - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSection - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSection - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSection - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSection - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSection }@@ -20535,13 +20612,13 @@type func Section +
func Section ¶
func Section() HTMLSection-Section returns an HTML element that defines a section in a document. +
Returns an HTML element that represents a standalone section in a document. @@ -20551,203 +20628,203 @@
func type HTMLSelect +
type HTMLSelect ¶
-HTMLSelect is the interface that describes a "select" HTML element. +
The interface that represents a "select" HTML element.
type HTMLSelect interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSelect - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSelect - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSelect - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSelect - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSelect - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSelect - // AutoFocus specifies that the element should automatically get focus when the page loads. + // Instructs the browser to focus this element automatically when the page loads. AutoFocus(v bool) HTMLSelect - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSelect - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSelect - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSelect - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSelect - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSelect - // Disabled specifies that the specified element/group of elements should be disabled. + // Deactivates an element, rendering it uninteractive and visually distinct. Disabled(v bool) HTMLSelect - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSelect - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLSelect - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSelect - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSelect - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSelect - // Multiple specifies that a user can enter more than one value. + // Allows users to input multiple values. Multiple(v bool) HTMLSelect - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLSelect - // Required specifies that the element must be filled out before submitting the form. + // Indicates that the element must contain a value before form submission. Required(v bool) HTMLSelect - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSelect - // Size specifies the width. + // Indicates the width of the element, usually in characters for input elements. Size(v int) HTMLSelect - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSelect - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSelect + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSelect - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSelect - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSelect - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSelect - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSelect - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSelect - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSelect - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSelect - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSelect - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSelect - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSelect - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSelect - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSelect - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSelect - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSelect - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSelect - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSelect - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSelect - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSelect - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSelect - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSelect - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSelect - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSelect - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSelect - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSelect - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSelect - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSelect - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSelect - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSelect - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSelect - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSelect - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSelect - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSelect - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSelect - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSelect - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSelect - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSelect - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSelect - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSelect }@@ -20761,13 +20838,13 @@type func Select +
func Select ¶
func Select() HTMLSelect-Select returns an HTML element that defines a drop-down list. +
Returns an HTML element that creates a drop-down list or list box for form input. @@ -20777,182 +20854,182 @@
func type HTMLSmall +
type HTMLSmall ¶
-HTMLSmall is the interface that describes a "small" HTML element. +
The interface that represents a "small" HTML element.
type HTMLSmall interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSmall - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSmall - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSmall - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSmall - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSmall - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSmall - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSmall - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSmall - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSmall - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSmall - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSmall - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSmall - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSmall - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSmall - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSmall - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSmall - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSmall - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSmall + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSmall - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSmall - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSmall - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSmall - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSmall - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSmall - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSmall - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSmall - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSmall - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSmall - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSmall - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSmall - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSmall - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSmall - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSmall - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSmall - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSmall - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSmall - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSmall - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSmall - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSmall - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSmall - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSmall - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSmall - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSmall - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSmall - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSmall - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSmall - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSmall - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSmall - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSmall - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSmall - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSmall - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSmall - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSmall - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSmall - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSmall - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSmall - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSmall }@@ -20966,13 +21043,13 @@type func Small +
func Small ¶
func Small() HTMLSmall-Small returns an HTML element that defines smaller text. +
Returns an HTML element that displays text in a smaller font, typically for side comments or legal disclaimers. @@ -20982,188 +21059,188 @@
func type HTMLSource +
type HTMLSource ¶
-HTMLSource is the interface that describes a "source" HTML element. +
The interface that represents a "source" HTML element.
type HTMLSource interface { - UI + HTML - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSource - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSource - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSource - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSource - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSource - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSource - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSource - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSource - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSource - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSource - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSource - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSource - // Media specifies what media/device the linked document is optimized for. Uses the given format and values. + // Indicates the intended media or device for the linked document. Media(format string, v ...any) HTMLSource - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSource - // Sizes specifies the size of the linked resource with the given format and values. + // Specifies sizes of icons and images for different page or screen scenarios. Uses the given format and values. Sizes(format string, v ...any) HTMLSource - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSource - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLSource - // SrcSet specifies the URL of the image to use in different situations with the given format and values. + // Provides URLs of images to display in varied resolutions or viewport conditions. Uses the given format and values. SrcSet(format string, v ...any) HTMLSource - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSource + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSource - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSource - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSource - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSource - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLSource - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSource - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSource - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSource - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSource - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSource - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSource - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSource - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSource - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSource - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSource - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSource - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSource - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSource - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSource - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSource - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSource - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSource - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSource - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSource - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSource - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSource - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSource - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSource - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSource - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSource - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSource - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSource - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSource - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSource - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSource - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSource - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSource - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSource - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSource - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSource }@@ -21177,13 +21254,13 @@type func Source +
func Source ¶
func Source() HTMLSource-Source returns an HTML element that . +
Returns an HTML element that specifies multiple media resources for elements like <picture>, <audio>, and <video>. @@ -21193,182 +21270,182 @@
func type HTMLSpan +
type HTMLSpan ¶
-HTMLSpan is the interface that describes a "span" HTML element. +
The interface that represents a "span" HTML element.
type HTMLSpan interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSpan - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSpan - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSpan - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSpan - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSpan - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSpan - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSpan - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSpan - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSpan - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSpan - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSpan - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSpan - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSpan - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSpan - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSpan - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSpan - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSpan - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSpan + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSpan - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSpan - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSpan - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSpan - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSpan - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSpan - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSpan - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSpan - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSpan - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSpan - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSpan - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSpan - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSpan - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSpan - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSpan - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSpan - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSpan - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSpan - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSpan - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSpan - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSpan - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSpan - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSpan - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSpan - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSpan - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSpan - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSpan - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSpan - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSpan - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSpan - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSpan - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSpan - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSpan - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSpan - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSpan - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSpan - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSpan - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSpan - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSpan }@@ -21382,13 +21459,13 @@type func Span +
func Span ¶
func Span() HTMLSpan-Span returns an HTML element that defines a section in a document. +
Returns an HTML element that provides a way to style a specific part of the text or to group inline-elements. @@ -21398,182 +21475,182 @@
func type HTMLStrong +
type HTMLStrong ¶
-HTMLStrong is the interface that describes a "strong" HTML element. +
The interface that represents a "strong" HTML element.
type HTMLStrong interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLStrong - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLStrong - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLStrong - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLStrong - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLStrong - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLStrong - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLStrong - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLStrong - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLStrong - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLStrong - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLStrong - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLStrong - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLStrong - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLStrong - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLStrong - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLStrong - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLStrong - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLStrong + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLStrong - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLStrong - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLStrong - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLStrong - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLStrong - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLStrong - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLStrong - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLStrong - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLStrong - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLStrong - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLStrong - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLStrong - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLStrong - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLStrong - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLStrong - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLStrong - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLStrong - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLStrong - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLStrong - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLStrong - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLStrong - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLStrong - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLStrong - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLStrong - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLStrong - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLStrong - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLStrong - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLStrong - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLStrong - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLStrong - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLStrong - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLStrong - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLStrong - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLStrong - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLStrong - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLStrong - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLStrong - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLStrong - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLStrong }@@ -21587,13 +21664,13 @@type func Strong +
func Strong ¶
func Strong() HTMLStrong-Strong returns an HTML element that defines important text. +
Returns an HTML element that emphasizes text as important, typically displayed as bold. @@ -21603,191 +21680,191 @@
func type HTMLStyle +
type HTMLStyle ¶
-HTMLStyle is the interface that describes a "style" HTML element. +
The interface that represents a "style" HTML element.
type HTMLStyle interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLStyle - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLStyle - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLStyle - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLStyle - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLStyle - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLStyle - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLStyle - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLStyle - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLStyle - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLStyle - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLStyle - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLStyle - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLStyle - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLStyle - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLStyle - // Media specifies what media/device the linked document is optimized for. Uses the given format and values. + // Indicates the intended media or device for the linked document. Media(format string, v ...any) HTMLStyle - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLStyle - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLStyle - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLStyle + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLStyle - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLStyle - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLStyle - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLStyle - // Type specifies the type of element with the given format and values. + // Designates the type of the element or its content. Can be called with specific format and values. Type(format string, v ...any) HTMLStyle - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLStyle - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLStyle - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLStyle - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLStyle - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLStyle - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLStyle - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLStyle - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLStyle - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLStyle - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLStyle - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLStyle - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLStyle - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLStyle - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLStyle - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLStyle - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLStyle - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLStyle - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLStyle - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLStyle - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLStyle - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLStyle - // OnLoad calls the given handler after the element is finished loading. + // Executes the specified handler once the element has completely loaded. OnLoad(h EventHandler, scope ...any) HTMLStyle - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLStyle - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLStyle - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLStyle - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLStyle - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLStyle - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLStyle - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLStyle - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLStyle - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLStyle - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLStyle - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLStyle - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLStyle - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLStyle - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLStyle }@@ -21801,13 +21878,13 @@type func Style +
func Style ¶
func Style() HTMLStyle-Style returns an HTML element that defines style information for a document. +
Returns an HTML element that contains style information or references for a document. @@ -21817,182 +21894,182 @@
func type HTMLSub +
type HTMLSub ¶
-HTMLSub is the interface that describes a "sub" HTML element. +
The interface that represents a "sub" HTML element.
type HTMLSub interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSub - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSub - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSub - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSub - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSub - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSub - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSub - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSub - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSub - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSub - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSub - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSub - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSub - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSub - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSub - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSub - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSub - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSub + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSub - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSub - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSub - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSub - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSub - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSub - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSub - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSub - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSub - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSub - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSub - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSub - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSub - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSub - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSub - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSub - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSub - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSub - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSub - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSub - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSub - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSub - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSub - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSub - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSub - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSub - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSub - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSub - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSub - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSub - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSub - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSub - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSub - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSub - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSub - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSub - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSub - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSub - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSub }@@ -22006,13 +22083,13 @@type func Sub +
func Sub ¶
func Sub() HTMLSub-Sub returns an HTML element that defines subscripted text. +
Returns an HTML element that represents subscripted text, typically displayed lower and smaller than the main text. @@ -22022,182 +22099,182 @@
func type HTMLSummary +
type HTMLSummary ¶
-HTMLSummary is the interface that describes a "summary" HTML element. +
The interface that represents a "summary" HTML element.
type HTMLSummary interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSummary - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSummary - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSummary - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSummary - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSummary - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSummary - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSummary - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSummary - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSummary - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSummary - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSummary - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSummary - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSummary - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSummary - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSummary - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSummary - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSummary - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSummary + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSummary - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSummary - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSummary - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSummary - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSummary - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSummary - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSummary - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSummary - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSummary - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSummary - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSummary - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSummary - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSummary - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSummary - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSummary - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSummary - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSummary - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSummary - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSummary - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSummary - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSummary - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSummary - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSummary - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSummary - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSummary - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSummary - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSummary - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSummary - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSummary - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSummary - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSummary - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSummary - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSummary - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSummary - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSummary - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSummary - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSummary - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSummary - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSummary }@@ -22211,13 +22288,13 @@type func Summary +
func Summary ¶
func Summary() HTMLSummary-Summary returns an HTML element that defines a visible heading for a details element. +
Returns an HTML element that provides a visible heading or label for a <details> element's content. @@ -22227,182 +22304,182 @@
func type HTMLSup +
type HTMLSup ¶
-HTMLSup is the interface that describes a "sup" HTML element. +
The interface that represents a "sup" HTML element.
type HTMLSup interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLSup - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLSup - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLSup - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLSup - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLSup - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLSup - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLSup - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLSup - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLSup - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLSup - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLSup - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLSup - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLSup - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLSup - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLSup - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLSup - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLSup - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLSup + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLSup - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLSup - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLSup - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLSup - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLSup - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLSup - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLSup - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLSup - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLSup - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLSup - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLSup - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLSup - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLSup - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLSup - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLSup - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLSup - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLSup - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLSup - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLSup - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLSup - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLSup - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLSup - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLSup - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLSup - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLSup - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLSup - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLSup - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLSup - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLSup - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLSup - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLSup - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLSup - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLSup - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLSup - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLSup - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLSup - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLSup - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLSup - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLSup }@@ -22416,13 +22493,13 @@type func Sup +
func Sup ¶
func Sup() HTMLSup-Sup returns an HTML element that defines superscripted text. +
Returns an HTML element that represents superscripted text, typically displayed higher and smaller than the main text. @@ -22432,182 +22509,182 @@
func type HTMLTBody +
type HTMLTBody ¶
-HTMLTBody is the interface that describes a "tbody" HTML element. +
The interface that represents a "tbody" HTML element.
type HTMLTBody interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTBody - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTBody - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTBody - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTBody - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTBody - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTBody - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTBody - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTBody - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTBody - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTBody - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTBody - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTBody - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTBody - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTBody - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTBody - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTBody - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTBody - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTBody + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTBody - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTBody - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTBody - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTBody - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTBody - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTBody - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTBody - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTBody - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTBody - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTBody - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTBody - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTBody - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTBody - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTBody - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTBody - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTBody - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTBody - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTBody - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTBody - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTBody - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTBody - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTBody - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTBody - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTBody - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTBody - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTBody - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTBody - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTBody - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTBody - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTBody - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTBody - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTBody - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTBody - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTBody - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTBody - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTBody - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTBody - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTBody - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTBody }@@ -22621,13 +22698,13 @@type func TBody +
func TBody ¶
func TBody() HTMLTBody-TBody returns an HTML element that groups the body content in a table. +
Returns an HTML element that groups the main content rows in a table. @@ -22637,182 +22714,182 @@
func type HTMLTFoot +
type HTMLTFoot ¶
-HTMLTFoot is the interface that describes a "tfoot" HTML element. +
The interface that represents a "tfoot" HTML element.
type HTMLTFoot interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTFoot - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTFoot - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTFoot - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTFoot - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTFoot - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTFoot - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTFoot - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTFoot - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTFoot - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTFoot - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTFoot - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTFoot - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTFoot - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTFoot - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTFoot - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTFoot - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTFoot - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTFoot + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTFoot - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTFoot - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTFoot - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTFoot - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTFoot - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTFoot - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTFoot - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTFoot - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTFoot - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTFoot - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTFoot - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTFoot - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTFoot - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTFoot - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTFoot - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTFoot - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTFoot - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTFoot - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTFoot - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTFoot - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTFoot - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTFoot - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTFoot - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTFoot - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTFoot - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTFoot - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTFoot - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTFoot - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTFoot - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTFoot - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTFoot - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTFoot - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTFoot - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTFoot - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTFoot - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTFoot - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTFoot - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTFoot - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTFoot }@@ -22826,13 +22903,13 @@type func TFoot +
func TFoot ¶
func TFoot() HTMLTFoot-TFoot returns an HTML element that groups the footer content in a table. +
Returns an HTML element that groups the footer rows in a table. @@ -22842,182 +22919,182 @@
func type HTMLTHead +
type HTMLTHead ¶
-HTMLTHead is the interface that describes a "thead" HTML element. +
The interface that represents a "thead" HTML element.
type HTMLTHead interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTHead - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTHead - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTHead - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTHead - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTHead - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTHead - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTHead - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTHead - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTHead - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTHead - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTHead - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTHead - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTHead - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTHead - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTHead - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTHead - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTHead - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTHead + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTHead - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTHead - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTHead - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTHead - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTHead - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTHead - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTHead - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTHead - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTHead - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTHead - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTHead - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTHead - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTHead - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTHead - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTHead - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTHead - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTHead - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTHead - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTHead - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTHead - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTHead - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTHead - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTHead - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTHead - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTHead - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTHead - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTHead - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTHead - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTHead - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTHead - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTHead - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTHead - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTHead - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTHead - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTHead - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTHead - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTHead - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTHead - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTHead }@@ -23031,13 +23108,13 @@type func THead +
func THead ¶
func THead() HTMLTHead-THead returns an HTML element that groups the header content in a table +
Returns an HTML element that groups the header rows in a table. @@ -23047,182 +23124,182 @@
func type HTMLTable +
type HTMLTable ¶
-HTMLTable is the interface that describes a "table" HTML element. +
The interface that represents a "table" HTML element.
type HTMLTable interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTable - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTable - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTable - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTable - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTable - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTable - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTable - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTable - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTable - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTable - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTable - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTable - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTable - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTable - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTable - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTable - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTable - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTable + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTable - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTable - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTable - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTable - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTable - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTable - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTable - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTable - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTable - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTable - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTable - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTable - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTable - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTable - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTable - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTable - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTable - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTable - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTable - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTable - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTable - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTable - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTable - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTable - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTable - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTable - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTable - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTable - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTable - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTable - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTable - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTable - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTable - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTable - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTable - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTable - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTable - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTable - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTable }@@ -23236,13 +23313,13 @@type func Table +
func Table ¶
func Table() HTMLTable-Table returns an HTML element that defines a table. +
Returns an HTML element that represents a table structure. @@ -23252,191 +23329,191 @@
func type HTMLTd +
type HTMLTd ¶
-HTMLTd is the interface that describes a "td" HTML element. +
The interface that represents a "td" HTML element.
type HTMLTd interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTd - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTd - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTd - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTd - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTd - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTd - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTd - // ColSpan specifies the number of columns a table cell should span. + // Denotes how many columns a table cell should span across, allowing cells to occupy space of multiple columns. ColSpan(v int) HTMLTd - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTd - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTd - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTd - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTd - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTd - // Headers specifies one or more headers cells a cell is related to. Uses the given format and values. + // Designates one or more header cells to which a table cell is related. Headers(format string, v ...any) HTMLTd - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTd - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTd - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTd - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTd - // Rowspan specifies the number of rows a table cell should span. + // Determines how many rows a table cell will span vertically. Rowspan(v int) HTMLTd - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTd - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTd + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTd - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTd - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTd - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTd - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTd - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTd - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTd - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTd - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTd - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTd - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTd - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTd - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTd - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTd - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTd - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTd - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTd - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTd - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTd - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTd - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTd - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTd - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTd - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTd - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTd - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTd - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTd - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTd - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTd - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTd - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTd - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTd - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTd - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTd - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTd - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTd - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTd - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTd - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTd }@@ -23450,13 +23527,13 @@type func Td +
func Td ¶
func Td() HTMLTd-Td returns an HTML element that defines a cell in a table. +
Returns an HTML element that represents a data cell in a table. @@ -23466,80 +23543,80 @@
func type HTMLTemplate +
type HTMLTemplate ¶
-HTMLTemplate is the interface that describes a "template" HTML element. +
The interface that represents a "template" HTML element.
type HTMLTemplate interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTemplate - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTemplate - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTemplate - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTemplate - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTemplate - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTemplate - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTemplate - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTemplate - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTemplate - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTemplate - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTemplate - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTemplate - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTemplate - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTemplate - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTemplate - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTemplate - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTemplate - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTemplate + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTemplate - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTemplate - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTemplate - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTemplate - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTemplate }@@ -23553,13 +23630,13 @@type func Template +
func Template ¶
func Template() HTMLTemplate-Template returns an HTML element that defines a template. +
Returns an HTML element that holds client-side content templates for dynamic rendering. @@ -23569,218 +23646,218 @@
func type HTMLTextarea +
type HTMLTextarea ¶
-HTMLTextarea is the interface that describes a "textarea" HTML element. +
The interface that represents a "textarea" HTML element.
type HTMLTextarea interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTextarea - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTextarea - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTextarea - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTextarea - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTextarea - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTextarea - // AutoFocus specifies that the element should automatically get focus when the page loads. + // Instructs the browser to focus this element automatically when the page loads. AutoFocus(v bool) HTMLTextarea - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTextarea - // Cols specifies the visible width of a text area. + // Defines the visible width, in character widths, of a text area element. Cols(v int) HTMLTextarea - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTextarea - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTextarea - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTextarea - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTextarea - // DirName specifies that the text direction will be submitted using the given format and values. + // Instructs the browser to also submit the text direction of a form field when the form is submitted. DirName(format string, v ...any) HTMLTextarea - // Disabled specifies that the specified element/group of elements should be disabled. + // Deactivates an element, rendering it uninteractive and visually distinct. Disabled(v bool) HTMLTextarea - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTextarea - // Form specifies the name of the form the element belongs to. Uses the given format and values. + // Identifies the form to which the element belongs. Form(format string, v ...any) HTMLTextarea - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTextarea - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTextarea - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTextarea - // MaxLength specifies the maximum number of characters allowed in an element. + // Defines the maximum number of characters permissible in an element. MaxLength(v int) HTMLTextarea - // Name specifies the name of the element with the given format and values. + // Assigns a name to the element. Name(format string, v ...any) HTMLTextarea - // Placeholder specifies a short hint that describes the expected value of the element. Uses the given format and values. + // Provides a brief hint describing the expected value of the element. Placeholder(format string, v ...any) HTMLTextarea - // ReadOnly specifies that the element is read-only. + // Indicates that the element's value cannot be edited by the user. ReadOnly(v bool) HTMLTextarea - // Required specifies that the element must be filled out before submitting the form. + // Indicates that the element must contain a value before form submission. Required(v bool) HTMLTextarea - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTextarea - // Rows specifies the visible number of lines in a text area. + // Sets the number of visible lines in a textarea element. Rows(v int) HTMLTextarea - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTextarea - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTextarea + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTextarea - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTextarea - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTextarea - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTextarea - // Wrap specifies how the text in a text area is to be wrapped when submitted in a form. Uses the given format and values. + // Determines how the text inside a text area is wrapped when submitted in a form. Can be called with specific format and values. Wrap(format string, v ...any) HTMLTextarea - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTextarea - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTextarea - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTextarea - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTextarea - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTextarea - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTextarea - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTextarea - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTextarea - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTextarea - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTextarea - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTextarea - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTextarea - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTextarea - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTextarea - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTextarea - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTextarea - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTextarea - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTextarea - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTextarea - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTextarea - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTextarea - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTextarea - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTextarea - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTextarea - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTextarea - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTextarea - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTextarea - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTextarea - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTextarea - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTextarea - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTextarea - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTextarea - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTextarea - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTextarea - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTextarea }@@ -23794,13 +23871,13 @@type func Textarea +
func Textarea ¶
func Textarea() HTMLTextarea-Textarea returns an HTML element that defines a multiline input control (text area). +
Returns an HTML element that provides a multiline text input control. @@ -23810,197 +23887,197 @@
func type HTMLTh +
type HTMLTh ¶
-HTMLTh is the interface that describes a "th" HTML element. +
The interface that represents a "th" HTML element.
type HTMLTh interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTh - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTh - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTh - // Abbr specifies an abbreviated version of the content in a header cell with the given format and values. + // Denotes abbreviated content for header cells to provide clarity on shortened terms. Abbr(format string, v ...any) HTMLTh - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTh - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTh - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTh - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTh - // ColSpan specifies the number of columns a table cell should span. + // Denotes how many columns a table cell should span across, allowing cells to occupy space of multiple columns. ColSpan(v int) HTMLTh - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTh - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTh - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTh - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTh - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTh - // Headers specifies one or more headers cells a cell is related to. Uses the given format and values. + // Designates one or more header cells to which a table cell is related. Headers(format string, v ...any) HTMLTh - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTh - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTh - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTh - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTh - // Rowspan specifies the number of rows a table cell should span. + // Determines how many rows a table cell will span vertically. Rowspan(v int) HTMLTh - // Scope specifies whether a header cell is a header for a column, row, or group of columns or rows. Uses the given format and values. + // Defines the set of cells a header cell provides header information for. Uses the given format and values. Scope(format string, v ...any) HTMLTh - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTh - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTh + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTh - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTh - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTh - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTh - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTh - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTh - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTh - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTh - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTh - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTh - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTh - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTh - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTh - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTh - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTh - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTh - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTh - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTh - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTh - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTh - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTh - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTh - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTh - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTh - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTh - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTh - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTh - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTh - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTh - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTh - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTh - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTh - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTh - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTh - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTh - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTh - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTh - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTh - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTh }@@ -24014,13 +24091,13 @@type func Th +
func Th ¶
func Th() HTMLTh-Th returns an HTML element that defines a header cell in a table. +
Returns an HTML element that represents a header cell in a table. @@ -24030,185 +24107,185 @@
func type HTMLTime +
type HTMLTime ¶
-HTMLTime is the interface that describes a "time" HTML element. +
The interface that represents a "time" HTML element.
type HTMLTime interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTime - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTime - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTime - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTime - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTime - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTime - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTime - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTime - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTime - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTime - // DateTime specifies the date and time with the given format and values. + // Represents the date and time, often used in context with machine-readable equivalents of time-related content. DateTime(format string, v ...any) HTMLTime - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTime - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTime - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTime - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTime - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTime - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTime - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTime - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTime + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTime - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTime - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTime - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTime - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTime - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTime - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTime - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTime - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTime - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTime - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTime - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTime - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTime - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTime - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTime - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTime - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTime - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTime - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTime - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTime - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTime - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTime - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTime - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTime - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTime - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTime - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTime - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTime - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTime - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTime - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTime - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTime - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTime - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTime - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTime - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTime - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTime - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTime - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTime }@@ -24222,13 +24299,13 @@type func Time +
func Time ¶
func Time() HTMLTime-Time returns an HTML element that defines a date/time. +
Returns an HTML element that represents a specific period or a single point in time. @@ -24238,80 +24315,80 @@
func type HTMLTitle +
type HTMLTitle ¶
-HTMLTitle is the interface that describes a "title" HTML element. +
The interface that represents a "title" HTML element.
type HTMLTitle interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTitle - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTitle - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTitle - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTitle - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTitle - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTitle - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTitle - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTitle - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTitle - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTitle - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTitle - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTitle - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTitle - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTitle - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTitle - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTitle - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTitle - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTitle + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTitle - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTitle - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTitle - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTitle - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTitle }@@ -24325,13 +24402,13 @@type func Title +
func Title ¶
func Title() HTMLTitle-Title returns an HTML element that defines a title for the document. +
Returns an HTML element that specifies the title of the document, shown in the browser's title bar or tab. @@ -24341,182 +24418,182 @@
func type HTMLTr +
type HTMLTr ¶
-HTMLTr is the interface that describes a "tr" HTML element. +
The interface that represents a "tr" HTML element.
type HTMLTr interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLTr - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLTr - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLTr - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLTr - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLTr - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLTr - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLTr - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLTr - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLTr - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLTr - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLTr - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLTr - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLTr - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLTr - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLTr - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLTr - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLTr - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLTr + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLTr - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLTr - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLTr - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLTr - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLTr - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLTr - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLTr - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLTr - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLTr - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLTr - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLTr - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLTr - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLTr - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLTr - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLTr - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLTr - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLTr - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLTr - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLTr - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLTr - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLTr - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLTr - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLTr - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLTr - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLTr - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLTr - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLTr - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLTr - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLTr - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLTr - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLTr - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLTr - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLTr - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLTr - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLTr - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLTr - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLTr - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLTr - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLTr }@@ -24530,13 +24607,13 @@type func Tr +
func Tr ¶
func Tr() HTMLTr-Tr returns an HTML element that defines a row in a table. +
Returns an HTML element that represents a row of cells in a table. @@ -24546,182 +24623,182 @@
func type HTMLU +
type HTMLU ¶
-HTMLU is the interface that describes a "u" HTML element. +
The interface that represents a "u" HTML element.
type HTMLU interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLU - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLU - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLU - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLU - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLU - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLU - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLU - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLU - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLU - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLU - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLU - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLU - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLU - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLU - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLU - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLU - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLU - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLU + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLU - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLU - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLU - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLU - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLU - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLU - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLU - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLU - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLU - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLU - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLU - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLU - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLU - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLU - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLU - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLU - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLU - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLU - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLU - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLU - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLU - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLU - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLU - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLU - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLU - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLU - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLU - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLU - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLU - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLU - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLU - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLU - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLU - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLU - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLU - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLU - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLU - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLU - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLU }@@ -24735,13 +24812,13 @@type func U +
func U ¶
func U() HTMLU-U returns an HTML element that defines text that should be stylistically different from normal text. +
Returns an HTML element that renders text with an underline, typically indicating misspelled text or proper names in Chinese text. @@ -24751,182 +24828,182 @@
func type HTMLUl +
type HTMLUl ¶
-HTMLUl is the interface that describes a "ul" HTML element. +
The interface that represents a "ul" HTML element.
type HTMLUl interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLUl - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLUl - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLUl - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLUl - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLUl - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLUl - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLUl - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLUl - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLUl - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLUl - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLUl - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLUl - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLUl - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLUl - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLUl - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLUl - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLUl - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLUl + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLUl - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLUl - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLUl - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLUl - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLUl - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLUl - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLUl - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLUl - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLUl - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLUl - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLUl - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLUl - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLUl - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLUl - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLUl - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLUl - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLUl - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLUl - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLUl - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLUl - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLUl - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLUl - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLUl - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLUl - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLUl - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLUl - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLUl - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLUl - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLUl - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLUl - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLUl - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLUl - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLUl - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLUl - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLUl - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLUl - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLUl - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLUl - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLUl }@@ -24940,13 +25017,13 @@type func Ul +
func Ul ¶
func Ul() HTMLUl-Ul returns an HTML element that defines an unordered list. +
Returns an HTML element that represents an unordered list of items. @@ -24956,182 +25033,182 @@
func type HTMLVar +
type HTMLVar ¶
-HTMLVar is the interface that describes a "var" HTML element. +
The interface that represents a "var" HTML element.
type HTMLVar interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLVar - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLVar - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLVar - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLVar - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLVar - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLVar - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLVar - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLVar - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLVar - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLVar - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLVar - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLVar - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLVar - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLVar - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLVar - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLVar - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLVar - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLVar + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLVar - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLVar - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLVar - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLVar - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLVar - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLVar - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLVar - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLVar - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLVar - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLVar - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLVar - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLVar - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLVar - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLVar - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLVar - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLVar - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLVar - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLVar - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLVar - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLVar - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLVar - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLVar - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLVar - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLVar - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLVar - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLVar - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLVar - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLVar - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLVar - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLVar - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLVar - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLVar - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLVar - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLVar - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLVar - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLVar - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLVar - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLVar - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLVar }@@ -25145,13 +25222,13 @@type func Var +
func Var ¶
func Var() HTMLVar-Var returns an HTML element that defines a variable. +
Returns an HTML element that displays a name of a variable, typically shown in an italic typeface. @@ -25161,281 +25238,281 @@
func type HTMLVideo +
type HTMLVideo ¶
-HTMLVideo is the interface that describes a "video" HTML element. +
The interface that represents a "video" HTML element.
type HTMLVideo interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLVideo - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLVideo - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLVideo - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLVideo - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLVideo - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLVideo - // AutoPlay specifies that the audio/video will start playing as soon as it is ready. + // Automatically plays audio or video elements once they're ready, enhancing media responsiveness. AutoPlay(v bool) HTMLVideo - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLVideo - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLVideo - // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc). + // Indicates the presence of user interface controls for audio or video elements, such as play or pause buttons. Controls(v bool) HTMLVideo - // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values. + // Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins. CrossOrigin(format string, v ...any) HTMLVideo - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLVideo - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLVideo - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLVideo - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLVideo - // Height specifies the height of the element (in pixels). + // Sets the height of the element, measured in pixels. Height(v int) HTMLVideo - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLVideo - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLVideo - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLVideo - // Loop specifies that the audio/video will start over again, every time it is finished. + // Indicates that the audio or video should replay from the beginning upon reaching its end. Loop(v bool) HTMLVideo - // Muted specifies that the audio output of the video should be muted. + // Ensures that the video's audio playback is muted. Muted(v bool) HTMLVideo - // Poster specifies an image to be shown while the video is downloading, or until the user hits the play button. Uses the given format and values. + // Sets an image displayed before a video starts playing or while it's loading. Poster(format string, v ...any) HTMLVideo - // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads. Uses the given format and values. + // Indicates the preferred loading method for audio/video upon page load. Preload(format string, v ...any) HTMLVideo - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLVideo - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLVideo - // Src specifies the URL of the media file with the given format and values. + // Provides the URL source of embedded content or media. Uses the given format and values. Src(format string, v ...any) HTMLVideo - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLVideo + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLVideo - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLVideo - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLVideo - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLVideo - // Width specifies the width of the element. + // Sets the width of the element. Width(v int) HTMLVideo - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLVideo - // OnAbort calls the given handler on abort. + // Triggers the handler when media loading is aborted. OnAbort(h EventHandler, scope ...any) HTMLVideo - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLVideo - // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin). + // Executes the handler when media has buffered sufficiently to begin playback. OnCanPlay(h EventHandler, scope ...any) HTMLVideo - // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. + // Invokes the handler when media can be played through without buffering interruptions. OnCanPlayThrough(h EventHandler, scope ...any) HTMLVideo - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLVideo - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLVideo - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLVideo - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLVideo - // OnCueChange calls the given handler when the cue changes in a track element. + // Triggers the handler upon cue changes within a track element. OnCueChange(h EventHandler, scope ...any) HTMLVideo - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLVideo - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLVideo - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLVideo - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLVideo - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLVideo - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLVideo - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLVideo - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLVideo - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLVideo - // OnDurationChange calls the given handler when the length of the media changes. + // Executes the handler when the media's duration changes. OnDurationChange(h EventHandler, scope ...any) HTMLVideo - // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). + // Invokes the handler when media unexpectedly becomes unavailable. OnEmptied(h EventHandler, scope ...any) HTMLVideo - // OnEnded calls the given handler when the media has reach the end. + // Triggers the handler when media playback reaches the end. OnEnded(h EventHandler, scope ...any) HTMLVideo - // OnError calls the given handler when an error occurs. + // Invokes the given handler when an error is encountered. OnError(h EventHandler, scope ...any) HTMLVideo - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLVideo - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLVideo - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLVideo - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLVideo - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLVideo - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLVideo - // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. + // Triggers the handler when media loading commences. OnLoadStart(h EventHandler, scope ...any) HTMLVideo - // OnLoadedData calls the given handler when media data is loaded. + // Executes the handler as media data finishes loading. OnLoadedData(h EventHandler, scope ...any) HTMLVideo - // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. + // Invokes the handler when metadata (like duration and dimensions) are fully loaded. OnLoadedMetaData(h EventHandler, scope ...any) HTMLVideo - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLVideo - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLVideo - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLVideo - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLVideo - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLVideo - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLVideo - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLVideo - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLVideo - // OnPause calls the given handler when the media is paused either by the user or programmatically. + // Executes the handler when media playback is paused. OnPause(h EventHandler, scope ...any) HTMLVideo - // OnPlay calls the given handler when the media is ready to start playing. + // Invokes the handler when media starts its playback. OnPlay(h EventHandler, scope ...any) HTMLVideo - // OnPlaying calls the given handler when the media actually has started playing. + // Triggers the handler once the media has initiated playback. OnPlaying(h EventHandler, scope ...any) HTMLVideo - // OnProgress calls the given handler when the browser is in the process of getting the media data. + // Executes the handler while the browser fetches media data. OnProgress(h EventHandler, scope ...any) HTMLVideo - // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). + // Invokes the handler when playback rate changes (e.g., slow motion or fast forward). OnRateChange(h EventHandler, scope ...any) HTMLVideo - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLVideo - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLVideo - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLVideo - // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. + // Triggers the handler post seeking completion. OnSeeked(h EventHandler, scope ...any) HTMLVideo - // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. + // Executes the handler during the seeking process. OnSeeking(h EventHandler, scope ...any) HTMLVideo - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLVideo - // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. + // Invokes the handler when media data fetching stalls. OnStalled(h EventHandler, scope ...any) HTMLVideo - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLVideo - // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. + // Triggers the handler when media data fetching is suspended. OnSuspend(h EventHandler, scope ...any) HTMLVideo - // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). + // Executes the handler when the media's playback position changes. OnTimeUpdate(h EventHandler, scope ...any) HTMLVideo - // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). + // Invokes the handler upon volume changes or muting. OnVolumeChange(h EventHandler, scope ...any) HTMLVideo - // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). + // Triggers the handler when media pauses, awaiting further buffering. OnWaiting(h EventHandler, scope ...any) HTMLVideo - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLVideo }@@ -25449,13 +25526,13 @@type func Video +
func Video ¶
func Video() HTMLVideo-Video returns an HTML element that defines a video or movie. +
Returns an HTML element that embeds video content, allowing for playback of video files or streams. @@ -25465,182 +25542,182 @@
func type HTMLWbr +
type HTMLWbr ¶
-HTMLWbr is the interface that describes a "wbr" HTML element. +
The interface that represents a "wbr" HTML element.
type HTMLWbr interface { - UI + HTML - // Body set the content of the element. + // Sets the content of the element. Body(elems ...UI) HTMLWbr - // Text sets the content of the element with a text node containing the stringified given value. + // Sets the content of the element with a text node containing the stringified given value. Text(v any) HTMLWbr - // Textf sets the content of the element with the given format and values. + // Sets the content of the element with a text node formatted according to a format specifier. Textf(format string, v ...any) HTMLWbr - // AccessKey specifies a shortcut key with the given format and values to activate/focus an element. + // Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience. AccessKey(format string, v ...any) HTMLWbr - // Aria stores accessible rich internet applications (ARIA) data. + // Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties. Aria(k string, v any) HTMLWbr - // Attr sets the named attribute with the given value. + // Sets an attribute with its associated value, allowing for flexible HTML customization. Attr(n string, v any) HTMLWbr - // Class specifies one or more classnames for an element (refers to a class in a style sheet). + // Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames. Class(v ...string) HTMLWbr - // ContentEditable specifies whether the content of an element is editable or not. + // Determines if the content of an element is editable by the user, allowing for in-page content modification. ContentEditable(v bool) HTMLWbr - // DataSet stores custom data private to the page or application. + // Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes. DataSet(k string, v any) HTMLWbr - // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set. + // Denotes datasets linked to an element and can store multiple sets of data. DataSets(ds map[string]any) HTMLWbr - // Dir specifies the text direction for the content in an element with the given format and values. + // Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left). Dir(format string, v ...any) HTMLWbr - // Draggable specifies whether an element is draggable or not. + // Specifies if an element can be dragged by the user, supporting drag-and-drop operations. Draggable(v bool) HTMLWbr - // Hidden specifies that an element is not yet, or is no longer relevant. + // Marks an element as currently irrelevant or not yet relevant. Hidden(v bool) HTMLWbr - // ID specifies a unique id for an element with the given format and values. + // Assigns a unique identifier to an element. ID(format string, v ...any) HTMLWbr - // Lang specifies the language of the element's content with the given format and values. + // Declares the language of the element's content. Lang(format string, v ...any) HTMLWbr - // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values. + // Communicates the intended function or meaning of an element to assistive technologies. Role(format string, v ...any) HTMLWbr - // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. + // Indicates whether the element's content is subject to spell and grammar checks. Spellcheck(v bool) HTMLWbr - // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. - Style(k, v string) HTMLWbr + // Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles. + Style(k, format string, v ...any) HTMLWbr - // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles. + // Allocates multiple CSS styles to an element. Accepts multiple styling definitions. Styles(s map[string]string) HTMLWbr - // TabIndex specifies the tabbing order of an element. + // Determines the tabbing sequence of an element within the document navigation. TabIndex(v int) HTMLWbr - // Title specifies extra information about an element with the given format and values. + // Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content. Title(format string, v ...any) HTMLWbr - // On registers the given event handler to the specified event. + // Invokes the specified handler when the corresponding event is triggered. On(event string, h EventHandler, scope ...any) HTMLWbr - // OnBlur calls the given handler when the element loses focus. + // Executes the given handler when the element loses focus. OnBlur(h EventHandler, scope ...any) HTMLWbr - // OnChange calls the given handler when the value of the element is changed. + // Triggers the specified handler when the element's value changes. OnChange(h EventHandler, scope ...any) HTMLWbr - // OnClick calls the given handler when there is a mouse click on the element. + // Triggers the specified handler upon a mouse click on the element. OnClick(h EventHandler, scope ...any) HTMLWbr - // OnContextMenu calls the given handler when a context menu is triggered. + // Invokes the provided handler upon activation of a context menu. OnContextMenu(h EventHandler, scope ...any) HTMLWbr - // OnCopy calls the given handler when the user copies the content of an element. + // Triggers the handler when content of an element is copied by the user. OnCopy(h EventHandler, scope ...any) HTMLWbr - // OnCut calls the given handler when the user cuts the content of an element. + // Executes the handler when the user cuts content from an element. OnCut(h EventHandler, scope ...any) HTMLWbr - // OnDblClick calls the given handler when there is a mouse double-click on the element. + // Executes the provided handler when the element is double-clicked by the mouse. OnDblClick(h EventHandler, scope ...any) HTMLWbr - // OnDrag calls the given handler when an element is dragged. + // Executes the handler as an element is being dragged. OnDrag(h EventHandler, scope ...any) HTMLWbr - // OnDragEnd calls the given handler at the end of a drag operation. + // Invokes the handler at the conclusion of a drag operation. OnDragEnd(h EventHandler, scope ...any) HTMLWbr - // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. + // Triggers the handler when an element is dragged onto a valid drop target. OnDragEnter(h EventHandler, scope ...any) HTMLWbr - // OnDragLeave calls the given handler when an element leaves a valid drop target. + // Invokes the handler when an element exits a valid drop target. OnDragLeave(h EventHandler, scope ...any) HTMLWbr - // OnDragOver calls the given handler when an element is being dragged over a valid drop target. + // Executes the handler as an element is dragged over a valid drop target. OnDragOver(h EventHandler, scope ...any) HTMLWbr - // OnDragStart calls the given handler at the start of a drag operation. + // Triggers the handler at the initiation of a drag operation. OnDragStart(h EventHandler, scope ...any) HTMLWbr - // OnDrop calls the given handler when dragged element is being dropped. + // Invokes the handler when a dragged element is released onto a drop target. OnDrop(h EventHandler, scope ...any) HTMLWbr - // OnFocus calls the given handler when the element gets focus. + // Executes the given handler when the element receives focus. OnFocus(h EventHandler, scope ...any) HTMLWbr - // OnInput calls the given handler when an element gets user input. + // Triggers the specified handler when the element receives user input. OnInput(h EventHandler, scope ...any) HTMLWbr - // OnInvalid calls the given handler when an element is invalid. + // Invokes the provided handler when the element is determined to be invalid. OnInvalid(h EventHandler, scope ...any) HTMLWbr - // OnKeyDown calls the given handler when a user is pressing a key. + // Executes the specified handler when a user starts pressing a key. OnKeyDown(h EventHandler, scope ...any) HTMLWbr - // OnKeyPress calls the given handler when a user presses a key. + // Triggers the provided handler as a key is pressed by the user. OnKeyPress(h EventHandler, scope ...any) HTMLWbr - // OnKeyUp calls the given handler when a user releases a key. + // Invokes the given handler when a user releases a key. OnKeyUp(h EventHandler, scope ...any) HTMLWbr - // OnMouseDown calls the given handler when a mouse button is pressed down on an element. + // Invokes the given handler as a mouse button is pressed on the element. OnMouseDown(h EventHandler, scope ...any) HTMLWbr - // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired. + // Triggers the specified handler when the mouse pointer first enters the element's boundaries. OnMouseEnter(h EventHandler, scope ...any) HTMLWbr - // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants. + // Executes the provided handler when the mouse pointer leaves the element and its descendants. OnMouseLeave(h EventHandler, scope ...any) HTMLWbr - // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. + // Invokes the given handler as the mouse pointer moves across the element. OnMouseMove(h EventHandler, scope ...any) HTMLWbr - // OnMouseOut calls the given handler when the mouse pointer moves out of an element. + // Triggers the specified handler when the mouse pointer exits the element. OnMouseOut(h EventHandler, scope ...any) HTMLWbr - // OnMouseOver calls the given handler when the mouse pointer moves over an element. + // Executes the provided handler as the mouse pointer hovers over the element. OnMouseOver(h EventHandler, scope ...any) HTMLWbr - // OnMouseUp calls the given handler when a mouse button is released over an element. + // Invokes the given handler when a mouse button is released above the element. OnMouseUp(h EventHandler, scope ...any) HTMLWbr - // OnPaste calls the given handler when the user pastes some content in an element. + // Invokes the handler as content is pasted into an element by the user. OnPaste(h EventHandler, scope ...any) HTMLWbr - // OnReset calls the given handler when the Reset button in a form is clicked. + // Executes the given handler upon clicking the Reset button within a form. OnReset(h EventHandler, scope ...any) HTMLWbr - // OnScroll calls the given handler when an element's scrollbar is being scrolled. + // Executes the handler as an element's scrollbar is scrolled. OnScroll(h EventHandler, scope ...any) HTMLWbr - // OnSearch calls the given handler when the user writes something in a search field. + // Triggers the specified handler when input is provided in a search field. OnSearch(h EventHandler, scope ...any) HTMLWbr - // OnSelect calls the given handler after some text has been selected in an element. + // Invokes the provided handler after text within the element is selected. OnSelect(h EventHandler, scope ...any) HTMLWbr - // OnSubmit calls the given handler when a form is submitted. + // Executes the given handler when the form undergoes submission. OnSubmit(h EventHandler, scope ...any) HTMLWbr - // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. + // Triggers the specified handler as the mouse wheel scrolls over the element. OnWheel(h EventHandler, scope ...any) HTMLWbr }@@ -25654,13 +25731,13 @@type func Wbr +
func Wbr ¶
func Wbr() HTMLWbr-Wbr returns an HTML element that defines a possible line-break. +
Returns an HTML element that suggests an optimal position for a line break within text. @@ -25670,7 +25747,7 @@
func type Handler +
type Handler ¶ @@ -25820,14 +25897,16 @@
type // are proxied by default are /robots.txt, /sitemap.xml and /ads.txt. ProxyResources []ProxyResource - // The resource provider that provides static resources. Static resources - // are always accessed from a path that starts with "/web/". + // Resources is a ResourceResolver responsible for resolving static resource + // paths. It specifically handles paths that begin with "/web/", ensuring that + // static resources such as stylesheets, scripts, and images are correctly + // located and served. // - // eg: - // "/web/main.css" + // For example, a resource path like "/web/main.css" will be resolved to its + // full path or URL by the ResourceResolver. // // Default: LocalDir("") - Resources ResourceProvider + Resources ResourceResolver // The version number. This is used in order to update the PWA application // in the browser. It must be set when deployed on a live system in order to @@ -25866,7 +25945,7 @@
type func (*Handler) ServeHTTP +
func (*Handler) ServeHTTP ¶ @@ -25880,7 +25959,7 @@
func (*Handler) type Icon +
type Icon ¶ @@ -25927,18 +26006,16 @@
type type Initializer +
type Initializer ¶
-Initializer is the interface that describes a component that performs -initialization instruction before being pre-rendered or mounted. +
Initializer describes a component that requires initialization +instructions to be executed before it is mounted.
type Initializer interface { - Composer - - // The function called before the component is pre-rendered or mounted. + // OnInit is invoked before the component is mounted. OnInit() }@@ -25956,63 +26033,6 @@type type Kind - ¶ - - -
-Kind represents the specific kind of a user interface element. - -
type Kind uint- - - -const ( - // UndefinedElem represents an undefined UI element. - UndefinedElem Kind = iota - - // SimpleText represents a simple text element. - SimpleText - - // HTML represents an HTML element. - HTML - - // Component represents a customized, independent and reusable UI element. - Component - - // Selector represents an element that is used to select a subset of - // elements within a given list. - Selector - - // RawHTML represents an HTML element obtained from a raw HTML code snippet. - RawHTML -)- - - - - - - - - - - - -func (Kind) String - ¶ - - -
-func (k Kind) String() string- - - - - - - -type Library ¶ @@ -26040,19 +26060,21 @@
type type Mounter +
type Mounter ¶
-Mounter is the interface that describes a component that can perform -additional actions when mounted. +
Mounter represents components that require initialization or setup actions +when they are integrated into the DOM. By implementing the Mounter interface, +components gain the ability to define specific behaviors that occur right +after they are visually rendered or integrated into the DOM hierarchy.
type Mounter interface { - Composer - - // The function called when the component is mounted. It is always called on - // the UI goroutine. + // OnMount is triggered right after the component is embedded into the DOM. + // Use this hook to perform any post-render configurations or + // initializations. + // This method operates within the UI goroutine. OnMount(Context) }@@ -26070,42 +26092,20 @@type type MsgHandler - ¶ - - -
-MsgHandler represents a handler to listen to messages sent with Context.Post. - -
type MsgHandler func(Context, any)- - - - - - - - - - - - - - - -type Navigator +
type Navigator ¶
-Navigator is the interface that describes a component that can perform -additional actions when navigated on. +
Navigator characterizes components that need to perform specific +actions or initializations when they become the target of navigation. +By adopting the Navigator interface, components can specify behaviors +to be executed when they are navigated to within the application.
type Navigator interface { - Composer - - // The function that called when the component is navigated on. It is always - // called on the UI goroutine. + // OnNav is invoked when the component becomes the navigation target. + // Use this method to handle actions or setups related to navigation events. + // This function is always executed within the UI goroutine. OnNav(Context) }@@ -26123,65 +26123,62 @@type type Notification +
type Notification ¶
-A user notification. +
Notification represents a user notification.
type Notification struct { - // The title shown at the top of the notification window. + // The title displayed prominently at the top of the notification. Title string `json:"title"` - // The URL path to navigate to when the notification is clicked. - Path string `json:"path"` + // Path is the URL to navigate to upon clicking the notification. + Path string `json:"path"` - // The notification's language, as specified in - // https://www.sitepoint.com/iso-2-letter-language-codes. - Lang string `json:"lang,omitempty"` + // Lang specifies the notification's language, using ISO 2-letter codes. + // See: https://www.sitepoint.com/iso-2-letter-language-codes + Lang string `json:"lang,omitempty"` - // The URL of the image used to represent the notification when there isn't - // enough space to display the notification itself. - Badge string `json:"badge,omitempty"` + // Badge is the URL of an image to represent the notification when space + // is limited. + Badge string `json:"badge,omitempty"` - // The body text of the notification, which is displayed below the title. - Body string `json:"body,omitempty"` + // Body is the main content, displayed below the title. + Body string `json:"body,omitempty"` - // An identifying tag for the notification. - Tag string `json:"tag,omitempty"` + // Tag provides a unique identifier for the notification. + Tag string `json:"tag,omitempty"` - // The URL of an icon to be displayed in the notification. - Icon string `json:"icon,omitempty"` + // Icon is the URL of an icon shown in the notification. + Icon string `json:"icon,omitempty"` - // The URL of an image to be displayed in the notification. - Image string `json:"image,omitempty"` + // Image is the URL of an image displayed in the notification. + Image string `json:"image,omitempty"` - // Arbitrary data that to be associated with the notification. - // - // The "goapp" key is reserved to go-app data. - Data map[string]any `json:"data"` + // Data contains arbitrary data associated with the notification. + // Note: "goapp" key is reserved for go-app data. + Data map[string]any `json:"data"` - // Specifies whether the user should be notified after a new notification - // replaces an old one. - Renotify bool `json:"renotify,omitempty"` + // Renotify determines if the user should be notified when a new + // notification replaces an existing one. + Renotify bool `json:"renotify,omitempty"` - // Indicates whether a notification should remain active until the user - // clicks or dismisses it, rather than closing automatically. - RequireInteraction bool `json:"requireInteraction,omitempty"` + // RequireInteraction ensures the notification remains active until + // the user acts on it, not closing automatically. + RequireInteraction bool `json:"requireInteraction,omitempty"` - // specifies whether the notification is silent (no sounds or vibrations - // issued), regardless of the device settings. - Silent bool `json:"silent,omitempty"` + // Silent specifies if the notification should be silent, suppressing + // all sounds and vibrations, regardless of device settings. + Silent bool `json:"silent,omitempty"` - // A vibration pattern for the device's vibration hardware to emit with the - // notification. - // - // See https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API#vibration_patterns. - Vibrate []int `json:"vibrate,omitempty"` + // Vibrate defines a vibration pattern for the device upon notification. + // See: https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API + Vibrate []int `json:"vibrate,omitempty"` - // The actions to display in the notification. - Actions []NotificationAction `json:"actions,omitempty"` + // Actions lists the available actions displayed within the notification. + Actions []NotificationAction `json:"actions,omitempty"` }@@ -26199,25 +26196,26 @@type type NotificationAction +
type NotificationAction ¶
-A notification action. +
NotificationAction represents an actionable item within a notification.
type NotificationAction struct { - // The user action id to be displayed on the notification. - Action string `json:"action"` + // Action is the unique ID associated with the user's action on + // the notification. + Action string `json:"action"` - // The action text to be shown to the user. - Title string `json:"title"` + // Title is the descriptive text shown alongside the action. + Title string `json:"title"` - // The URL of an icon to display with the action. - Icon string `json:"icon,omitempty"` + // Icon is the URL of an image to represent the action. + Icon string `json:"icon,omitempty"` - // The URL path to navigate to when the action is clicked. - Path string `json:"path"` + // Path is the URL to navigate to upon clicking the action. + Path string `json:"path"` }@@ -26235,29 +26233,31 @@type type NotificationPermission +
type NotificationPermission ¶
-NotificationPermission a permission to display notifications. +
NotificationPermission represents permission levels for displaying +notifications to users.
type NotificationPermission stringconst ( - // The user notifications choice is unknown and therefore the browser acts - // as if the value were denied. + // NotificationDefault indicates the user's choice for notifications is + // unknown, prompting the browser to treat it as "denied". NotificationDefault NotificationPermission = "default" - // The user accepts having notifications displayed. + // NotificationGranted means the user has allowed notifications. NotificationGranted NotificationPermission = "granted" - // The user refuses to have notifications displayed. + // NotificationDenied means the user has declined notifications. NotificationDenied NotificationPermission = "denied" - // Notifications are not supported by the browser. + // NotificationNotSupported indicates that the browser doesn't support + // notifications. NotificationNotSupported NotificationPermission = "unsupported" )@@ -26274,15 +26274,14 @@type type NotificationService +
type NotificationService ¶
- -type NotificationService struct { - // contains filtered or unexported fields -} +NotificationService provides functionalities related to user notifications. + +
type NotificationService struct{}@@ -26297,52 +26296,54 @@type func (NotificationService) New +
func (NotificationService) New ¶
func (s NotificationService) New(n Notification)-Creates and display a user notification. +
New creates and displays a notification to the user. -
func (NotificationService) Permission +
func (NotificationService) Permission ¶
func (s NotificationService) Permission() NotificationPermission-Returns the current notification permission. +
Permission retrieves the current notification permission status. -
func (NotificationService) RequestPermission +
func (NotificationService) RequestPermission ¶
func (s NotificationService) RequestPermission() NotificationPermission-Requests the user whether the app can use notifications. +
RequestPermission prompts the user for permission to display notifications. -
func (NotificationService) Subscribe +
func (NotificationService) Subscribe ¶
func (s NotificationService) Subscribe(vapIDPublicKey string) (NotificationSubscription, error)-Returns a notification subscription with the given vap id. +
Subscribe retrieves a notification subscription using the provided VAPID +public key. If the key is empty or push notifications aren't supported, an +error is returned. @@ -26351,18 +26352,24 @@
func (NotificationService) type NotificationSubscription +
type NotificationSubscription ¶
-NotificationSubscription represents a PushSubscription object from the Push -API. +
NotificationSubscription encapsulates a PushSubscription from the Push API.
type NotificationSubscription struct { - Endpoint string `json:"endpoint"` - Keys struct { - Auth string `json:"auth"` + // Endpoint is the push service endpoint URL. + Endpoint string `json:"endpoint"` + + // Keys contains cryptographic keys used for the subscription. + Keys struct { + // Auth is the authentication secret. + Auth string `json:"auth"` + + // P256dh is the user's public key, associated with the push + // subscription. P256dh string `json:"p256dh"` } `json:"keys"` } @@ -26382,32 +26389,17 @@@@ -26631,7 +26651,7 @@type type Observer +
type Observer ¶
-Observer is an observer that observes changes for a given state. - -
type Observer interface { - // Defines a condition that reports whether the observer keeps observing the - // associated state. Multiple conditions can be defined by successively - // calling While(). - While(condition func() bool) Observer - - // Executes the given function on the UI goroutine when the observed value - // changes. Multiple functions can be executed by successively calling - // OnChange(). - OnChange(fn func()) Observer ++Observer represents a mechanism to monitor and react to changes in a state. - // Stores the value associated with the observed state into the given - // receiver. Panics when the receiver is not a pointer or nil. - // - // The receiver is updated each time the associated state changes. It is - // unchanged when its pointed value has a different type than the associated - // state value. - Value(recv any) -}
type Observer struct { + // contains filtered or unexported fields +} +
@@ -26420,6 +26412,35 @@type func (Observer) OnChange + ¶ + + + +
func (o Observer) OnChange(h func()) Observer+OnChange sets a callback function to be executed each time the observer +detects a change in the associated state value. + + + + + + +
func (Observer) While + ¶ + + +
+func (o Observer) While(condition func() bool) Observer+While sets a condition for the observer, determining whether it observes +a state. The condition is periodically checked. Observation stops when the +condition returns false. + + + + + @@ -26505,21 +26526,19 @@
type type PreRenderer +
type PreRenderer ¶
PreRenderer is the interface that describes a component that performs -instruction when it is server-side pre-rendered. -
A pre-rendered component helps in achieving SEO friendly content. +additional instructions during server-side rendering. +
Implementing OnPreRender within a component can enhance SEO by allowing +server-side preparations for rendering.
type PreRenderer interface { - // The function called when the component is server-side pre-rendered. - // - // If pre-rendering requires blocking operations such as performing an HTTP - // request, ensure that they are done synchronously. A good practice is to - // avoid using goroutines during pre-rendering. + // OnPreRender is called during the server-side rendering process of the + // component. OnPreRender(Context) }@@ -26537,7 +26556,7 @@type type Preload +
type Preload ¶ @@ -26565,7 +26584,7 @@
type type ProxyResource +
type ProxyResource ¶ @@ -26597,7 +26616,7 @@
type type RangeLoop +
type RangeLoop ¶ @@ -26619,6 +26638,7 @@
type // // It panics if the range source is not a map or if map keys are not strings. Map(f func(string) UI) RangeLoop + // contains filtered or unexported methods }
type func Range +
func Range ¶ @@ -26648,18 +26668,21 @@
func type Resizer +
type Resizer ¶
-Resizer is the interface that describes a component that is notified when the -app has been resized or a parent component calls the ResizeContent() method. +
Resizer identifies components that respond to size alterations within the +application. These components can dynamically adjust to diverse size +scenarios, ensuring they maintain both a visually appealing and functional +display.
type Resizer interface { - // The function called when the application is resized or a parent component - // called its ResizeContent() method. It is always called on the UI - // goroutine. + // OnResize is called whenever the application experiences a change in size. + // Components can use this method to make appropriate adjustments, + // recalculations, or layout shifts in response to the modified dimensions. + // Note: This method operates exclusively within the UI goroutine context. OnResize(Context) }@@ -26711,7 +26734,7 @@type func CustomProvider +
func CustomProvider ¶ @@ -26725,7 +26748,7 @@
func func GitHubPages +
func GitHubPages ¶ @@ -26738,56 +26761,22 @@
func func LocalDir - ¶ - - -
-func LocalDir(root string) ResourceProvider-LocalDir returns a resource provider that serves static resources from a -local directory located at the given path. - - - - - -
func RemoteBucket - ¶ - - -
-func RemoteBucket(url string) ResourceProvider-RemoteBucket returns a resource provider that provides resources from a -remote bucket such as Amazon S3 or Google Cloud Storage. - - - - -
type ServerDispatcher - ¶ +
type ResourceResolver + ¶
-ServerDispatcher is the interface that describes a dispatcher that emulates a server environment. - -
type ServerDispatcher interface { - Dispatcher +ResourceResolver is an interface that defines the method to resolve +resources from /web/ path to its full URL or file location. - // Consume executes all the remaining UI instructions. - Consume() - - // ConsumeNext executes the next UI instructions. - ConsumeNext() - - // Close consumes all the remaining UI instruction and releases allocated - // resources. - Close() +
type ResourceResolver interface { + // Resolve takes a resource path and returns its resolved URL or file path. + Resolve(string) string }
@@ -26800,14 +26789,30 @@type func NewServerTester - ¶ +
func LocalDir + ¶ + + +
+func LocalDir(directory string) ResourceResolver+LocalDir returns a ResourceResolver for local resources. It resolves paths +starting with /web/ to their full file path based on the specified local directory. +This resolver is suitable for handling resources stored in the local filesystem. + + + + + +
func RemoteBucket + ¶
-func NewServerTester(n UI) ServerDispatcher-NewServerTester creates a testing dispatcher that simulates a -client environment. +
func RemoteBucket(url string) ResourceResolver+RemoteBucket returns a ResourceResolver for remote resources. It resolves +paths starting with /web/ to their full URL based on the specified remote URL, +such as a cloud storage bucket. This resolver is ideal for resources hosted +remotely. @@ -26817,26 +26822,15 @@
func type State +
type State ¶
-A state represents an observable value available across the app. +
State represents a state with additional features such as expiration, +persistence, and broadcasting capabilities.
type State struct { - // Reports whether the state is persisted in local storage. - IsPersistent bool - - // Reports whether the state is encrypted before being persisted in local - // storage. - IsEncrypted bool - - // The time when the state expires. The state never expires when zero value. - ExpiresAt time.Time - - // Reports whether a state is broadcasted to other browser tabs and windows. - IsBroadcasted bool // contains filtered or unexported fields }@@ -26852,58 +26846,73 @@type type StateOption - ¶ - -
-StateOption represents an option applied when a state is set. - -
type StateOption func(*State)- - - - +func (State) Broadcast + ¶ + + +
+func (s State) Broadcast() State+Broadcast signals that changes to the state will be broadcasted to other +browser tabs and windows sharing the same origin when it is supported. + + + - - + +
func (State) ExpiresAt + ¶ + + +
+func (s State) ExpiresAt(v time.Time) State+ExpiresAt sets the exact expiration time for the state. + + + -
func ExpiresAt - ¶ +
func (State) ExpiresIn + ¶
-func ExpiresAt(t time.Time) StateOption-ExpiresAt returns a state option that sets a state value to its zero value at -the given time. -
Values persisted to local storage with the Persist option are removed from -it. +
func (s State) ExpiresIn(v time.Duration) State+ExpiresIn sets the expiration time for the state by specifying a duration +from the current time. + -
func ExpiresIn - ¶ +
func (State) Persist + ¶
-func ExpiresIn(d time.Duration) StateOption-ExpiresIn returns a state option that sets a state value to its zero value -after the given duration. -
Values persisted to local storage with the Persist option are removed from -it. +
func (s State) Persist() State+Persist ensures the state is persisted into the local storage. + + +
func (State) PersistWithEncryption + ¶ + + +
+func (s State) PersistWithEncryption() State+PersistWithEncryption ensures the state is persisted into the local storage +with encryption. + + + @@ -27049,34 +27058,79 @@
func (Tags) type TestUIDescriptor +
type TestEngine + ¶ + + +
+TestEngine encapsulates the methods required to load components and manage +asynchronous events within a unit test environment. It simulates the UI engine's +behavior, enabling comprehensive unit testing of UI components. + +
type TestEngine interface { + // Load initializes the test engine with the specified component, preparing it + // for unit testing. It returns an error if the component cannot be + // integrated or if the engine fails to initialize properly. + Load(Composer) error + + // ConsumeNext advances the test engine's state by processing the next + // operation in the dispatch queue. It allows for fine-grained control over + // the sequence of operations during unit testing. + ConsumeNext() + + // ConsumeAll advances the test engine's state by executing all pending + // dispatched, deferred, and asynchronous operations. This ensures that the + // component's state is fully updated, allowing for accurate assertions and + // verifications in test scenarios. + ConsumeAll() +}+ + + + + + + + + + + +func NewTestEngine + ¶ + + +
+func NewTestEngine() TestEngine+NewTestEngine creates and returns a new instance of test engine configured +for unit testing. + + + + + + + + + +
type TestUIDescriptor ¶
-TestUIDescriptor represents a descriptor that describes a UI element and its -location from its parents. +
TestUIDescriptor describes a UI element and its hierarchical location +relative to parent elements for the purpose of testing.
type TestUIDescriptor struct { - // The location of the node. It is used by the TestMatch to find the - // element to test. - // - // If empty, the expected UI element is compared with the root of the tree. - // - // Otherwise, each integer represents the index of the element to traverse, - // from the root's children to the element to compare - Path []int - - // The element to compare with the element targeted by Path. Compare - // behavior varies depending on the element kind. - // - // Simple text elements only have their text value compared. - // - // HTML elements have their attribute compared and check if their event - // handlers are set. - // - // Components have their exported field values compared. - Expected UI + // Path represents the sequence of child indices to navigate through the UI + // tree to reach the element to be tested. An empty path implies the root. + Path []int + + // Expected is the UI element that is expected to be found at the location + // specified by Path. The comparison behavior varies depending on the type + // of element; simple text elements are compared by text value, HTML + // elements by attributes and event handlers, and components by the values + // of their exported fields. + Expected UI }@@ -27178,7 +27232,7 @@type type UI +
type UI ¶ @@ -27187,9 +27241,6 @@
type // Kind represents the specific kind of a UI element. - Kind() Kind - // JSValue returns the javascript value linked to the element. JSValue() Value @@ -27215,77 +27266,118 @@
type func FilterUIElems +
func FilterUIElems ¶
func FilterUIElems(v ...UI) []UI-FilterUIElems returns a filtered version of the given UI elements where -selector elements such as If and Range are interpreted and removed. It also -remove nil elements. -
It should be used only when implementing components that can accept content -with variadic arguments like HTML elements Body method. +
FilterUIElems processes and returns a filtered list of the provided UI +elements. +
Specifically, it: +- Interprets and removes selector elements such as Condition and RangeLoop. +- Eliminates nil elements and nil pointers. +- Flattens and includes the children of recognized selector elements. +
This function is primarily intended for components that accept ui elements as +variadic arguments or slice, such as the Body method of HTML elements. -
func Raw +
func Raw ¶
func Raw(v string) UI-Raw returns a ui element from the given raw value. HTML raw value must have a -single root. -
It is not recommended to use this kind of node since there is no check on the -raw string content. +
Raw creates a UI element from the given raw HTML string. The raw HTML must +have a single root element. If the root tag cannot be determined, it defaults +to a div element. +
Using Raw can be risky since there's no validation of the provided +string content. Ensure that the content is safe and sanitized before use. -
func Text +
func Text ¶
func Text(v any) UI-Text creates a simple text element. +
Text returns a UI element representing plain text, converting the provided +value to its string representation. -
func Textf +
func Textf ¶
func Textf(format string, v ...any) UI-Text creates a simple text element with the given format and values. +
Textf returns a UI element representing formatted text. The format and values +follow the conventions of fmt.Sprintf. + + + + + + + + +
type UpdateNotifier + ¶ +
+UpdateNotifier defines a component that signals its parent component +regarding the requirement for an update in response to an HTML event. + +
type UpdateNotifier interface { + Composer + + // NotifyUpdate indicates whether the nearest parent component should be + // queued for an update. It returns true to signal that the parent component + // should be updated in the subsequent cycle, and false to inhibit the + // update. + NotifyUpdate() bool +}+ + + + + + + + + -type Updater +
type Updater ¶
-Updater is the interface that describes a component that can do additional -instructions when one of its exported fields is modified by its nearest -parent component. +
Updater encapsulates components that require specific behaviors or reactions +when one of their exported fields is updated by the closest parent component. +Implementing the Updater interface allows components to define responsive +actions that should be executed whenever they are modified by a parent.
type Updater interface { - // The function called when one of the component exported fields is modified - // by its nearest parent component. It is always called on the UI goroutine. + // OnUpdate is triggered whenever an exported field of the component gets + // modified by its immediate parent component. This method is an opportunity + // to handle related reactions or recalculations. + // This function always runs within the UI goroutine context. OnUpdate(Context) }@@ -27443,7 +27535,7 @@func func ValueOf +
func ValueOf ¶ @@ -27458,8 +27550,8 @@
func Subdirectories