components

package
v0.0.0-...-ad0604f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MdcDialogActionNone    = "none"
	MdcDialogActionClose   = "close"
	MdcDialogActionOK      = "ok"
	MdcDialogActionCancel  = "cancel"
	MdcDialogActionAccept  = "accept"
	MdcDialogActionDiscard = "discard"
)

some common actions

Variables

This section is empty.

Functions

This section is empty.

Types

type Capsule

type Capsule struct {
	vecty.Core
	core.Keyable
	Label string `vecty:"prop"`
	Text  string `vecty:"prop"`
}

func (*Capsule) Copy

func (ch *Capsule) Copy() vecty.Component

func (*Capsule) Render

func (ch *Capsule) Render() vecty.ComponentOrHTML

func (*Capsule) WithKey

func (ch *Capsule) WithKey(key interface{}) *Capsule

type KeyValueTable

type KeyValueTable struct {
	vecty.Core
	core.Classes
	core.Keyable
	// contains filtered or unexported fields
}

func NewKeyValueTable

func NewKeyValueTable(buildFn func(builder KeyValueTableBuilder)) (r *KeyValueTable)

func (*KeyValueTable) Copy

func (ch *KeyValueTable) Copy() vecty.Component

func (*KeyValueTable) Render

func (ch *KeyValueTable) Render() vecty.ComponentOrHTML

func (*KeyValueTable) WithClasses

func (ch *KeyValueTable) WithClasses(classes ...string) *KeyValueTable

func (*KeyValueTable) WithKey

func (ch *KeyValueTable) WithKey(key interface{}) *KeyValueTable

type KeyValueTableBuilder

type KeyValueTableBuilder interface {
	AddDelimiterRow()
	AddKeyValueRow(key, value string)
	AddMarkupKeyValueRow(key, value vecty.MarkupOrChild)
}

type MdcBanner

type MdcBanner struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID         string                `vecty:"prop"`
	ButtonText string                `vecty:"prop"`
	Content    []vecty.MarkupOrChild `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewMdcBanner

func NewMdcBanner(id, buttonText string, fullWidth bool, clickFn func(), content ...vecty.MarkupOrChild) (r *MdcBanner)

func (*MdcBanner) Copy

func (ch *MdcBanner) Copy() vecty.Component

func (*MdcBanner) Mount

func (ch *MdcBanner) Mount()

func (*MdcBanner) Render

func (ch *MdcBanner) Render() vecty.ComponentOrHTML

func (*MdcBanner) Unmount

func (ch *MdcBanner) Unmount()

func (*MdcBanner) WithClasses

func (ch *MdcBanner) WithClasses(classes ...string) *MdcBanner

func (*MdcBanner) WithKey

func (ch *MdcBanner) WithKey(key interface{}) *MdcBanner

type MdcButton

type MdcButton struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID       string `vecty:"prop"`
	Text     string `vecty:"prop"`
	Disabled bool   `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewMdcButton

func NewMdcButton(id string, text string, disabled bool, clickFn func()) (r *MdcButton)

func (*MdcButton) Copy

func (ch *MdcButton) Copy() vecty.Component

func (*MdcButton) Render

func (ch *MdcButton) Render() vecty.ComponentOrHTML

func (*MdcButton) WithClasses

func (ch *MdcButton) WithClasses(classes ...string) *MdcButton

func (*MdcButton) WithKey

func (ch *MdcButton) WithKey(key interface{}) *MdcButton

type MdcCheckbox

