components

package
v0.0.0-...-d2ad1d7 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

func NewButton

func NewButton() *Button

func NewSubmit

func NewSubmit() *Button

func (*Button) IsDisabled

func (view *Button) IsDisabled() bool

func (*Button) Render

func (view *Button) Render(args ...interface{}) (string, error)

func (*Button) SetAccentColored

func (view *Button) SetAccentColored(b bool) *Button

func (*Button) SetColored

func (view *Button) SetColored(b bool) *Button

func (*Button) SetConfirmDialogId

func (view *Button) SetConfirmDialogId(b string) *Button

func (*Button) SetDisabled

func (view *Button) SetDisabled(b bool) *Button

func (*Button) SetFormId

func (view *Button) SetFormId(b string) *Button

func (*Button) SetIcon

func (view *Button) SetIcon(b string) *Button
func (view *Button) SetLink(b string) *Button

func (*Button) SetMiniRounded

func (view *Button) SetMiniRounded(b string) *Button

func (*Button) SetRaised

func (view *Button) SetRaised(b bool) *Button

func (*Button) SetRipple

func (view *Button) SetRipple(b bool) *Button

func (*Button) SetRounded

func (view *Button) SetRounded(b string) *Button

func (*Button) SetTarget

func (view *Button) SetTarget(b string) *Button

type CheckIcon

type CheckIcon struct {
	mgc.ViewComponent
	base.Node
	base.NodeWithOption
	InputClasses base.ClassList
	InputAttr    base.AttrList
	Icon         string
}

func NewCheckIcon

func NewCheckIcon() *CheckIcon

func (*CheckIcon) GetIcon

func (i *CheckIcon) GetIcon() string

func (*CheckIcon) GetId

func (view *CheckIcon) GetId() string

func (*CheckIcon) GetLabel

func (view *CheckIcon) GetLabel() interface{}

func (*CheckIcon) GetName

func (view *CheckIcon) GetName() string

func (*CheckIcon) GetValue

func (view *CheckIcon) GetValue() string

func (*CheckIcon) IsChecked

func (view *CheckIcon) IsChecked() bool

func (*CheckIcon) Render

func (view *CheckIcon) Render(args ...interface{}) (string, error)

func (*CheckIcon) SetChecked

func (view *CheckIcon) SetChecked(b bool)

func (*CheckIcon) SetDisabled

func (view *CheckIcon) SetDisabled(b bool)

func (*CheckIcon) SetIcon

func (i *CheckIcon) SetIcon(s string)

func (*CheckIcon) SetId

func (view *CheckIcon) SetId(b string)

func (*CheckIcon) SetLabel

func (view *CheckIcon) SetLabel(b interface{})

func (*CheckIcon) SetName

func (view *CheckIcon) SetName(b string)

func (*CheckIcon) SetRipple

func (view *CheckIcon) SetRipple(b bool)

func (*CheckIcon) SetValue

func (view *CheckIcon) SetValue(b string)

type Checkbox

type Checkbox struct {
	mgc.ViewComponent
	base.Node
	base.NodeType
	base.NodeWithOption
	InputClasses base.ClassList
	InputAttr    base.AttrList
}

func NewCheckbox

func NewCheckbox() *Checkbox

func NewRadio

func NewRadio() *Checkbox

func NewSwitch

func NewSwitch() *Checkbox

func (*Checkbox) GetId

func (view *Checkbox) GetId() string

func (*Checkbox) GetLabel

func (view *Checkbox) GetLabel() interface{}

func (*Checkbox) GetName

func (view *Checkbox) GetName() string

func (*Checkbox) GetValue

func (view *Checkbox) GetValue() string

func (*Checkbox) IsChecked

func (view *Checkbox) IsChecked() bool

func (*Checkbox) Render

func (view *Checkbox) Render(args ...interface{}) (string, error)

func (*Checkbox) SetChecked

func (view *Checkbox) SetChecked(b bool)

func (*Checkbox) SetDisabled

func (view *Checkbox) SetDisabled(b bool)

func (*Checkbox) SetId

func (view *Checkbox) SetId(b string)

func (*Checkbox) SetLabel

func (view *Checkbox) SetLabel(b interface{})

func (*Checkbox) SetName

func (view *Checkbox) SetName(b string)

func (*Checkbox) SetRipple

func (view *Checkbox) SetRipple(b bool)

func (*Checkbox) SetValue

func (view *Checkbox) SetValue(b string)

type CheckboxSlice

func NewCheckboxSlice

func NewCheckboxSlice() *CheckboxSlice

func NewRadioSlice

func NewRadioSlice() *CheckboxSlice

func (*CheckboxSlice) GetItem

func (view *CheckboxSlice) GetItem(index int, option base.NodeOption) *Checkbox

func (*CheckboxSlice) GetItemBlock

func (i *CheckboxSlice) GetItemBlock() string

func (*CheckboxSlice) Render

func (view *CheckboxSlice) Render(args ...interface{}) (string, error)

func (*CheckboxSlice) RenderItem

func (view *CheckboxSlice) RenderItem(index int, option base.NodeOption, args ...interface{}) (string, error)

func (*CheckboxSlice) SetDisabled

func (view *CheckboxSlice) SetDisabled(b bool)

func (*CheckboxSlice) SetErrors

func (view *CheckboxSlice) SetErrors(p base.ErrorProvider)

func (*CheckboxSlice) SetItemBlock

func (i *CheckboxSlice) SetItemBlock(s string)

func (*CheckboxSlice) SetRipple

func (view *CheckboxSlice) SetRipple(b bool)

func (*CheckboxSlice) SetValue

func (view *CheckboxSlice) SetValue(s string)

type Checker

type Checker interface {
	IsChecked() bool
	SetChecked(b bool)
}

type ChipAutocomplete

