popover

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package popover defines the Popover type and its predefined values.

Popover behavior for elements designated as popover content. Controls how popovers are managed, dismissed, and interact with other page elements.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Auto Automatic popover management with light dismiss behavior. Popover closes when
	// user clicks outside, presses Escape, or opens another auto popover.
	Auto = Popover("auto")

	// Manual Manual popover management requiring explicit close actions. Popover only closes
	// when specifically commanded via JavaScript or popover target actions.
	Manual = Popover("manual")
)

Variables for Popover values

Functions

This section is empty.

Types

type Popover

type Popover []byte

Popover is a typed value for the HTML popover attribute.

Popover behavior for elements designated as popover content. Controls how popovers are managed, dismissed, and interact with other page elements.

func Custom

func Custom(value string) Popover

Custom allows setting a custom Popover value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

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