type MdcCheckbox struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID       string `vecty:"prop"`
	Label    string `vecty:"prop"`
	Checked  bool   `vecty:"prop"`
	Disabled bool   `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewMdcCheckbox

func NewMdcCheckbox(id string, label string, checked, disabled bool, changeFn func(checked, disabled bool)) (r *MdcCheckbox)

func (*MdcCheckbox) Copy

func (ch *MdcCheckbox) Copy() vecty.Component

func (*MdcCheckbox) Mount

func (ch *MdcCheckbox) Mount()

func (*MdcCheckbox) Render

func (ch *MdcCheckbox) Render() vecty.ComponentOrHTML

func (*MdcCheckbox) Unmount

func (ch *MdcCheckbox) Unmount()

func (*MdcCheckbox) WithClasses

func (ch *MdcCheckbox) WithClasses(classes ...string) *MdcCheckbox

func (*MdcCheckbox) WithKey

func (ch *MdcCheckbox) WithKey(key interface{}) *MdcCheckbox

type MdcDialog

type MdcDialog struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID          string
	Title       string
	FullScreen  bool
	CloseButton bool
	Buttons     []MdcDialogButton `vecty:"prop"`
	Content     vecty.List        `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewMdcDialog

func NewMdcDialog(id, title string, fullScreen, closeButton bool, closeFn func(action string, data interface{}), closeData interface{}, buttons []MdcDialogButton, content ...vecty.ComponentOrHTML) (r *MdcDialog)

func (*MdcDialog) Copy

func (ch *MdcDialog) Copy() vecty.Component

func (*MdcDialog) Mount

func (ch *MdcDialog) Mount()

func (*MdcDialog) Render

func (ch *MdcDialog) Render() vecty.ComponentOrHTML

func (*MdcDialog) RenderButtons

func (ch *MdcDialog) RenderButtons() vecty.ComponentOrHTML

func (*MdcDialog) RenderHeader

func (ch *MdcDialog) RenderHeader(labelID string) vecty.ComponentOrHTML

func (*MdcDialog) Unmount

func (ch *MdcDialog) Unmount()

func (*MdcDialog) WithClasses

func (ch *MdcDialog) WithClasses(classes ...string) *MdcDialog

func (*MdcDialog) WithKey

func (ch *MdcDialog) WithKey(key interface{}) *MdcDialog

type MdcDialogButton

type MdcDialogButton struct {
	Label    string `vecty:"prop"`
	Action   string `vecty:"prop"`
	Disabled bool   `vecty:"prop"`
	Default  bool   `vecty:"prop"`
}

type MdcFormField

type MdcFormField struct {
	vecty.Core
	core.Classes
	core.Keyable
	Content vecty.List `vecty:"prop"`
}

func NewMdcFormField

func NewMdcFormField(content ...vecty.ComponentOrHTML) (r *MdcFormField)

func (*MdcFormField) Copy

func (ch *MdcFormField) Copy() vecty.Component

func (*MdcFormField) Render

func (ch *MdcFormField) Render() vecty.ComponentOrHTML

func (*MdcFormField) WithClasses

func (ch *MdcFormField) WithClasses(classes ...string) *MdcFormField

func (*MdcFormField) WithKey

func (ch *MdcFormField) WithKey(key interface{}) *MdcFormField

type MdcGrid

type MdcGrid struct {
	vecty.Core
	core.Classes
	Rows vecty.List `vecty:"prop"`
}

func NewMdcGrid

func NewMdcGrid(rows ...vecty.ComponentOrHTML) *MdcGrid

func (*MdcGrid) Copy

func (ch *MdcGrid) Copy() vecty.Component

func (*MdcGrid) Render

func (ch *MdcGrid) Render() vecty.ComponentOrHTML

func (*MdcGrid) WithClasses

func (ch *MdcGrid) WithClasses(classes ...string) *MdcGrid

type MdcGridCell

type MdcGridCell struct {
	vecty.Core
	core.Classes
	Content vecty.List `vecty:"prop"`
}

func NewMdcGridCell

func NewMdcGridCell(content ...vecty.ComponentOrHTML) *MdcGridCell

func (*MdcGridCell) Copy

func (ch *MdcGridCell) Copy() vecty.Component

func (*MdcGridCell) Render

func (ch *MdcGridCell) Render() vecty.ComponentOrHTML

func (*MdcGridCell) WithClasses