type ChipAutocomplete struct {
	mgc.ViewComponent

	base.Node
	base.NodeWithOptions

	ResultsAttr    base.AttrList
	ResultsClasses base.ClassList

	SelectAttr    base.AttrList
	SelectClasses base.ClassList

	Input *Input
}

func NewChipAutocomplete

func NewChipAutocomplete() *ChipAutocomplete

func (*ChipAutocomplete) GetError

func (c *ChipAutocomplete) GetError() interface{}

func (*ChipAutocomplete) GetLabel

func (c *ChipAutocomplete) GetLabel() interface{}

func (*ChipAutocomplete) GetName

func (c *ChipAutocomplete) GetName() string

func (*ChipAutocomplete) GetOptionValueName

func (c *ChipAutocomplete) GetOptionValueName() string

func (*ChipAutocomplete) GetUnreachableRemoteTxt

func (c *ChipAutocomplete) GetUnreachableRemoteTxt() string

func (*ChipAutocomplete) GetUrlCompleter

func (c *ChipAutocomplete) GetUrlCompleter() string

func (*ChipAutocomplete) GetUrlCompleterArgs

func (c *ChipAutocomplete) GetUrlCompleterArgs() string

func (*ChipAutocomplete) GetUrlCreator

func (c *ChipAutocomplete) GetUrlCreator() string

func (*ChipAutocomplete) GetUrlCreatorArgs

func (c *ChipAutocomplete) GetUrlCreatorArgs() string

func (*ChipAutocomplete) GetUrlPlaceholder

func (c *ChipAutocomplete) GetUrlPlaceholder() string

func (*ChipAutocomplete) IsPlaceHolderOnly

func (c *ChipAutocomplete) IsPlaceHolderOnly() bool

func (*ChipAutocomplete) Render

func (view *ChipAutocomplete) Render(args ...interface{}) (string, error)

func (*ChipAutocomplete) SetEncodedUrlCompleterArgs

func (c *ChipAutocomplete) SetEncodedUrlCompleterArgs(b interface{}) error

func (*ChipAutocomplete) SetEncodedUrlCreatorArgs

func (c *ChipAutocomplete) SetEncodedUrlCreatorArgs(b interface{}) error

func (*ChipAutocomplete) SetError

func (c *ChipAutocomplete) SetError(s interface{})

func (*ChipAutocomplete) SetErrors

func (view *ChipAutocomplete) SetErrors(p base.ErrorProvider)

func (*ChipAutocomplete) SetLabel

func (c *ChipAutocomplete) SetLabel(s interface{})

func (*ChipAutocomplete) SetName

func (c *ChipAutocomplete) SetName(b string)

func (*ChipAutocomplete) SetOptionValueName

func (c *ChipAutocomplete) SetOptionValueName(b string)

func (*ChipAutocomplete) SetPlaceHolderOnly

func (c *ChipAutocomplete) SetPlaceHolderOnly(b bool)

func (*ChipAutocomplete) SetSafeLabel

func (c *ChipAutocomplete) SetSafeLabel(s string)

func (*ChipAutocomplete) SetUnreachableRemoteTxt

func (c *ChipAutocomplete) SetUnreachableRemoteTxt(b string)

func (*ChipAutocomplete) SetUrlCompleter

func (c *ChipAutocomplete) SetUrlCompleter(b string)

func (*ChipAutocomplete) SetUrlCompleterArgs

func (c *ChipAutocomplete) SetUrlCompleterArgs(b string)

func (*ChipAutocomplete) SetUrlCreator

func (c *ChipAutocomplete) SetUrlCreator(b string)

func (*ChipAutocomplete) SetUrlCreatorArgs

func (c *ChipAutocomplete) SetUrlCreatorArgs(b string)

func (*ChipAutocomplete) SetUrlPlaceholder

func (c *ChipAutocomplete) SetUrlPlaceholder(b string)

func (*ChipAutocomplete) Translate

func (view *ChipAutocomplete) Translate(t base.Translator)

type ComponentWithAComponentsSlice

type ComponentWithAComponentsSlice struct {
	Components *base.ComponentsSlice
}

func NewComponentWithAComponentsSlice

func NewComponentWithAComponentsSlice() *ComponentWithAComponentsSlice

func (*ComponentWithAComponentsSlice) AddCheckboxSlice

func (view *ComponentWithAComponentsSlice) AddCheckboxSlice(name string) *CheckboxSlice

func (*ComponentWithAComponentsSlice) AddChipAutocomplete

func (view *ComponentWithAComponentsSlice) AddChipAutocomplete(name string) *ChipAutocomplete

func (*ComponentWithAComponentsSlice) AddComponent

func (view *ComponentWithAComponentsSlice) AddComponent(some mgc.ViewComponentRenderer)

func (*ComponentWithAComponentsSlice) AddCropper

func (view *ComponentWithAComponentsSlice) AddCropper(name string) *Cropper

func (*ComponentWithAComponentsSlice) AddDate

func (view *ComponentWithAComponentsSlice) AddDate(name string) *InputDate

func (*ComponentWithAComponentsSlice) AddFile

func (view *ComponentWithAComponentsSlice) AddFile(name string) *InputFile

func (*ComponentWithAComponentsSlice) AddHidden

func (view *ComponentWithAComponentsSlice) AddHidden(name string) *Input

func (*ComponentWithAComponentsSlice) AddHiddenSlice

func (view *ComponentWithAComponentsSlice) AddHiddenSlice(name string) *InputSlice

func (*ComponentWithAComponentsSlice) AddInputConfirm

func (view *ComponentWithAComponentsSlice) AddInputConfirm(name string) *InputConfirm

func (*ComponentWithAComponentsSlice) AddPassword

func (view *ComponentWithAComponentsSlice) AddPassword(name string) *Input

func (*ComponentWithAComponentsSlice) AddRadioSlice

func (view *ComponentWithAComponentsSlice) AddRadioSlice(name string) *CheckboxSlice

func (*ComponentWithAComponentsSlice) AddSelect

func (view *ComponentWithAComponentsSlice) AddSelect(name string) *Select

