Documentation ¶
Overview ¶
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
Index ¶
- Variables
- func Counter(store CounterStore) templ.Component
- func CounterButtons() templ.Component
- func CounterCounts() templ.Component
- func CounterInitial() templ.Component
- func KVPairsAttrs(kvPairs ...string) templ.Attributes
- func SortableInitial() templ.Component
- func TodoInput(i int) templ.Component
- func TodoRow(mode TodoViewMode, todo *Todo, i int, isEditing bool) templ.Component
- func TodosMVCView(mvc *TodoMVC) templ.Component
- type CounterStore
- type Todo
- type TodoMVC
- type TodoViewMode
Constants ¶
This section is empty.
Variables ¶
View Source
var TodoViewModeStrings = []string{"All", "Active", "Completed"}
Functions ¶
func Counter ¶
func Counter(store CounterStore) templ.Component
func CounterButtons ¶
func CounterCounts ¶
func CounterInitial ¶
func KVPairsAttrs ¶
func KVPairsAttrs(kvPairs ...string) templ.Attributes
func SortableInitial ¶
func TodosMVCView ¶
Types ¶
type CounterStore ¶
type TodoMVC ¶
type TodoMVC struct { Todos []*Todo `json:"todos"` EditingIdx int `json:"editingIdx"` Mode TodoViewMode `json:"mode"` }
type TodoViewMode ¶
type TodoViewMode int
const ( TodoViewModeAll TodoViewMode = iota TodoViewModeActive TodoViewModeCompleted TodoViewModeLast )
Click to show internal directories.
Click to hide internal directories.