Help us shape the future of Go! Take the 2026 Go Developer Survey

layout

package module
v0.0.0-...-dc531fb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2017 License: MIT Imports: 6 Imported by: 1

README

layout

material design lite layout component for vecty and gopherjs

Documentation

Index

Constants

View Source
const (
	SmallScreenOnly = "mdl-layout--small-screen-only"
	LargeScreenOnly = "mdl-layout--large-screen-only"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawer

type Drawer struct {
	vecty.Core
	Title *Title
	Nav   *Nav
}

func (*Drawer) Render

func (d *Drawer) Render() *vecty.HTML
type Header struct {
	vecty.Core
	Icon             *Icon
	Row              *HeaderRow
	Children         vecty.MarkupOrComponentOrHTML
	Scroll           bool
	Waterfall        bool
	WaterfallHideTop bool
	Transparent      bool
	Seamed           bool
	TabView          bool
	TabNav           *TabBar
	ManualTabSwitch  bool
}

func (*Header) Render

func (h *Header) Render() *vecty.HTML

type HeaderRow

type HeaderRow struct {
	vecty.Core
	Children  vecty.MarkupOrComponentOrHTML
	Title     *Title
	AddSpacer bool
	Nav       *Nav
}

func (*HeaderRow) Render

func (h *HeaderRow) Render() *vecty.HTML

type Icon

type Icon struct {
	vecty.Core
	Children vecty.MarkupOrComponentOrHTML
}

func (*Icon) Render

func (i *Icon) Render() *vecty.HTML

type Layout

type Layout struct {
	vecty.Core
	IsJS              bool
	Header            *Header
	Children          vecty.MarkupOrComponentOrHTML
	Content           vecty.MarkupOrComponentOrHTML
	FixedDrawer       bool
	FixedHeader       bool
	NoDrawerBtn       bool
	NoDestopDrawerBtn bool
	LargeScreenOnly   bool
	TabView           bool
	Panes             []*Panel

	Drawer *Drawer
	// contains filtered or unexported fields
}

func New

func New(tabview bool) *Layout

func (*Layout) Render

func (l *Layout) Render() *vecty.HTML

func (*Layout) Unmount

func (l *Layout) Unmount()
type Nav struct {
	vecty.Core
	Links    []*NavLink
	Children vecty.MarkupOrComponentOrHTML
}
func (n *Nav) Render() *vecty.HTML
type NavLink struct {
	vecty.Core
	Href     string
	Text     string
	Children vecty.MarkupOrComponentOrHTML
}
func (n *NavLink) Render() *vecty.HTML

type Panel

type Panel struct {
	vecty.Core
	ID       string
	Name     string
	IsActive bool
	Children vecty.MarkupOrComponentOrHTML
}

func (*Panel) Render

func (t *Panel) Render() *vecty.HTML

type TabBar

type TabBar struct {
	vecty.Core
	Links  []*TabLink
	Manual bool
}
type TabLink struct {
	vecty.Core
	ID       string
	IsActive bool
	Text     string
	Children vecty.MarkupOrComponentOrHTML
}

func (*TabLink) Render

func (t *TabLink) Render() *vecty.HTML

type TabNav

type TabNav struct {
	vecty.Core
	TabBar   *TabBar
	Tabs     []*Panel
	Children vecty.MarkupOrComponentOrHTML
}

type Title

type Title struct {
	vecty.Core
	Text     string
	Children vecty.MarkupOrComponentOrHTML
}

func (*Title) Render

func (t *Title) Render() *vecty.HTML

Jump to

Keyboard shortcuts

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