func (*ComponentWithAComponentsSlice) AddSubmit

func (view *ComponentWithAComponentsSlice) AddSubmit(name string) *Button

func (*ComponentWithAComponentsSlice) AddText

func (view *ComponentWithAComponentsSlice) AddText(name string) *Input

func (*ComponentWithAComponentsSlice) AddTextSlice

func (view *ComponentWithAComponentsSlice) AddTextSlice(name string) *InputSlice

func (*ComponentWithAComponentsSlice) AddTextarea

func (view *ComponentWithAComponentsSlice) AddTextarea(name string) *Textarea

func (*ComponentWithAComponentsSlice) AddWysiwyg

func (view *ComponentWithAComponentsSlice) AddWysiwyg(name string) *Textarea

func (*ComponentWithAComponentsSlice) GetButton

func (view *ComponentWithAComponentsSlice) GetButton(name string) *Button

func (*ComponentWithAComponentsSlice) GetChipAutocomplete

func (view *ComponentWithAComponentsSlice) GetChipAutocomplete(name string) *ChipAutocomplete

func (*ComponentWithAComponentsSlice) GetComponent

func (*ComponentWithAComponentsSlice) GetComponents

func (*ComponentWithAComponentsSlice) GetCropper

func (view *ComponentWithAComponentsSlice) GetCropper(name string) *Cropper

func (*ComponentWithAComponentsSlice) GetExpander

func (view *ComponentWithAComponentsSlice) GetExpander() *Expand

func (*ComponentWithAComponentsSlice) GetHidden

func (view *ComponentWithAComponentsSlice) GetHidden(name string) *Input

func (*ComponentWithAComponentsSlice) GetInputConfirm

func (view *ComponentWithAComponentsSlice) GetInputConfirm(name string) *InputConfirm

func (*ComponentWithAComponentsSlice) GetOptioner

func (view *ComponentWithAComponentsSlice) GetOptioner(name string) base.Optionner

func (*ComponentWithAComponentsSlice) GetPassword

func (view *ComponentWithAComponentsSlice) GetPassword(name string) *Input

func (*ComponentWithAComponentsSlice) GetSelect

func (view *ComponentWithAComponentsSlice) GetSelect(name string) *Select

func (*ComponentWithAComponentsSlice) GetSubmit

func (view *ComponentWithAComponentsSlice) GetSubmit(name string) *Button

func (*ComponentWithAComponentsSlice) GetText

func (view *ComponentWithAComponentsSlice) GetText(name string) *Input

func (*ComponentWithAComponentsSlice) GetValueDateSetter

func (view *ComponentWithAComponentsSlice) GetValueDateSetter(name string) base.ValueDateSetter

func (*ComponentWithAComponentsSlice) GetValueSetter

func (view *ComponentWithAComponentsSlice) GetValueSetter(name string) base.ValueSetter

func (*ComponentWithAComponentsSlice) GetValueSliceSetter

func (view *ComponentWithAComponentsSlice) GetValueSliceSetter(name string) base.ValueSliceSetter

type Cropper

type Cropper struct {
	mgc.ViewComponent

	base.Node
	CurrentImgAttr    base.AttrList
	CurrentImgClasses base.ClassList
	CurrentImg        string

	InputHidden *Input
	InputFile   *InputFile
	Dialog      *Dialog
}

func NewCropper

func NewCropper() *Cropper

func (*Cropper) GetAttachIcon

func (c *Cropper) GetAttachIcon() string

func (*Cropper) GetClearIcon

func (c *Cropper) GetClearIcon() string

func (*Cropper) GetCurrentImg

func (c *Cropper) GetCurrentImg() string

func (*Cropper) GetCurrentImgAttr

func (c *Cropper) GetCurrentImgAttr() template.HTMLAttr

func (*Cropper) GetError

func (c *Cropper) GetError() interface{}

func (*Cropper) GetLabel

func (c *Cropper) GetLabel() interface{}

func (*Cropper) GetName

func (c *Cropper) GetName() string

func (*Cropper) GetResultInputName

func (c *Cropper) GetResultInputName() string

func (*Cropper) GetResultMode

func (c *Cropper) GetResultMode() string

func (*Cropper) GetValue

func (c *Cropper) GetValue() string

func (*Cropper) IsPlaceHolderOnly

func (c *Cropper) IsPlaceHolderOnly() bool

func (*Cropper) Render

func (view *Cropper) Render(args ...interface{}) (string, error)

func (*Cropper) RoundedPreview

func (c *Cropper) RoundedPreview(b bool)

func (*Cropper) SetAspectRatio

func (c *Cropper) SetAspectRatio(b string)

func (*Cropper) SetAttachIcon

func (c *Cropper) SetAttachIcon(b string)

func (*Cropper) SetB64ExportHeight

func (c *Cropper) SetB64ExportHeight(b string)

func (*Cropper) SetB64ExportWidth

func (c *Cropper) SetB64ExportWidth(b string)

func (*Cropper) SetClearIcon

func (c *Cropper) SetClearIcon(b string)

func (*Cropper) SetCurrentImg

func (c *Cropper) SetCurrentImg(b string)

func (*Cropper) SetDialogCancelText

func (c *Cropper) SetDialogCancelText(b string, icon string)

func (*Cropper) SetDialogCloseText

func (c *Cropper) SetDialogCloseText(b string, icon string)

func (*Cropper) SetDialogOkText

func (c *Cropper) SetDialogOkText(b string, icon string)

func (*Cropper) SetDialogTitle

func (c *Cropper) SetDialogTitle(b string)

func (*Cropper) SetDragMode

func (c *Cropper) SetDragMode(b string)

func (*Cropper) SetError

func (c *Cropper) SetError(s interface{})

func (*Cropper) SetErrors

func (view *Cropper) SetErrors(p base.ErrorProvider)

func (*Cropper) SetInputTextName

func (view *Cropper) SetInputTextName(b string)

