crudl

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: BSD-3-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Templates added in v0.9.1

func Templates(embedfsys embed.FS, dir path.Relative) *templates

Types

type Container added in v0.6.0

type Container struct {
	*html.Element
	ID html.ID
}

func (*Container) HtmxButton added in v0.6.0

func (c *Container) HtmxButton() *html.Element
func (c *Container) HtmxLink() *html.Element

type Create

type Create[C wc.Contexter] struct {
	GET  *wc.RouteHandler[C]
	POST *wc.RouteHandler[C]
	ID   html.ID
}

func NewCreate added in v0.7.0

func NewCreate[C wc.Contexter](router *wc.Router[C], namespace string) Create[C]

type Delete

type Delete[C wc.Contexter] struct {
	DELETE *wc.RouteHandler[C]
	ID     html.ID
}

func NewDelete added in v0.7.0

func NewDelete[C wc.Contexter](router *wc.Router[C], namespace string) Delete[C]

type DeleteGET added in v0.7.0

type DeleteGET[C wc.Contexter] struct {
	GET *wc.RouteHandler[C]
	ID  html.ID
}

func NewDeleteGET added in v0.7.0

func NewDeleteGET[C wc.Contexter](router *wc.Router[C], namespace string) DeleteGET[C]

type List

type List[C wc.Contexter] struct {
	GET *wc.RouteHandler[C]
	ID  html.ID
}

func NewList added in v0.7.0

func NewList[C wc.Contexter](router *wc.Router[C], namespace string) List[C]

type ListView added in v0.7.0

type ListView struct {
	// contains filtered or unexported fields
}

func (*ListView) New added in v0.7.0

func (t *ListView) New() *listViewIter

type Read

type Read[C wc.Contexter] struct {
	GET *wc.RouteHandler[C]
	ID  html.ID
}

func NewRead added in v0.7.0

func NewRead[C wc.Contexter](router *wc.Router[C], namespace string) Read[C]

type TableArgValues added in v0.7.0

type TableArgValues struct {
	SortColumn       string
	SortDirection    string
	Page             int
	Limit            int
	FilterColumn     string
	FilterType       string
	FilterValue      string
	ReverseDirection string
	// contains filtered or unexported fields
}

func (*TableArgValues) Set added in v0.7.0

func (o *TableArgValues) Set() error

type TableArgs added in v0.7.0

type TableArgs[T wc.Contexter] struct {
	SortColumn    wc.QueryArgOpt
	SortDirection wc.QueryArgOpt
	Page          wc.QueryArgOpt
	Limit         wc.QueryArgOpt
	FilterColumn  wc.QueryArgOpt
	FilterType    wc.QueryArgOpt
	FilterValue   wc.QueryArgOpt
	// contains filtered or unexported fields
}

func NewTableArgs added in v0.7.0

func NewTableArgs[T wc.Contexter](defaultSortColumn, defaultSortDir string, columns ...string) TableArgs[T]

func (TableArgs[T]) Register added in v0.7.0

func (t TableArgs[T]) Register(rt *wc.RouteHandler[T]) *wc.RouteHandler[T]

func (TableArgs[T]) Scan added in v0.7.0

func (x TableArgs[T]) Scan(ctx wc.Contexter, firstTargets ...any) (TableArgValues, error)

type UpdatePATCH added in v0.7.0

type UpdatePATCH[C wc.Contexter] struct {
	GET   *wc.RouteHandler[C]
	PATCH *wc.RouteHandler[C]
	ID    html.ID
}

func NewUpdatePATCH added in v0.7.0

func NewUpdatePATCH[C wc.Contexter](router *wc.Router[C], namespace string) UpdatePATCH[C]

type UpdatePOST added in v0.7.0

type UpdatePOST[C wc.Contexter] struct {
	GET  *wc.RouteHandler[C]
	POST *wc.RouteHandler[C]
	ID   html.ID
}

func NewUpdatePOST added in v0.7.0

func NewUpdatePOST[C wc.Contexter](router *wc.Router[C], namespace string) UpdatePOST[C]

type UpdatePUT added in v0.7.0

type UpdatePUT[C wc.Contexter] struct {
	GET *wc.RouteHandler[C]
	PUT *wc.RouteHandler[C]
	ID  html.ID
}

func NewUpdatePUT added in v0.7.0

func NewUpdatePUT[C wc.Contexter](router *wc.Router[C], namespace string) UpdatePUT[C]

type View added in v0.7.0

type View struct {
	Template *templ.Template
}

func (*View) Set added in v0.9.4

func (t *View) Set(setter ...templ.Setter) html.HTML

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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