examples

package
v0.0.0-...-52c9d7f Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(classifier string, body gr.Modifier) *gr.Element

Alert creates a Bootstrap alert element.

func Example

func Example(title string, body ...gr.Modifier) *gr.Element

Example is a wrapper for the examples

func Panel

func Panel(title string, body ...gr.Modifier) *gr.Element

Panel creates a panel.

Types

type ClickCounter

type ClickCounter struct {
	*gr.This
}

ClickCounter is a reusable components to use in composition examples. This is just copy-paste from the click counter example. Consider making something else.

func (ClickCounter) ComponentDidMount

func (c ClickCounter) ComponentDidMount()

ComponentDidMount implements the ComponentDidMount interface.

func (ClickCounter) GetInitialState

func (c ClickCounter) GetInitialState() gr.State

GetInitialState implements the StateInitializer interface.

func (ClickCounter) Render

func (c ClickCounter) Render() gr.Component

Render implements the Renderer interface.

func (ClickCounter) ShouldComponentUpdate

func (c ClickCounter) ShouldComponentUpdate(
	nextProps gr.Props, nextState gr.State) bool

ShouldComponentUpdate implements the ShouldComponentUpdate interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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