func (*Cropper) SetInputTextValue

func (view *Cropper) SetInputTextValue(b string)

func (*Cropper) SetLabel

func (c *Cropper) SetLabel(s interface{})

func (*Cropper) SetMovable

func (c *Cropper) SetMovable(b bool)

func (*Cropper) SetName

func (c *Cropper) SetName(b string)

func (*Cropper) SetPlaceHolderOnly

func (c *Cropper) SetPlaceHolderOnly(b bool)

func (*Cropper) SetResultInputName

func (c *Cropper) SetResultInputName(b string)

func (*Cropper) SetResultMode

func (c *Cropper) SetResultMode(b string)

func (*Cropper) SetRotatable

func (c *Cropper) SetRotatable(b bool)

func (*Cropper) SetSafeLabel

func (c *Cropper) SetSafeLabel(s string)

func (*Cropper) SetScalable

func (c *Cropper) SetScalable(b bool)

func (*Cropper) SetValue

func (c *Cropper) SetValue(b string)

func (*Cropper) Translate

func (view *Cropper) Translate(t base.Translator)

type DataTable

type DataTable struct {
	mgc.ViewComponent
	Headers []*DataTableHeader
	Rows    []*DataTableRow

	Classes         base.ClassList
	Attr            base.AttrList
	BaseUrl         *url.URL
	EnsureQueryArgs map[string]string
	SortParamName   string

	Empty mgc.ViewComponentRenderer

	SortIcon string
}

func NewDataTable

func NewDataTable() *DataTable

func (*DataTable) AddHeader

func (l *DataTable) AddHeader(name string, txt string) *DataTableHeader

func (*DataTable) AddRow

func (l *DataTable) AddRow() *DataTableRow

func (*DataTable) GetBtSelector

func (l *DataTable) GetBtSelector() string

func (*DataTable) GetHeader

func (l *DataTable) GetHeader(name string) *DataTableHeader

func (*DataTable) GetLinkIcon

func (l *DataTable) GetLinkIcon(name string) string

func (*DataTable) GetSortIcon

func (l *DataTable) GetSortIcon() string

func (*DataTable) IsHidePhone

func (l *DataTable) IsHidePhone(name string) bool

func (*DataTable) IsHideTablet

func (l *DataTable) IsHideTablet(name string) bool
func (l *DataTable) IsLink(name string) bool

func (*DataTable) IsNumeric

func (l *DataTable) IsNumeric(name string) bool

func (*DataTable) IsSelectable

func (l *DataTable) IsSelectable() bool

func (*DataTable) Render

func (view *DataTable) Render(args ...interface{}) (string, error)

func (*DataTable) SetBaseUrl

func (l *DataTable) SetBaseUrl(some *url.URL)

func (*DataTable) SetBtSelector

func (l *DataTable) SetBtSelector(some string)

func (*DataTable) SetEnsureArgs

func (l *DataTable) SetEnsureArgs(ensureQueryArgs map[string]string)

func (*DataTable) SetHeader

func (l *DataTable) SetHeader(name string, txt string) *DataTableHeader

func (*DataTable) SetSelectable

func (l *DataTable) SetSelectable(b bool) *DataTable

func (*DataTable) SetSortIcon

func (l *DataTable) SetSortIcon(icon string) *DataTable

func (*DataTable) SetSortParamName

func (l *DataTable) SetSortParamName(sortParamName string)

func (*DataTable) Translate

func (view *DataTable) Translate(t base.Translator)

type DataTableCell

type DataTableCell struct {
	Classes base.ClassList
	Attr    base.AttrList

	CellName string
	CellTxt  string
	LinkIcon string
}

func NewDataTableCell

func NewDataTableCell() *DataTableCell

func (*DataTableCell) GetCellName

func (l *DataTableCell) GetCellName() string

func (*DataTableCell) GetCellTxt

func (l *DataTableCell) GetCellTxt() string

func (*DataTableCell) GetLinkIcon

func (l *DataTableCell) GetLinkIcon() string

func (*DataTableCell) IsHidePhone

func (l *DataTableCell) IsHidePhone() bool

func (*DataTableCell) IsHideTablet

func (l *DataTableCell) IsHideTablet() bool

func (*DataTableCell) IsNumeric

func (l *DataTableCell) IsNumeric() bool

func (*DataTableCell) SetCellName

func (l *DataTableCell) SetCellName(b string) *DataTableCell

func (*DataTableCell) SetCellTxt

func (l *DataTableCell) SetCellTxt(b string) *DataTableCell

func (*DataTableCell) SetDate

func (l *DataTableCell) SetDate(value time.Time)

func (*DataTableCell) SetHidePhone

func (l *DataTableCell) SetHidePhone(b bool) *DataTableCell

func (*DataTableCell) SetHideTablet

func (l *DataTableCell) SetHideTablet(b bool) *DataTableCell

func (*DataTableCell) SetLinkIcon

func (l *DataTableCell) SetLinkIcon(icon string) *DataTableCell

func (*DataTableCell) SetNumeric

func (l *DataTableCell) SetNumeric(numeric bool) *DataTableCell

func (*DataTableCell) SetTime

func (l *DataTableCell) SetTime(value time.Time)

type DataTableHeader

type DataTableHeader struct {
	Classes base.ClassList
	Attr    base.AttrList

	BaseUrl         *url.URL
	SortParamName   string
	EnsureQueryArgs map[string]string

	CellName string
	CellTxt  string

	LinkIcon string
	SortDir  string
	SortIcon string
}

func (*DataTableHeader) GetCellName

func (l *DataTableHeader) GetCellName() string

func (*DataTableHeader) GetCellTxt

func (l *DataTableHeader) GetCellTxt() string

func (*DataTableHeader) GetLinkIcon

func (l *DataTableHeader) GetLinkIcon() string

func (*DataTableHeader) GetNextSortdir

func (l *DataTableHeader) GetNextSortdir() string

