Versions in this module Expand all Collapse all v1 v1.14.3 May 8, 2024 v1.14.2 May 8, 2024 Changes in this version + type ActionBlock struct + func Action(actions ...Element) *ActionBlock + func (a *ActionBlock) BisectedLayout() *ActionBlock + func (a *ActionBlock) FlowLayout() *ActionBlock + func (a *ActionBlock) Render() Renderer + func (a *ActionBlock) TrisectionLayout() *ActionBlock + type Block struct + func Card(el ...Element) *Block + func (b *Block) Blue() *Block + func (b *Block) Carmine() *Block + func (b *Block) Green() *Block + func (b *Block) Grey() *Block + func (b *Block) Indigo() *Block + func (b *Block) Link(href *URLBlock) *Block + func (b *Block) MarshalJSON() ([]byte, error) + func (b *Block) NoForward() *Block + func (b *Block) Orange() *Block + func (b *Block) Purple() *Block + func (b *Block) Red() *Block + func (b *Block) Render() Renderer + func (b *Block) String() string + func (b *Block) Title(title string) *Block + func (b *Block) Turquoise() *Block + func (b *Block) UpdateMulti(updateMulti bool) *Block + func (b *Block) Violet() *Block + func (b *Block) Wathet() *Block + func (b *Block) Yellow() *Block + type ButtonBlock struct + func Button(text *TextBlock) *ButtonBlock + func (b *ButtonBlock) Confirm(title, text string) *ButtonBlock + func (b *ButtonBlock) Danger() *ButtonBlock + func (b *ButtonBlock) Default() *ButtonBlock + func (b *ButtonBlock) MultiURL(u *URLBlock) *ButtonBlock + func (b *ButtonBlock) Primary() *ButtonBlock + func (b *ButtonBlock) Render() Renderer + func (b *ButtonBlock) URL(u string) *ButtonBlock + func (b *ButtonBlock) Value(v map[string]interface{}) *ButtonBlock + type ColumnBlock struct + func Column(els ...Element) *ColumnBlock + func (c *ColumnBlock) Render() Renderer + func (c *ColumnBlock) VerticalAlign(align string) *ColumnBlock + func (c *ColumnBlock) Weight(weight int) *ColumnBlock + func (c *ColumnBlock) Width(width string) *ColumnBlock + type ColumnSetActionBlock struct + func ColumnSetAction(url *URLBlock) *ColumnSetActionBlock + func (c *ColumnSetActionBlock) Render() Renderer + type ColumnSetBlock struct + func ColumnSet(columns ...*ColumnBlock) *ColumnSetBlock + func (c *ColumnSetBlock) Action(action *ColumnSetActionBlock) *ColumnSetBlock + func (c *ColumnSetBlock) BackgroundStyle(style string) *ColumnSetBlock + func (c *ColumnSetBlock) FlexMode(mode string) *ColumnSetBlock + func (c *ColumnSetBlock) HorizontalSpacing(hs string) *ColumnSetBlock + func (c *ColumnSetBlock) Render() Renderer + type ConfirmBlock struct + func Confirm(title, text string) *ConfirmBlock + func (c *ConfirmBlock) Render() Renderer + type DatePickerBlock struct + func DatePicker() *DatePickerBlock + func (d *DatePickerBlock) InitialDate(t time.Time) *DatePickerBlock + func (d *DatePickerBlock) InitialDateString(date string) *DatePickerBlock + type DatetimePickerBlock struct + func DatetimePicker() *DatetimePickerBlock + func (d *DatetimePickerBlock) InitialDatetime(t time.Time) *DatetimePickerBlock + func (d *DatetimePickerBlock) InitialDatetimeString(date string) *DatetimePickerBlock + type DivBlock struct + func Div(fields ...*FieldBlock) *DivBlock + func (d *DivBlock) Extra(e Element) *DivBlock + func (d *DivBlock) Render() Renderer + func (d *DivBlock) Text(t *TextBlock) *DivBlock + type Element interface + Render func() Renderer + type ElementTag struct + Tag string + type FieldBlock struct + func Field(text *TextBlock) *FieldBlock + func (f *FieldBlock) Render() Renderer + func (f *FieldBlock) Short() *FieldBlock + type HrBlock struct + func Hr() *HrBlock + func (h *HrBlock) Render() Renderer + type ImgBlock struct + func Img(key string) *ImgBlock + func (i *ImgBlock) Alt(s string) *ImgBlock + func (i *ImgBlock) Compact() *ImgBlock + func (i *ImgBlock) CropCenter() *ImgBlock + func (i *ImgBlock) FitHorizontal() *ImgBlock + func (i *ImgBlock) NoPreview() *ImgBlock + func (i *ImgBlock) Render() Renderer + func (i *ImgBlock) Title(t *TextBlock) *ImgBlock + func (i *ImgBlock) TitleString(t string) *ImgBlock + func (i *ImgBlock) Width(w int) *ImgBlock + type MarkdownBlock struct + func Markdown(s string) *MarkdownBlock + func (m *MarkdownBlock) AlignCenter() *MarkdownBlock + func (m *MarkdownBlock) AlignLeft() *MarkdownBlock + func (m *MarkdownBlock) AlignRight() *MarkdownBlock + func (m *MarkdownBlock) Href(name string, url *URLBlock) *MarkdownBlock + func (m *MarkdownBlock) Render() Renderer + type NoteBlock struct + func Note() *NoteBlock + func (n *NoteBlock) AddImage(i *ImgBlock) *NoteBlock + func (n *NoteBlock) AddText(t *TextBlock) *NoteBlock + func (n *NoteBlock) Render() Renderer + type OptionBlock struct + func Option(value string) *OptionBlock + func (o *OptionBlock) MultiURL(u *URLBlock) *OptionBlock + func (o *OptionBlock) Render() Renderer + func (o *OptionBlock) Text(s string) *OptionBlock + func (o *OptionBlock) URL(u string) *OptionBlock + type OverflowBlock struct + func Overflow(opt ...*OptionBlock) *OverflowBlock + func (o *OverflowBlock) Confirm(title, text string) *OverflowBlock + func (o *OverflowBlock) Render() Renderer + func (o *OverflowBlock) Value(v map[string]interface{}) *OverflowBlock + type PickerBlock struct + func (p *PickerBlock) Confirm(title, text string) *PickerBlock + func (p *PickerBlock) Placeholder(s string) *PickerBlock + func (p *PickerBlock) Render() Renderer + func (p *PickerBlock) Value(m map[string]interface{}) *PickerBlock + type Renderer interface + type SelectMenuBlock struct + func SelectMenu(opt ...*OptionBlock) *SelectMenuBlock + func (s *SelectMenuBlock) Confirm(title, text string) *SelectMenuBlock + func (s *SelectMenuBlock) InitialOption(o string) *SelectMenuBlock + func (s *SelectMenuBlock) Placeholder(p string) *SelectMenuBlock + func (s *SelectMenuBlock) Render() Renderer + func (s *SelectMenuBlock) SelectPerson() *SelectMenuBlock + func (s *SelectMenuBlock) Value(v map[string]interface{}) *SelectMenuBlock + type TextBlock struct + func Text(s string) *TextBlock + func (t *TextBlock) Href(name string, url *URLBlock) *TextBlock + func (t *TextBlock) LarkMd() *TextBlock + func (t *TextBlock) Lines(l int) *TextBlock + func (t *TextBlock) Render() Renderer + type TimePickerBlock struct + func TimePicker() *TimePickerBlock + func (d *TimePickerBlock) InitialTime(t time.Time) *TimePickerBlock + func (d *TimePickerBlock) InitialTimeString(date string) *TimePickerBlock + type URLBlock struct + func URL() *URLBlock + func (u *URLBlock) Href(s string) *URLBlock + func (u *URLBlock) MultiHref(android, ios, pc string) *URLBlock + func (u *URLBlock) Render() Renderer