popovertargetaction

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Toggle Toggle popover visibility between shown and hidden states. If popover is hidden,
	// show it; if popover is shown, hide it. Default behavior for most interactions.
	Toggle = PopoverTargetAction("toggle")

	// Show Show the target popover if it's currently hidden. If popover is already shown,
	// no action is taken. Useful for explicit "open" buttons.
	Show = PopoverTargetAction("show")

	// Hide Hide the target popover if it's currently shown. If popover is already hidden,
	// no action is taken. Useful for explicit "close" buttons.
	Hide = PopoverTargetAction("hide")
)

Variables for PopoverTargetAction values

Functions

This section is empty.

Types

type PopoverTargetAction

type PopoverTargetAction []byte

PopoverTargetAction Action to perform on target popover element. Controls how button or input interacts with associated popover elements for show/hide/toggle functionality.

func Custom

func Custom(value string) PopoverTargetAction

Custom allows setting a custom PopoverTargetAction 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