func (*DataTableHeader) GetSortHref

func (l *DataTableHeader) GetSortHref() string

func (*DataTableHeader) GetSortIcon

func (l *DataTableHeader) GetSortIcon() string

func (*DataTableHeader) GetSortdir

func (l *DataTableHeader) GetSortdir() string

func (*DataTableHeader) GuessSortdir

func (l *DataTableHeader) GuessSortdir() string

func (*DataTableHeader) IsHidePhone

func (l *DataTableHeader) IsHidePhone() bool

func (*DataTableHeader) IsHideTablet

func (l *DataTableHeader) IsHideTablet() bool

func (*DataTableHeader) IsNumeric

func (l *DataTableHeader) IsNumeric() bool

func (*DataTableHeader) IsSortable

func (l *DataTableHeader) IsSortable() bool

func (*DataTableHeader) SetBaseUrl

func (l *DataTableHeader) SetBaseUrl(some *url.URL)

func (*DataTableHeader) SetCellName

func (l *DataTableHeader) SetCellName(b string) *DataTableHeader

func (*DataTableHeader) SetCellTxt

func (l *DataTableHeader) SetCellTxt(b string) *DataTableHeader

func (*DataTableHeader) SetEnsureArgs

func (l *DataTableHeader) SetEnsureArgs(ensureQueryArgs map[string]string)

func (*DataTableHeader) SetHidePhone

func (l *DataTableHeader) SetHidePhone(b bool) *DataTableHeader

func (*DataTableHeader) SetHideTablet

func (l *DataTableHeader) SetHideTablet(b bool) *DataTableHeader

func (*DataTableHeader) SetLinkIcon

func (l *DataTableHeader) SetLinkIcon(icon string) *DataTableHeader

func (*DataTableHeader) SetNumeric

func (l *DataTableHeader) SetNumeric(numeric bool) *DataTableHeader

func (*DataTableHeader) SetSortIcon

func (l *DataTableHeader) SetSortIcon(icon string) *DataTableHeader

func (*DataTableHeader) SetSortParamName

func (l *DataTableHeader) SetSortParamName(sortParamName string)

func (*DataTableHeader) SetSortable

func (l *DataTableHeader) SetSortable(sortable bool) *DataTableHeader

func (*DataTableHeader) SetSortdir

func (l *DataTableHeader) SetSortdir(s string) *DataTableHeader

func (*DataTableHeader) Translate

func (view *DataTableHeader) Translate(t base.Translator)

type DataTableRow

type DataTableRow struct {
	Classes base.ClassList
	Attr    base.AttrList

	base.NodeSingleValue
	Cells []*DataTableCell
}

func (*DataTableRow) GetCell

func (l *DataTableRow) GetCell(name string) *DataTableCell

func (*DataTableRow) GetName

func (l *DataTableRow) GetName() string

func (*DataTableRow) SetCell

func (l *DataTableRow) SetCell(name string, value string) *DataTableRow

func (*DataTableRow) SetCellDate

func (l *DataTableRow) SetCellDate(name string, value time.Time) *DataTableRow

func (*DataTableRow) SetCellInt64

func (l *DataTableRow) SetCellInt64(name string, value int64) *DataTableRow

func (*DataTableRow) SetName

func (l *DataTableRow) SetName(name string) *DataTableRow

type Dialog

type Dialog struct {
	mgc.ViewComponent
	base.Node

	Title            string
	BgClasses        base.ClassList
	ContainerClasses base.ClassList

	Content mgc.ViewComponentRenderer
	Ok      *Button
	Cancel  *Button
	Close   *Button
}

func NewDialog

func NewDialog() *Dialog

func (*Dialog) GetTitle

func (view *Dialog) GetTitle() string

func (*Dialog) Render

func (view *Dialog) Render(args ...interface{}) (string, error)

func (*Dialog) SetBgContainerColor

func (view *Dialog) SetBgContainerColor(colorname string)

func (*Dialog) SetCancelAttr

func (view *Dialog) SetCancelAttr(t string, v string)

func (*Dialog) SetCancelText

func (view *Dialog) SetCancelText(t string, icon string)

func (*Dialog) SetCloseAttr

func (view *Dialog) SetCloseAttr(t string, v string)

func (*Dialog) SetCloseText

func (view *Dialog) SetCloseText(t string, icon string)

func (*Dialog) SetContent

func (view *Dialog) SetContent(t string)

func (*Dialog) SetErrors

func (view *Dialog) SetErrors(p base.ErrorProvider)

func (*Dialog) SetOkAttr

func (view *Dialog) SetOkAttr(t string, v string)

func (*Dialog) SetOkText

func (view *Dialog) SetOkText(t string, icon string)

func (*Dialog) SetOverlayColor

func (view *Dialog) SetOverlayColor(colorname string)

func (*Dialog) SetTitle

func (view *Dialog) SetTitle(t string)

func (*Dialog) Translate

func (view *Dialog) Translate(t base.Translator)

type Dup

type Dup struct {
	mgc.ViewComponent
	base.Node
	*ComponentWithAComponentsSlice

	Duped mgc.ViewComponentRenderer

	BtRemoveAttr    base.AttrList
	BtRemoveClasses base.ClassList
	BtRemoveText    string

	BtAddAttr    base.AttrList
	BtAddClasses base.ClassList
	BtAddText    string
}

func NewDup

func NewDup() *Dup

func (*Dup) AddBtAddClass

func (view *Dup) AddBtAddClass(p string)

func (*Dup) AddBtRemoveClass

func (view *Dup) AddBtRemoveClass(p string)

func (*Dup) AddComponent

func (view *Dup) AddComponent(some mgc.ViewComponentRenderer)

func (*Dup) Render

func (view *Dup) Render(args ...interface{}) (string, error)

func (*Dup) SetBtAddAttr

func (view *Dup) SetBtAddAttr(p string, v string)

func (*Dup) SetBtAddText

