dropdowns

package
v1.3.31 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dropdown(p DropdownProps, children ...htmx.Node) htmx.Node

Dropdown generates a dropdown element based on the provided properties.

func DropdownButton(p DropdownButtonProps, children ...htmx.Node) htmx.Node

DropdownButton generates a dropdown summary element based on the provided properties.

func DropdownMenuItem(p DropdownMenuItemProps, children ...htmx.Node) htmx.Node

DropdownMenuItem generates a dropdown items element based on the provided properties.

func DropdownMenuItems(p DropdownMenuItemsProps, children ...htmx.Node) htmx.Node

DropdownMenuItems generates a dropdown menu items element based on the provided properties.

func SingleSelect added in v1.3.21

func SingleSelect(props SingleSelectProps, children ...htmx.Node) htmx.Node

SingleSelect ...

func SingleSelectOption added in v1.3.21

func SingleSelectOption(props SingleSelectOptionProps, children ...htmx.Node) htmx.Node

SingleSelectOption ...

Types

type DropdownButtonProps struct {
	ClassNames htmx.ClassNames // The class names for the dropdown summary element.
	TabIndex   int
}

DropdownButtonProps represents the properties for a dropdown summary element.

type DropdownMenuItemProps struct {
	ClassNames htmx.ClassNames // The class names for the dropdown items element.
}

DropdownMenuItem represents the properties for a dropdown items element.

type DropdownMenuItemsProps struct {
	ClassNames htmx.ClassNames // The class names for the dropdown menu items element.
	TabIndex   int
}

DropdownMenuItemsProps represents the properties for a dropdown menu items element.

type DropdownProps struct {
	ClassNames htmx.ClassNames // The class names for the dropdown element.
}

DropdownProps represents the properties for a dropdown element.

type SingleSelectOptionProps added in v1.3.21

type SingleSelectOptionProps struct {
	ID    string
	Name  string
	Value string
}

SingleSelectOptionProps ...

type SingleSelectProps added in v1.3.21

type SingleSelectProps struct {
	URL string
	ID  string
}

SingleSelectProps ...

Jump to

Keyboard shortcuts

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