func (ch *MdcGridCell) WithClasses(classes ...string) vecty.Component

type MdcGridRow

type MdcGridRow struct {
	vecty.Core
	core.Classes
	Cells vecty.List `vecty:"prop"`
}

func NewMdcGridRow

func NewMdcGridRow(cells ...vecty.ComponentOrHTML) *MdcGridRow

func NewMdcGridSingleCellRow

func NewMdcGridSingleCellRow(context ...vecty.ComponentOrHTML) *MdcGridRow

func (*MdcGridRow) Copy

func (ch *MdcGridRow) Copy() vecty.Component

func (*MdcGridRow) Render

func (ch *MdcGridRow) Render() vecty.ComponentOrHTML

func (*MdcGridRow) WithClasses

func (ch *MdcGridRow) WithClasses(classes ...string) vecty.Component

type MdcIconButton

type MdcIconButton struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID       string `vecty:"prop"`
	Icon     string `vecty:"prop"`
	IconOn   string `vecty:"prop"`
	Text     string `vecty:"prop"`
	Disabled bool   `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewMdcIconButton

func NewMdcIconButton(id, text, icon, iconOn string, disabled bool, clickFn func()) (r *MdcIconButton)

func (*MdcIconButton) Copy

func (ch *MdcIconButton) Copy() vecty.Component

func (*MdcIconButton) Render

func (ch *MdcIconButton) Render() vecty.ComponentOrHTML

func (*MdcIconButton) WithClasses

func (ch *MdcIconButton) WithClasses(classes ...string) *MdcIconButton

func (*MdcIconButton) WithKey

func (ch *MdcIconButton) WithKey(key interface{}) *MdcIconButton

type MdcRadioButton

type MdcRadioButton struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID       string `vecty:"prop"`
	Label    string `vecty:"prop"`
	Name     string `vecty:"prop"`
	Value    string `vecty:"prop"`
	Checked  bool   `vecty:"prop"`
	Disabled bool   `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewMdcRadioButton

func NewMdcRadioButton(id, label, name, value string, checked, disabled bool, changeFn func()) (r *MdcRadioButton)

func (*MdcRadioButton) Copy

func (ch *MdcRadioButton) Copy() vecty.Component

func (*MdcRadioButton) Render

func (ch *MdcRadioButton) Render() vecty.ComponentOrHTML

func (*MdcRadioButton) WithClasses

func (ch *MdcRadioButton) WithClasses(classes ...string) *MdcRadioButton

func (*MdcRadioButton) WithKey

func (ch *MdcRadioButton) WithKey(key interface{}) *MdcRadioButton

type MdcSelect

type MdcSelect struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID       string
	Label    string
	Disabled bool
	Options  vecty.List
	// contains filtered or unexported fields
}

func NewMdcSelect

func NewMdcSelect(id, label string, disabled bool, changeFn func(value string, index int), options ...vecty.ComponentOrHTML) (r *MdcSelect)

func (*MdcSelect) Copy

func (ch *MdcSelect) Copy() vecty.Component

func (*MdcSelect) Mount

func (ch *MdcSelect) Mount()

func (*MdcSelect) Render

func (ch *MdcSelect) Render() vecty.ComponentOrHTML

func (*MdcSelect) Unmount

func (ch *MdcSelect) Unmount()

func (*MdcSelect) WithClasses

func (ch *MdcSelect) WithClasses(classes ...string) *MdcSelect

func (*MdcSelect) WithKey

func (ch *MdcSelect) WithKey(key interface{}) *MdcSelect

type MdcSelectOption

type MdcSelectOption struct {
	vecty.Core
	Name     string
	Value    string
	Selected bool
	Disabled bool
}

func (*MdcSelectOption) Copy

func (ch *MdcSelectOption) Copy() vecty.Component

func (*MdcSelectOption) Render

func (ch *MdcSelectOption) Render() vecty.ComponentOrHTML