func (view *Dup) SetBtAddText(p string)

func (*Dup) SetBtRemoveAttr

func (view *Dup) SetBtRemoveAttr(p string, v string)

func (*Dup) SetBtRemoveText

func (view *Dup) SetBtRemoveText(p string)

func (*Dup) SetDup

func (view *Dup) SetDup(duped mgc.ViewComponentRenderer)

func (*Dup) SetErrors

func (view *Dup) SetErrors(p base.ErrorProvider)

func (*Dup) Translate

func (view *Dup) Translate(t base.Translator)

type DupRenderContext

type DupRenderContext struct {
	mgc.ContextRenderer
	// contains filtered or unexported fields
}

func (*DupRenderContext) AttachTo

func (ctx *DupRenderContext) AttachTo(view mgc.ViewComponentContextSetter)

func (*DupRenderContext) RenderComponent

func (ctx *DupRenderContext) RenderComponent(view mgc.ViewComponentRenderer, args ...interface{}) (string, error)

func (*DupRenderContext) SetDefaultTo

func (ctx *DupRenderContext) SetDefaultTo(view mgc.ViewComponentContextSetter)

type Expand

func NewExpand

func NewExpand() *Expand

func (*Expand) IsExpanded

func (view *Expand) IsExpanded() bool

func (*Expand) Render

func (view *Expand) Render(args ...interface{}) (string, error)

func (*Expand) SetBt

func (view *Expand) SetBt(b mgc.ViewComponentRenderer)

func (*Expand) SetErrors

func (view *Expand) SetErrors(p base.ErrorProvider)

func (*Expand) SetExpanded

func (view *Expand) SetExpanded(b bool)

func (*Expand) Translate

func (view *Expand) Translate(t base.Translator)

type Form

func NewForm

func NewForm() *Form

func (*Form) GetAction

func (view *Form) GetAction() string

func (*Form) GetEncType

func (view *Form) GetEncType() string

func (*Form) GetMethod

func (view *Form) GetMethod() string

func (*Form) GetTarget

func (view *Form) GetTarget() string

func (*Form) Render

func (view *Form) Render(args ...interface{}) (string, error)

func (*Form) SetAction

func (view *Form) SetAction(b string) *Form

func (*Form) SetEncType

func (view *Form) SetEncType(b string) *Form

func (*Form) SetErrors

func (view *Form) SetErrors(p base.ErrorProvider)

func (*Form) SetMethod

func (view *Form) SetMethod(b string) *Form

func (*Form) SetTarget

func (view *Form) SetTarget(b string) *Form

func (*Form) Translate

func (view *Form) Translate(t base.Translator)

type GeometryResult

type GeometryResult struct {
	X      float64 `json:"x"`
	Y      float64 `json:"y"`
	Width  float64 `json:"width"`
	Height float64 `json:"height"`
	Rotate float64 `json:"rotate"`
	ScaleX float64 `json:"scaleX"`
	ScaleY float64 `json:"scaleY"`
}

type Input

func NewInput

func NewInput() *Input

func NewInputHidden

func NewInputHidden() *Input

func NewInputPassword

func NewInputPassword() *Input

func NewInputText

func NewInputText() *Input

func (*Input) GetId

func (view *Input) GetId() string

func (*Input) GetName

func (view *Input) GetName() string

func (*Input) Render

func (view *Input) Render(args ...interface{}) (string, error)

func (*Input) SetErrors

func (view *Input) SetErrors(p base.ErrorProvider)

func (*Input) SetId

func (view *Input) SetId(b string)

func (*Input) SetName

func (view *Input) SetName(b string)

type InputConfirm

func NewInputConfirm

func NewInputConfirm() *InputConfirm

func NewInputConfirmPassword

func NewInputConfirmPassword() *InputConfirm

func NewInputConfirmText

func NewInputConfirmText() *InputConfirm

func (*InputConfirm) GetName

func (view *InputConfirm) GetName() string

func (*InputConfirm) Render

func (view *InputConfirm) Render(args ...interface{}) (string, error)

func (*InputConfirm) SetErrors

func (view *InputConfirm) SetErrors(p base.ErrorProvider)

func (*InputConfirm) SetName

func (view *InputConfirm) SetName(b string)

func (*InputConfirm) Translate

func (view *InputConfirm) Translate(t base.Translator)

type InputDate

type InputDate struct {
	mgc.ViewComponent
	base.NodeLabel
	base.NodePlaceholder
	base.NodeSingleError

	Attr         base.AttrList
	Classes      base.ClassList
	InputAttr    base.AttrList
	InputClasses base.ClassList
	HiddenAttr   base.AttrList

	GoFormat string
}

func NewInputDate

func NewInputDate() *InputDate

func (*InputDate) GetCancelText

func (i *InputDate) GetCancelText() string

func (*InputDate) GetDate

func (i *InputDate) GetDate() (time.Time, error)

func (*InputDate) GetDisplayFormat

func (i *InputDate) GetDisplayFormat() string

func (*InputDate) GetDisplayLocale

func (i *InputDate) GetDisplayLocale() string

func (*InputDate) GetDisplayMode

func (i *InputDate) GetDisplayMode() string

func (*InputDate) GetFormat

func (i *InputDate) GetFormat() string

func (*InputDate) GetFuture

func (i *InputDate) GetFuture() *time.Time

func (*InputDate) GetGoFormat

func (i *InputDate) GetGoFormat() string

func (*InputDate) GetId

func (view *InputDate) GetId() string

func (*InputDate) GetName

func (view *InputDate) GetName() string

func (*InputDate) GetOkText

func (i *InputDate) GetOkText() string

func (*InputDate) GetOrientation

func (i *InputDate) GetOrientation() string

func (*InputDate) GetPast

func (i *InputDate) GetPast() *time.Time

func (*InputDate) GetPresent

func (i *InputDate) GetPresent() *time.Time

func (*InputDate) IsColon

func (i *InputDate) IsColon() bool

