tab

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package tab is the implementation of mdc-tab-bar.

https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-bar

Index

Constants

API is the auto init data value for this component.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	app.Compo
	base.JsUtil
	autoinit.AutoInit
	Id   string
	Tabs Tabs
	// contains filtered or unexported fields
}

Bar is the mdc-tab-bar component containing the Tabs.

func (*Bar) OnMount

func (b *Bar) OnMount(ctx app.Context)

func (*Bar) Render

func (b *Bar) Render() app.UI

type EventType added in v0.2.4

type EventType string
const Activate EventType = "MDCTabBar:activate"
const Activated EventType = "MDCTabBar:activated"

type Tab

type Tab struct {
	app.Compo
	Index  int
	Active bool
	Label  string
	Icon   icon.MaterialIcon
}

func (*Tab) Render

func (t *Tab) Render() app.UI

type Tabs added in v0.2.4

type Tabs []*Tab

func (Tabs) Select added in v0.2.4

func (ts Tabs) Select(index int)

func (Tabs) UIList added in v0.2.4

func (ts Tabs) UIList() (body []app.UI)

Jump to

Keyboard shortcuts

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