Documentation ¶
Index ¶
- Constants
- type Capsule
- type KeyValueTable
- type KeyValueTableBuilder
- type MdcBanner
- type MdcButton
- type MdcCheckbox
- type MdcDialog
- func (ch *MdcDialog) Copy() vecty.Component
- func (ch *MdcDialog) Mount()
- func (ch *MdcDialog) Render() vecty.ComponentOrHTML
- func (ch *MdcDialog) RenderButtons() vecty.ComponentOrHTML
- func (ch *MdcDialog) RenderHeader(labelID string) vecty.ComponentOrHTML
- func (ch *MdcDialog) Unmount()
- func (ch *MdcDialog) WithClasses(classes ...string) *MdcDialog
- func (ch *MdcDialog) WithKey(key interface{}) *MdcDialog
- type MdcDialogButton
- type MdcFormField
- type MdcGrid
- type MdcGridCell
- type MdcGridRow
- type MdcIconButton
- type MdcRadioButton
- type MdcSelect
- type MdcSelectOption
- type MdcTab
- type MdcTabBar
- type MdcTextField
- type PillBox
- type SectionTitle
- type Title
- type ViewLoading
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) Render ¶
func (ch *Capsule) Render() vecty.ComponentOrHTML
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) Render ¶
func (ch *MdcBanner) Render() vecty.ComponentOrHTML
func (*MdcBanner) WithClasses ¶
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 (*MdcButton) Render ¶
func (ch *MdcButton) Render() vecty.ComponentOrHTML
func (*MdcButton) WithClasses ¶
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) 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) WithClasses ¶
type MdcDialogButton ¶
type MdcFormField ¶
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 ¶
func NewMdcGrid ¶
func NewMdcGrid(rows ...vecty.ComponentOrHTML) *MdcGrid
func (*MdcGrid) Render ¶
func (ch *MdcGrid) Render() vecty.ComponentOrHTML
func (*MdcGrid) WithClasses ¶
type MdcGridCell ¶
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 ¶
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 (*MdcSelect) Render ¶
func (ch *MdcSelect) Render() vecty.ComponentOrHTML
func (*MdcSelect) WithClasses ¶
type MdcSelectOption ¶
func (*MdcSelectOption) Copy ¶
func (ch *MdcSelectOption) Copy() vecty.Component
func (*MdcSelectOption) Render ¶
func (ch *MdcSelectOption) 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 (*MdcTabBar) Render ¶
func (ch *MdcTabBar) Render() vecty.ComponentOrHTML
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 (*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) Render ¶
func (ch *PillBox) Render() vecty.ComponentOrHTML
func (*PillBox) WithClasses ¶
type SectionTitle ¶
func (*SectionTitle) Copy ¶
func (ch *SectionTitle) Copy() vecty.Component
func (*SectionTitle) Render ¶
func (ch *SectionTitle) Render() vecty.ComponentOrHTML
type ViewLoading ¶
func (*ViewLoading) Copy ¶
func (ch *ViewLoading) Copy() vecty.Component
func (*ViewLoading) Render ¶
func (ch *ViewLoading) Render() vecty.ComponentOrHTML
Source Files ¶
- component_banner.go
- component_button.go
- component_capsule.go
- component_checkbox.go
- component_dialog.go
- component_formfield.go
- component_grid.go
- component_iconbutton.go
- component_keyvalue_table.go
- component_pillbox.go
- component_radiobutton.go
- component_sectiontitle.go
- component_select.go
- component_tab.go
- component_textfield.go
- component_title.go
- component_viewloading.go
Click to show internal directories.
Click to hide internal directories.