base

package
Version: v0.0.0-...-570bcb6 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkupOnly

func MarkupOnly(moc vecty.MarkupOrChild) *vecty.MarkupList

MarkupOnly returns the vecty.MarkupList contained in moc, or nil if none is found. It also returns nil if moc is a vecty.List that contains one or more vecty.ComponentOrHTML. If nil is returned, it is then safe to assert the type of moc as a vecty.ComponentOrHTML.

Types

type MDC

type MDC struct {
	Component   base.ComponentStartStopper
	RootElement *vecty.HTML
}

func (*MDC) Mount

func (b *MDC) Mount()

func (*MDC) Unmount

func (b *MDC) Unmount()

type StaticComponent

type StaticComponent struct {
	vecty.Core
	Child vecty.ComponentOrHTML
}

func RenderStoredChild

func RenderStoredChild(child vecty.ComponentOrHTML) *StaticComponent

RenderStoredChild is a helper which provides a Component which wraps the provided ComponentOrHTML. It exists as a workaround to a vecty issue.

See: https://github.com/gopherjs/vecty/issues/191

func (*StaticComponent) Render

func (*StaticComponent) SkipRender

func (c *StaticComponent) SkipRender(prev vecty.Component) bool

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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