Documentation
¶
Overview ¶
templ: version: v0.3.1020
Index ¶
- func Bar(props BarProps) templ.Component
- func Content(props ...ContentProps) templ.Component
- func CreatePagination(currentPage, totalPages, maxVisible int) struct{ ... }
- func Ellipsis() templ.Component
- func Item(props ...ItemProps) templ.Component
- func Link(props ...LinkProps) templ.Component
- func Next(props ...NextProps) templ.Component
- func Pagination(props ...Props) templ.Component
- func Previous(props ...PreviousProps) templ.Component
- type BarProps
- type ContentProps
- type ItemProps
- type LinkProps
- type NextProps
- type PreviousProps
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bar ¶
Bar renders a complete Previous/page-numbers/Next pager, or nothing if the results fit on a single page.
func Content ¶
func Content(props ...ContentProps) templ.Component
func CreatePagination ¶
func Pagination ¶
func Previous ¶
func Previous(props ...PreviousProps) templ.Component
Types ¶
type BarProps ¶
BarProps holds the data needed to render a full pager for a paginated list. Query should hold every filter to preserve across page links (search, per_page if non-default, etc.) but must NOT include "page" itself.
type ContentProps ¶
type ContentProps struct {
ID string
Class string
Attributes templ.Attributes
}
type PreviousProps ¶
Click to show internal directories.
Click to hide internal directories.