Documentation
¶
Overview ¶
Package modals provides structures and methods for handling modal dialogs in a web application.
Index ¶
- func Action(props ActionProps, children ...htmx.Node) htmx.Node
- func Box(props BoxProps, children ...htmx.Node) htmx.Node
- func CloseButton(props CloseButtonProps, children ...htmx.Node) htmx.Node
- func CloseButtonOutside(props CloseButtonProps, children ...htmx.Node) htmx.Node
- func Modal(p Props, children ...htmx.Node) htmx.Node
- func OpenButton(props OpenButtonProps, children ...htmx.Node) htmx.Node
- type ActionProps
- type BoxProps
- type CloseButtonProps
- type OpenButtonProps
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
func Action(props ActionProps, children ...htmx.Node) htmx.Node
Action is a component for the htmx modal extension.
func CloseButton ¶
func CloseButton(props CloseButtonProps, children ...htmx.Node) htmx.Node
CloseButton is a component for the htmx modal extension.
func CloseButtonOutside ¶
func CloseButtonOutside(props CloseButtonProps, children ...htmx.Node) htmx.Node
CloseButtonOutside is a component for the htmx modal extension.
func OpenButton ¶
func OpenButton(props OpenButtonProps, children ...htmx.Node) htmx.Node
OpenButton is a component for the htmx modal extension.
Types ¶
type ActionProps ¶
type ActionProps struct {
// ClassNames are the CSS class names to apply to the modal actions.
htmx.ClassNames
}
ActionProps contains the properties for the modal actions component.
type BoxProps ¶
type BoxProps struct {
htmx.ClassNames
}
Box contains the properties for the modal box component.
type CloseButtonProps ¶
type CloseButtonProps struct {
// ClassNames are the CSS class names to apply to the modal close button.
htmx.ClassNames
// ID is the identifier for the modal close button.
ID string
}
CloseButtonProps contains the properties for the modal close button component.
type OpenButtonProps ¶
type OpenButtonProps struct {
// ClassNames are the CSS class names to apply to the modal open button.
htmx.ClassNames
// ID is the identifier for the modal open button.
ID string
}
OpenButtonProps contains the properties for the modal open button component.
type Props ¶
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.