Documentation
¶
Overview ¶
Package modals provides structures and methods for handling modal dialogs in a web application.
Index ¶
- func Modal(p Props, children ...htmx.Node) htmx.Node
- func ModalAction(p ModalActionProps, children ...htmx.Node) htmx.Node
- func ModalBox(p ModalBoxProps, children ...htmx.Node) htmx.Node
- func ModalCloseButton(p ModalCloseButtonProps, children ...htmx.Node) htmx.Node
- type ModalActionProps
- type ModalBoxProps
- type ModalCloseButtonProps
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModalAction ¶
func ModalAction(p ModalActionProps, children ...htmx.Node) htmx.Node
ModalAction is a component for the htmx modal extension.
func ModalBox ¶ added in v0.5.3
func ModalBox(p ModalBoxProps, children ...htmx.Node) htmx.Node
ModalBox is a component for the htmx modal extension.
func ModalCloseButton ¶
func ModalCloseButton(p ModalCloseButtonProps, children ...htmx.Node) htmx.Node
ModalCloseButton is a component for the htmx modal extension.
Types ¶
type ModalActionProps ¶
type ModalActionProps struct {
// ClassNames are the CSS class names to apply to the modal actions.
htmx.ClassNames
}
ModalActionProps contains the properties for the modal actions component.
type ModalBoxProps ¶ added in v0.5.3
type ModalBoxProps struct {
htmx.ClassNames
}
ModalBox contains the properties for the modal box component.
type ModalCloseButtonProps ¶
type ModalCloseButtonProps struct {
// ClassNames are the CSS class names to apply to the modal close button.
htmx.ClassNames
}
ModalCloseButtonProps contains the properties for the modal close button component.
type Props ¶ added in v0.5.3
type Props struct {
// ID is the identifier for the modal.
ID string
// ClassNames are the CSS class names to apply to the modal.
htmx.ClassNames
}
Props contains the properties for the modal component.
Click to show internal directories.
Click to hide internal directories.