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 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 ¶ added in v0.5.5
func Action(props ActionProps, children ...htmx.Node) htmx.Node
Action is a component for the htmx modal extension.
func CloseButton ¶ added in v0.5.5
func CloseButton(props CloseButtonProps, children ...htmx.Node) htmx.Node
CloseButton is a component for the htmx modal extension.
func OpenButton ¶ added in v0.5.5
func OpenButton(props OpenButtonProps, children ...htmx.Node) htmx.Node
OpenButton is a component for the htmx modal extension.
Types ¶
type ActionProps ¶ added in v0.5.5
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 ¶ added in v0.5.5
type BoxProps struct {
htmx.ClassNames
}
Box contains the properties for the modal box component.
type CloseButtonProps ¶ added in v0.5.5
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 ¶ added in v0.5.5
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 ¶ 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.