table

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

templ: version: v0.3.943

templ: version: v0.3.943

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pagination

func Pagination(props PaginationProps) templ.Component
func PaginationLinks(props PaginationProps, links []PaginationLink) templ.Component

func Table

func Table(props TableProps, columns ...string) templ.Component

func Td

func Td(props TDProps) templ.Component

func TdActions

func TdActions(id string) templ.Component

func Tr

func Tr(props TRProps) templ.Component

Types

type PaginationLink struct {
	PageNumber int
	Offset     int
	Active     bool
}
func CreatePaginationLinks(props PaginationProps) []PaginationLink

type PaginationProps

type PaginationProps struct {
	Offset int
	Limit  int
	Total  int

	Target  string
	BaseURL string
}

type TDProps

type TDProps struct {
	RightAlign bool
}

type TRProps

type TRProps struct {
	Link templ.SafeURL
}

type TableProps

type TableProps struct {
	Columns []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL