elements

package
v0.0.0-...-500bec7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHTTPJSON

func DoHTTPJSON(method string, url string, data interface{}) (*http.Response, error)

func InitRouter

func InitRouter(defaultRoute string)

Types

type Adder

type Adder struct {
	*polymer.Proto

	Addends []string `polymer:"bind"`
	Sum     int      `polymer:"bind"`
	Error   string   `polymer:"bind"`

	Create chan *polymer.Event `polymer:"handler"`
	Delete chan *polymer.Event `polymer:"handler"`
	Submit chan *polymer.Event `polymer:"handler"`
}

func (*Adder) ComputeSum

func (a *Adder) ComputeSum() int

func (*Adder) Created

func (a *Adder) Created()

func (*Adder) ListenEvents

func (a *Adder) ListenEvents()

func (*Adder) Ready

func (a *Adder) Ready()

type RouterType

type RouterType struct {
	*polymer.BindProto

	Route string `polymer:"bind"`
}
var Router *RouterType

func (*RouterType) ComputeIsActive

func (r *RouterType) ComputeIsActive(section string, active string) bool

func (*RouterType) HandleAnchorClick

func (r *RouterType) HandleAnchorClick(e *polymer.Event)

func (*RouterType) SetPath

func (r *RouterType) SetPath(path string)

func (*RouterType) SetRoute

func (r *RouterType) SetRoute(route string)

Jump to

Keyboard shortcuts

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