type MdcTab

type MdcTab struct {
	vecty.Core
	Text   string `vecty:"prop"`
	Active bool   `vecty:"prop"`
}

func NewMdcTab

func NewMdcTab(text string, active bool) (r *MdcTab)

func (*MdcTab) Copy

func (ch *MdcTab) Copy() vecty.Component

func (*MdcTab) Render

func (ch *MdcTab) Render() vecty.ComponentOrHTML

type MdcTabBar

type MdcTabBar struct {
	vecty.Core
	ID          string     `vecty:"prop"`
	Tabs        vecty.List `vecty:"prop"`
	ActivatedFn func(tabIndex int)
	// contains filtered or unexported fields
}

func NewMdcTabBar

func NewMdcTabBar(id string, activatedFn func(tabIndex int), tabs ...vecty.ComponentOrHTML) (r *MdcTabBar)

func (*MdcTabBar) ActivateTab

func (ch *MdcTabBar) ActivateTab(tabIndex int)

func (*MdcTabBar) Copy

func (ch *MdcTabBar) Copy() vecty.Component

func (*MdcTabBar) Mount

func (ch *MdcTabBar) Mount()

func (*MdcTabBar) Render

func (ch *MdcTabBar) Render() vecty.ComponentOrHTML

func (*MdcTabBar) Unmount

func (ch *MdcTabBar) Unmount()

type MdcTextField

type MdcTextField struct {
	vecty.Core
	core.Classes
	core.Keyable
	ID       string `vecty:"prop"`
	Label    string `vecty:"prop"`
	Value    string `vecty:"prop"`
	Disabled bool   `vecty:"prop"`
	Invalid  bool   `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewMdcTextField

func NewMdcTextField(id, label, value string, disabled bool, invalid bool, changeFn func(value string), inputAtributes ...vecty.Applyer) (r *MdcTextField)

func (*MdcTextField) Copy

func (ch *MdcTextField) Copy() vecty.Component

func (*MdcTextField) Mount

func (ch *MdcTextField) Mount()

func (*MdcTextField) Render

func (ch *MdcTextField) Render() vecty.ComponentOrHTML

func (*MdcTextField) Unmount

func (ch *MdcTextField) Unmount()

func (*MdcTextField) WithClasses

func (ch *MdcTextField) WithClasses(classes ...string) *MdcTextField

func (*MdcTextField) WithKey

func (ch *MdcTextField) WithKey(key interface{}) *MdcTextField

type PillBox

type PillBox struct {
	vecty.Core
	core.Classes
	core.Keyable
	Content []vecty.MarkupOrChild `vecty:"prop"`
}

func NewPillBox

func NewPillBox(content ...vecty.MarkupOrChild) *PillBox

func (*PillBox) Copy

func (ch *PillBox) Copy() vecty.Component

func (*PillBox) Render

func (ch *PillBox) Render() vecty.ComponentOrHTML

func (*PillBox) WithClasses

func (ch *PillBox) WithClasses(classes ...string) *PillBox

func (*PillBox) WithKey

func (ch *PillBox) WithKey(key interface{}) *PillBox

type SectionTitle

type SectionTitle struct {
	vecty.Core
	Text string `vecty:"prop"`
}

func (*SectionTitle) Copy

func (ch *SectionTitle) Copy() vecty.Component

func (*SectionTitle) Render

func (ch *SectionTitle) Render() vecty.ComponentOrHTML

type Title

type Title struct {
	vecty.Core
}

func (*Title) Copy

func (ch *Title) Copy() vecty.Component

func (*Title) Render

func (ch *Title) Render() vecty.ComponentOrHTML

type ViewLoading

type ViewLoading struct {
	vecty.Core
}

func (*ViewLoading) Copy

func (ch *ViewLoading) Copy() vecty.Component

func (*ViewLoading) Render

func (ch *ViewLoading) Render() vecty.ComponentOrHTML

Jump to

Keyboard shortcuts

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