shared

package
v0.0.0-...-dd36c5f Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box() templ.Component

func Button

func Button(opts ButtonOptions) templ.Component

func Codicon

func Codicon(iconName string, small bool) templ.Component

func CommentBox

func CommentBox(issueActivity *pb_issue.IssueActivity, userMap map[uint64]*pb_user.User) templ.Component

func FormDropdown

func FormDropdown(name string, req bool, value string, hxOptions FormHXOptions) templ.Component

func FormDropdownField

func FormDropdownField(name string, label string, opts FormFieldOptions) templ.Component

func FormField

func FormField(name string, label string, fieldType string, opts FormFieldOptions) templ.Component

func FormInput

func FormInput(name string, fieldType string, opts FormInputOptions) templ.Component

func FormOption

func FormOption(label string, value string, selectedValue string) templ.Component

func FormTextarea

func FormTextarea(name string) templ.Component

func FormTextareaField

func FormTextareaField(name string, label string, opts FormFieldOptions) templ.Component
func HxLink(
	targetURL templ.SafeURL,
	targetSelector string,
	opts HxLinkOptions,
) templ.Component

func IssueRow

func IssueRow(
	projectNo uint64,
	issue *pb_issue.Issue,
	issueFlows []*pb_flow.Flow,
	tagMap map[uint64]*pb_tag.Tag,
	userMap map[uint64]*pb_user.User,
) templ.Component

func ListItem

func ListItem(id string, onClickFunc templ.ComponentScript) templ.Component

func Tag

func Tag(
	projectNo uint64,
	title string, color string,
	opts TagOptions,
) templ.Component

func TagOption

func TagOption(tagObj *pb_tag.Tag) templ.Component

func Time

func Time(unix int64, opts TimeOptions) templ.Component

func User

func User(user *pb_user.User, opts UserOptions) templ.Component

Types

type ButtonOptions

type ButtonOptions struct {
	InButtonRow   bool
	OnClick       templ.ComponentScript
	AlpineOnClick string
	Small         bool
	Primary       bool
	TypeSubmit    bool
}

type FormFieldOptions

type FormFieldOptions struct {
	Small        bool
	ExtraSpacey  bool
	Placeholder  string
	Required     bool
	InitialValue string
	Checked      bool
	HXOptions    FormHXOptions
}

type FormHXOptions

type FormHXOptions struct {
	Method         string
	URL            templ.SafeURL
	Swap           string
	TargetSelector string
}

type FormInputOptions

type FormInputOptions struct {
	Value       string
	Placeholder string
	Checked     bool
}

type HxLinkOptions

type HxLinkOptions struct {
	ButtonOptions
	UseButtonStyle bool
	PushURL        bool
	Method         string
	Swap           string
}

type TagOptions

type TagOptions struct {
	ShowDelete     bool
	DeleteURL      templ.SafeURL
	DeleteSelector string
}

type TimeOptions

type TimeOptions struct{}

type UserOptions

type UserOptions struct {
	IdPrefix    string
	UnassignURL templ.SafeURL
}

Jump to

Keyboard shortcuts

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