func (*InputDate) MustGetDate

func (i *InputDate) MustGetDate() time.Time

func (*InputDate) Render

func (view *InputDate) Render(args ...interface{}) (string, error)

func (*InputDate) SetCancelText

func (i *InputDate) SetCancelText(b string)

func (*InputDate) SetColon

func (i *InputDate) SetColon(b bool)

func (*InputDate) SetDate

func (i *InputDate) SetDate(b time.Time)

func (*InputDate) SetDisplayFormat

func (i *InputDate) SetDisplayFormat(b string)

func (*InputDate) SetDisplayLocale

func (i *InputDate) SetDisplayLocale(b string)

func (*InputDate) SetDisplayMode

func (i *InputDate) SetDisplayMode(b string)

func (*InputDate) SetErrors

func (view *InputDate) SetErrors(p base.ErrorProvider)

func (*InputDate) SetFormat

func (i *InputDate) SetFormat(b string)

func (*InputDate) SetFuture

func (i *InputDate) SetFuture(b time.Time)

func (*InputDate) SetGoFormat

func (i *InputDate) SetGoFormat(b string)

func (*InputDate) SetId

func (view *InputDate) SetId(b string)

func (*InputDate) SetName

func (view *InputDate) SetName(b string)

func (*InputDate) SetOkText

func (i *InputDate) SetOkText(b string)

func (*InputDate) SetOrientation

func (i *InputDate) SetOrientation(b string)

func (*InputDate) SetPast

func (i *InputDate) SetPast(b time.Time)

func (*InputDate) SetPresent

func (i *InputDate) SetPresent(b time.Time)

type InputFile

type InputFile struct {
	mgc.ViewComponent
	base.NodeLabel
	base.NodePlaceholder
	base.NodeSingleError

	Attr          base.AttrList
	Classes       base.ClassList
	InputAttr     base.AttrList
	InputClasses  base.ClassList
	InputFileAttr base.AttrList

	InputTextValue string
	AttachIcon     string
	ClearIcon      string
}

func NewInputFile

func NewInputFile() *InputFile

func (*InputFile) GetAttachIcon

func (view *InputFile) GetAttachIcon() string

func (*InputFile) GetClearIcon

func (view *InputFile) GetClearIcon() string

func (*InputFile) GetId

func (view *InputFile) GetId() string

func (*InputFile) GetName

func (view *InputFile) GetName() string

func (*InputFile) IsMultiple

func (view *InputFile) IsMultiple() bool

func (*InputFile) Render

func (view *InputFile) Render(args ...interface{}) (string, error)

func (*InputFile) SetAttachIcon

func (view *InputFile) SetAttachIcon(b string)

func (*InputFile) SetClearIcon

func (view *InputFile) SetClearIcon(b string)

func (*InputFile) SetErrors

func (view *InputFile) SetErrors(p base.ErrorProvider)

func (*InputFile) SetId

func (view *InputFile) SetId(b string)

func (*InputFile) SetInputTextName

func (view *InputFile) SetInputTextName(b string)

func (*InputFile) SetInputTextValue

func (view *InputFile) SetInputTextValue(b string)

func (*InputFile) SetMultiple

func (view *InputFile) SetMultiple(b bool)

func (*InputFile) SetName

func (view *InputFile) SetName(b string)

type InputSlice

func NewInputHiddenSlice

func NewInputHiddenSlice() *InputSlice

func NewInputPasswordSlice

func NewInputPasswordSlice() *InputSlice

func NewInputSlice

func NewInputSlice() *InputSlice

func NewInputTextSlice

func NewInputTextSlice() *InputSlice

func (*InputSlice) GetItem

func (view *InputSlice) GetItem(index int, value string) *Input

func (*InputSlice) GetItemBlock

func (i *InputSlice) GetItemBlock() string

func (*InputSlice) Render

func (view *InputSlice) Render(args ...interface{}) (string, error)

func (*InputSlice) RenderItem

func (view *InputSlice) RenderItem(index int, value string, args ...interface{}) (string, error)

func (*InputSlice) SetErrors

func (view *InputSlice) SetErrors(p base.ErrorProvider)

func (*InputSlice) SetItemBlock

func (i *InputSlice) SetItemBlock(s string)

type Pagination

type Pagination struct {
	mgc.ViewComponent
	base.Node

	BtPrev        *Button
	BtNext        *Button
	Select        *Select
	GoToText      string
	BaseUrl       *url.URL
	PageParamName string
	CurrentPage   uint64
	PageCnt       uint64
}

func NewPagination

func NewPagination() *Pagination

func (*Pagination) GetPagesCnt

func (view *Pagination) GetPagesCnt() uint64

func (*Pagination) GetUrl

func (view *Pagination) GetUrl(p string) string

func (*Pagination) GuessCurrentPage

func (view *Pagination) GuessCurrentPage()

func (*Pagination) HasNextPage

func (view *Pagination) HasNextPage() bool

func (*Pagination) HasPreviousPage

func (view *Pagination) HasPreviousPage() bool

func (*Pagination) Render

func (view *Pagination) Render(args ...interface{}) (string, error)

func (*Pagination) SetBaseUrl

func (view *Pagination) SetBaseUrl(u *url.URL)

func (*Pagination) SetPageParamName

func (view *Pagination) SetPageParamName(s string)

func (*Pagination) SetPagesCnt

func (view *Pagination) SetPagesCnt(limit uint64, total uint64)

func (*Pagination) SetTotalItemCount

func (view *Pagination) SetTotalItemCount(limit uint64, total uint64)

func (*Pagination) Translate

func (view *Pagination) Translate(t base.Translator)

type PartialInputConfirm

type PartialInputConfirm struct {
	base.Node
	base.NodeLabel
	base.NodeSingleValue

	InputAttr    base.AttrList
	InputClasses base.ClassList
}

func (*PartialInputConfirm) GetId

func (view *PartialInputConfirm) GetId() string

