package
0.0.0-20180612134603-5a689ece0d3e
Repository: https://github.com/mjkwoolnough/gopherjs.git
Documentation: pkg.go.dev

# README

tabs

-- import "github.com/MJKWoolnough/gopherjs/tabs"

Package tabs implements a simple tab interface for HTML documents

Usage

func New

func New(t []Tab) dom.Node

New takes a list of tabs and generates a tabbed interface, which is return as a document fragment

type Tab

type Tab struct {
	// The name of the Tab
	Name string
	// Func to run when the tab is selected
	Func func(dom.Element)
}

Tab represents a tab in a menu