views

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNode

func AddNode() templ.Component

func Alert

func Alert(status, message string) templ.Component

func BaseLayout

func BaseLayout(m Meta, cmp templ.Component) templ.Component

func BlankLayout

func BlankLayout(cmp templ.Component) templ.Component

func DtPagination

func DtPagination(url, hxTarget string, q interface{}, p paging.Pagination) templ.Component

func DtRefreshInterval

func DtRefreshInterval(url, hxTarget, interval string, q interface{}) templ.Component

func DtReload

func DtReload(url, hxTarget string, q interface{}) templ.Component

func DtRowCount

func DtRowCount(currentPage, rowsPerPage, totalRows int) templ.Component

func DtRowPerPage

func DtRowPerPage(url, hxTarget string, rowsPerPage int, q interface{}) templ.Component

func DtThSort

func DtThSort(url, hxTarget, title, expectedSort, sortBy, sortDir string, q interface{}) templ.Component

Sort TH table

URL: Where the URL to get the results is HxTarget: Where the results will be displayed Title: The title of the column ExpectedSort: The expected sort, used to determine the sort direction indicator SortBy: The current sort by SortDir: The current sort direction Q: The current query

func EmbedAssets

func EmbedAssets() fiber.Handler

func Home

func Home() templ.Component

func ModalLayout

func ModalLayout(title string, cmp templ.Component) templ.Component

func Node

func Node(data monero.Node) templ.Component

func RemoteNodes

func RemoteNodes(data monero.Nodes, countries []monero.Countries, q monero.QueryNodes, p paging.Pagination) templ.Component

func TableLogs

func TableLogs(hxPath string, data monero.FetchLogs, q monero.QueryLogs, p paging.Pagination) templ.Component

func TableNodes

func TableNodes(data monero.Nodes, countries []monero.Countries, q monero.QueryNodes, p paging.Pagination) templ.Component

Types

type Meta

type Meta struct {
	Title       string
	Description string
	Keywords    string
	Robots      string
	Permalink   string
	Identifier  string
}

Jump to

Keyboard shortcuts

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