components

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderElem

func RenderElem(e models.Elem) vecty.ComponentOrHTML

func RenderElems

func RenderElems(e []models.Elem) vecty.List

Types

type Caption

type Caption struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*Caption) Render

func (c *Caption) Render() vecty.ComponentOrHTML

type Code

type Code struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*Code) Render

func (c *Code) Render() vecty.ComponentOrHTML

type IFrame

type IFrame struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*IFrame) Render

func (f *IFrame) Render() vecty.ComponentOrHTML

type Image

type Image struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*Image) Render

func (i *Image) Render() vecty.ComponentOrHTML
type Link struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*Link) Render

func (l *Link) Render() vecty.ComponentOrHTML

type List

type List struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*List) Render

func (l *List) Render() vecty.ComponentOrHTML

type Position

type Position int
const (
	FarPast Position = iota << 1
	Past
	Current
	Next
	FarNext
	Silent
)

func (Position) Class

func (p Position) Class() string

type Section

type Section struct {
	vecty.Core
	Slide bool
	Pos   Position `vecty:"prop"`
	S     models.Section

	OnTouchStart func(*vecty.Event)
	OnTouchEnd   func(*vecty.Event)
	OnTouchMove  func(*vecty.Event)

	CancelTouch bool
}

Section is a single slide show unit/page.

func (*Section) Render

func (s *Section) Render() vecty.ComponentOrHTML

type Spinner

type Spinner struct {
	vecty.Core
}

func (*Spinner) Render

func (*Spinner) Render() vecty.ComponentOrHTML

type TOC

type TOC struct {
	vecty.Core

	Sections []models.Section
}

func (*TOC) Render

func (t *TOC) Render() vecty.ComponentOrHTML

type Text

type Text struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*Text) Render

func (t *Text) Render() vecty.ComponentOrHTML

type Video

type Video struct {
	vecty.Core
	// contains filtered or unexported fields
}

func (*Video) Render

func (v *Video) Render() vecty.ComponentOrHTML

Jump to

Keyboard shortcuts

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