vecty: github.com/gopherjs/vecty/example/todomvc/components Index | Files

package components

import "github.com/gopherjs/vecty/example/todomvc/components"

Index

Package Files

filterbutton.go itemview.go pageview.go

type FilterButton Uses

type FilterButton struct {
    vecty.Core

    Label  string            `vecty:"prop"`
    Filter model.FilterState `vecty:"prop"`
}

FilterButton is a vecty.Component which allows the user to select a filter state.

func (*FilterButton) Render Uses

func (b *FilterButton) Render() vecty.ComponentOrHTML

Render implements the vecty.Component interface.

type ItemView Uses

type ItemView struct {
    vecty.Core

    Index int         `vecty:"prop"`
    Item  *model.Item `vecty:"prop"`
    // contains filtered or unexported fields
}

ItemView is a vecty.Component which represents a single item in the TODO list.

func (*ItemView) Key Uses

func (p *ItemView) Key() interface{}

Key implements the vecty.Keyer interface.

func (*ItemView) Render Uses

func (p *ItemView) Render() vecty.ComponentOrHTML

Render implements the vecty.Component interface.

type PageView Uses

type PageView struct {
    vecty.Core

    Items []*model.Item `vecty:"prop"`
    // contains filtered or unexported fields
}

PageView is a vecty.Component which represents the entire page.

func (*PageView) Render Uses

func (p *PageView) Render() vecty.ComponentOrHTML

Render implements the vecty.Component interface.

Package components imports 10 packages (graph) and is imported by 1 packages. Updated 2019-07-01. Refresh now. Tools for package owners.