Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
Constants ¶
View Source
const DefaultPageSize = 20
DefaultPageSize is used when no valid per_page query param is supplied.
Variables ¶
View Source
var PageSizes = []int{20, 50, 100}
PageSizes are the selectable "items per page" options for the suppliers list.
Functions ¶
func Detail ¶
func Detail(data layout.AppLayoutData, s model.Supplier, payments []model.SupplierPayment, errMsg string) templ.Component
func Index ¶
func Index(props IndexProps) templ.Component
Types ¶
type IndexProps ¶
type IndexProps struct {
Data layout.AppLayoutData
Suppliers []model.Supplier
Search string
Page int
PerPage int
TotalItems int
}
IndexProps holds the data needed to render the suppliers list page.
Click to show internal directories.
Click to hide internal directories.