func (*PartialInputConfirm) GetName

func (view *PartialInputConfirm) GetName() string

func (*PartialInputConfirm) SetId

func (view *PartialInputConfirm) SetId(b string)

func (*PartialInputConfirm) SetName

func (view *PartialInputConfirm) SetName(b string)

type Select

func NewSelect

func NewSelect() *Select

func (*Select) GetIcon

func (i *Select) GetIcon() string

func (*Select) GetId

func (view *Select) GetId() string

func (*Select) GetName

func (view *Select) GetName() string

func (*Select) IsMultiple

func (i *Select) IsMultiple() bool

func (*Select) Render

func (view *Select) Render(args ...interface{}) (string, error)

func (*Select) SetDisabled

func (view *Select) SetDisabled(b bool)

func (*Select) SetErrors

func (view *Select) SetErrors(p base.ErrorProvider)

func (*Select) SetIcon

func (i *Select) SetIcon(s string)

func (*Select) SetId

func (view *Select) SetId(b string)

func (*Select) SetMultiple

func (i *Select) SetMultiple(s bool)

func (*Select) SetName

func (view *Select) SetName(b string)

func (*Select) SetRipple

func (view *Select) SetRipple(b bool)

func (*Select) Translate

func (view *Select) Translate(t base.Translator)

func (*Select) UpdateWindowUrl

func (view *Select) UpdateWindowUrl(b bool)

type Slice

func NewSlice

func NewSlice() *Slice

func (*Slice) Render

func (view *Slice) Render(args ...interface{}) (string, error)

type Slider

func NewSlider

func NewSlider() *Slider

func (*Slider) GetId

func (view *Slider) GetId() string

func (*Slider) GetMax

func (view *Slider) GetMax() string

func (*Slider) GetMin

func (view *Slider) GetMin() string

func (*Slider) GetName

func (view *Slider) GetName() string

func (*Slider) GetStep

func (view *Slider) GetStep() string

func (*Slider) GetType

func (view *Slider) GetType() string

func (*Slider) Render

func (view *Slider) Render(args ...interface{}) (string, error)

func (*Slider) SetErrors

func (view *Slider) SetErrors(p base.ErrorProvider)

func (*Slider) SetId

func (view *Slider) SetId(b string)

func (*Slider) SetMax

func (view *Slider) SetMax(b string)

func (*Slider) SetMin

func (view *Slider) SetMin(b string)

func (*Slider) SetName

func (view *Slider) SetName(b string)

func (*Slider) SetStep

func (view *Slider) SetStep(b string)

func (*Slider) SetType

func (view *Slider) SetType(b string)

type Tab

type Tab struct {
	base.Node
	*ComponentWithAComponentsSlice

	Title string

	TitleClasses base.ClassList
	TitleAttr    base.AttrList
}

func NewTab

func NewTab() *Tab

func (*Tab) GetTitle

func (t *Tab) GetTitle() string

func (*Tab) IsActive

func (t *Tab) IsActive() bool

func (*Tab) SetActive

func (t *Tab) SetActive(b bool)

func (*Tab) SetErrors

func (view *Tab) SetErrors(p base.ErrorProvider)

func (*Tab) SetTitle

func (t *Tab) SetTitle(b string)

func (*Tab) Translate

func (view *Tab) Translate(t base.Translator)

type Tabs

type Tabs struct {
	mgc.ViewComponent
	base.Node
	Tabs []*Tab

	MenuClasses base.ClassList
	MenuAttr    base.AttrList
}

func NewTabs

func NewTabs() *Tabs

func (*Tabs) AddTab

func (l *Tabs) AddTab(title string) *Tab

func (*Tabs) At

func (l *Tabs) At(index int) *Tab

func (*Tabs) Render

func (view *Tabs) Render(args ...interface{}) (string, error)

func (*Tabs) SetActive

func (l *Tabs) SetActive(index int)

func (*Tabs) SetErrors

func (view *Tabs) SetErrors(p base.ErrorProvider)

func (*Tabs) Translate

func (view *Tabs) Translate(t base.Translator)

type Tag

func NewDiv

func NewDiv() *Tag

func NewTag

func NewTag() *Tag

func (*Tag) AddComponent

func (view *Tag) AddComponent(s mgc.ViewComponentRenderer)

func (*Tag) CloseTag

func (view *Tag) CloseTag() template.HTML

func (*Tag) GetTagName

func (view *Tag) GetTagName() string

func (*Tag) OpenTag

func (view *Tag) OpenTag() template.HTML

func (*Tag) OpenTagClose

func (view *Tag) OpenTagClose() template.HTML

func (*Tag) Render

func (view *Tag) Render(args ...interface{}) (string, error)

func (*Tag) SetTagName

func (view *Tag) SetTagName(s string)

type Text

type Text struct {
	mgc.ViewComponent
	Content         interface{}
	TranslationArgs interface{}
}

func NewText

func NewText() *Text

func (*Text) GetContent

func (view *Text) GetContent() interface{}

func (*Text) Render

func (view *Text) Render(args ...interface{}) (string, error)

func (*Text) SetContent

func (view *Text) SetContent(some string)

func (*Text) SetHTMLContent

func (view *Text) SetHTMLContent(some string)

func (*Text) SetTranslationArgs

func (view *Text) SetTranslationArgs(some interface{})

func (*Text) Translate

func (view *Text) Translate(t base.Translator)

type Textarea

func NewTextarea

func NewTextarea() *Textarea

func NewWysiwyg

func NewWysiwyg() *Textarea

func (*Textarea) GetRows

func (i *Textarea) GetRows() int

func (*Textarea) Render

func (view *Textarea) Render(args ...interface{}) (string, error)

func (*Textarea) SetErrors

func (view *Textarea) SetErrors(p base.ErrorProvider)

func (*Textarea) SetRows

func (i *Textarea) SetRows(b int)

Jump to

Keyboard shortcuts

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