bootstrap

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 6 Imported by: 0

README

bootstrap-ego

An ego template component library for Bootstrap 4.

Components

  • Alert
  • Badge
  • Breadcrumb
  • Button
  • ButtonGroup
  • Card
    • CardDeck
    • CardColumns
  • Carousel
  • Collapse
  • Dropdown
    • DropdownMenu
      • DropdownHeader
      • DropdownItem
    • Sizing, Split button, Dropup/right/left
  • Form (w/ inline)
    • FormGroup (w/ row)
    • FormCheck (w/ inline)
      • FormCheckInput, FormCheckLabel
    • FormControl (w/ Sizing, Readonly, Plaintext)
    • FormControlFile
    • FormRow
    • FormText
    • Validation
  • InputGroup
  • Jumbotron
  • ListGroup
    • ListGroupItem
  • Modal (Header, footer, content)
  • Nav
    • Tabs
    • Pills
  • Navbar
  • Pagination
  • Popover
  • Progress
  • ScrollSpy
  • Tooltips

Files

alert.go badge.go bootstrap.go breadcrumb.go button.go button_group.go card.go card_columns.go card_deck.go carousel.go collapse.go dropdown.go dropdown_header.go dropdown_item.go dropdown_menu.go form.go form_check.go form_check_input.go form_control.go form_control_file.go form_group.go form_row.go form_text.go input_group.go jumbotron.go list_group.go list_group_item.go modal.go nav.go navbar.go pagination.go pills.go popover.go progress.go tabs.go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = log.New(os.Stderr, "", 0)

Logger is the default logger for reporting render errors.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	ID          string
	Class       string
	Style       string
	Dismissable bool
	Yield       func()
}

func (*Alert) Render

func (r *Alert) Render(ctx context.Context, w io.Writer)

type Badge

type Badge struct {
	ID    string
	Class string
	Style string
	Pill  bool
	Yield func()
}

func (*Badge) Render

func (r *Badge) Render(ctx context.Context, w io.Writer)
type Breadcrumb struct {
	ID    string
	Class string
	Yield func()
}
func (r *Breadcrumb) Render(ctx context.Context, w io.Writer)
type BreadcrumbItem struct {
	ID     string
	Class  string
	Active bool
	Yield  func()
}
func (r *BreadcrumbItem) Render(ctx context.Context, w io.Writer)

type Button

type Button struct {
	ID       string
	Class    string
	NodeName string
	Name     string
	Type     string
	Style    string
	Href     string
	Form     string
	Value    string
	Target   string
	Size     string // "sm","lg"
	Title    string
	Outline  bool
	Block    bool
	Active   bool
	Disabled bool
	Dropdown bool
	Yield    func()
}

func (*Button) Render

func (r *Button) Render(ctx context.Context, w io.Writer)

type ButtonGroup

type ButtonGroup struct {
	ID       string
	Class    string
	Size     string
	Vertical bool
	Yield    func()
}

func (*ButtonGroup) Render

func (r *ButtonGroup) Render(ctx context.Context, w io.Writer)

type ButtonToolbar

type ButtonToolbar struct {
	ID       string
	Class    string
	Size     string
	Vertical bool
	Yield    func()
}

func (*ButtonToolbar) Render

func (r *ButtonToolbar) Render(ctx context.Context, w io.Writer)

type Card

type Card struct {
	ID     string
	Class  string
	Header func()
	Body   func()
	Yield  func()
	Footer func()
}

func (*Card) Render

func (r *Card) Render(ctx context.Context, w io.Writer)

type CardColumns

type CardColumns struct {
	ID    string
	Class string
	Yield func()
}

func (*CardColumns) Render

func (r *CardColumns) Render(ctx context.Context, w io.Writer)

type CardDeck

type CardDeck struct {
	ID    string
	Class string
	Yield func()
}

func (*CardDeck) Render

func (r *CardDeck) Render(ctx context.Context, w io.Writer)

type CardGroup

type CardGroup struct {
	ID    string
	Class string
	Yield func()
}

func (*CardGroup) Render

func (r *CardGroup) Render(ctx context.Context, w io.Writer)
type Carousel struct {
	ID         string
	Class      string
	Indicators func()
	Inner      func()
	Controls   func()
}

func (*Carousel) Render

func (r *Carousel) Render(ctx context.Context, w io.Writer)

type CarouselControlNext

type CarouselControlNext struct {
	ID     string
	Class  string
	Target string
}

func (*CarouselControlNext) Render

func (r *CarouselControlNext) Render(ctx context.Context, w io.Writer)

type CarouselControlPrev

type CarouselControlPrev struct {
	ID     string
	Class  string
	Target string
}

func (*CarouselControlPrev) Render

func (r *CarouselControlPrev) Render(ctx context.Context, w io.Writer)

type CarouselIndicator

type CarouselIndicator struct {
	ID      string
	Class   string
	Target  string
	SlideTo int
	Active  bool
}

func (*CarouselIndicator) Render

func (r *CarouselIndicator) Render(ctx context.Context, w io.Writer)

type CarouselIndicators

type CarouselIndicators struct {
	ID    string
	Class string
	Yield func()
}

func (*CarouselIndicators) Render

func (r *CarouselIndicators) Render(ctx context.Context, w io.Writer)

type CarouselItem

type CarouselItem struct {
	ID     string
	Class  string
	Active bool
	Yield  func()
}

func (*CarouselItem) Render

func (r *CarouselItem) Render(ctx context.Context, w io.Writer)

type CloseButton

type CloseButton struct {
	ID      string
	Class   string
	Dismiss string
}

func (*CloseButton) Render

func (r *CloseButton) Render(ctx context.Context, w io.Writer)

type Container

type Container struct {
	ID    string
	Class string
	Fluid bool
	Yield func()
}

func (*Container) Render

func (r *Container) Render(ctx context.Context, w io.Writer)
type Dropdown struct {
	ID    string
	Class string
	Yield func()
}
func (r *Dropdown) Render(ctx context.Context, w io.Writer)
type DropdownDivider struct {
	ID    string
	Class string
}
func (r *DropdownDivider) Render(ctx context.Context, w io.Writer)
type DropdownMenu struct {
	ID    string
	Class string
	Yield func()
}
func (r *DropdownMenu) Render(ctx context.Context, w io.Writer)

type FormCheck

type FormCheck struct {
	ID     string
	Class  string
	Inline bool
	Yield  func()
}

func (*FormCheck) Render

func (r *FormCheck) Render(ctx context.Context, w io.Writer)

type FormGroup

type FormGroup struct {
	ID    string
	Class string
	Yield func()
}

func (*FormGroup) Render

func (r *FormGroup) Render(ctx context.Context, w io.Writer)

type FormRow

type FormRow struct {
	ID    string
	Class string
	Yield func()
}

func (*FormRow) Render

func (r *FormRow) Render(ctx context.Context, w io.Writer)

type FormText

type FormText struct {
	ID    string
	Class string
	Yield func()
}

func (*FormText) Render

func (r *FormText) Render(ctx context.Context, w io.Writer)

type InputGroup

type InputGroup struct {
	ID      string
	Class   string
	Size    string
	Prepend func()
	Append  func()
	Yield   func()
}

func (*InputGroup) Render

func (r *InputGroup) Render(ctx context.Context, w io.Writer)

type InputGroupText

type InputGroupText struct {
	ID    string
	Class string
	Yield func()
}

func (*InputGroupText) Render

func (r *InputGroupText) Render(ctx context.Context, w io.Writer)

type InvalidFeedback

type InvalidFeedback struct {
	ID    string
	Class string
	Yield func()
}

func (*InvalidFeedback) Render

func (r *InvalidFeedback) Render(ctx context.Context, w io.Writer)

type Jumbotron

type Jumbotron struct {
	ID    string
	Class string
	Yield func()
}

func (*Jumbotron) Render

func (r *Jumbotron) Render(ctx context.Context, w io.Writer)

type ListGroup

type ListGroup struct {
	ID       string
	NodeName string
	Class    string
	Flush    bool
	Yield    func()
}

func (*ListGroup) Render

func (r *ListGroup) Render(ctx context.Context, w io.Writer)

type ListGroupItem

type ListGroupItem struct {
	ID       string
	Class    string
	Type     string
	Style    string
	Href     string
	Form     string
	Value    string
	Target   string
	Active   bool
	Disabled bool
	Yield    func()
}

func (*ListGroupItem) NodeName

func (r *ListGroupItem) NodeName() string

func (*ListGroupItem) Render

func (r *ListGroupItem) Render(ctx context.Context, w io.Writer)
type Modal struct {
	ID    string
	Class string
	Yield func()
}

func (*Modal) Render

func (r *Modal) Render(ctx context.Context, w io.Writer)

type ModalBody

type ModalBody struct {
	ID    string
	Class string
	Yield func()
}

func (*ModalBody) Render

func (r *ModalBody) Render(ctx context.Context, w io.Writer)

type ModalContent

type ModalContent struct {
	ID    string
	Class string
	Yield func()
}

func (*ModalContent) Render

func (r *ModalContent) Render(ctx context.Context, w io.Writer)

type ModalDialog

type ModalDialog struct {
	ID       string
	Class    string
	Size     string
	Centered bool
	Yield    func()
}

func (*ModalDialog) Render

func (r *ModalDialog) Render(ctx context.Context, w io.Writer)

type ModalFooter

type ModalFooter struct {
	ID    string
	Class string
	Yield func()
}

func (*ModalFooter) Render

func (r *ModalFooter) Render(ctx context.Context, w io.Writer)

type ModalHeader

type ModalHeader struct {
	ID    string
	Class string
	Yield func()
}

func (*ModalHeader) Render

func (r *ModalHeader) Render(ctx context.Context, w io.Writer)
type Nav struct {
	ID        string
	NodeName  string
	Class     string
	Tabs      bool
	Pills     bool
	Fill      bool
	Justified bool
	Yield     func()
}
func (r *Nav) Render(ctx context.Context, w io.Writer)
type NavItem struct {
	ID       string
	Class    string
	Active   bool
	Dropdown bool
	Yield    func()
}
func (r *NavItem) Render(ctx context.Context, w io.Writer)
type NavLink struct {
	ID       string
	Class    string
	Href     string
	Target   string
	Active   bool
	Disabled bool
	Dropdown bool
	Yield    func()
}
func (r *NavLink) Render(ctx context.Context, w io.Writer)
type Navbar struct {
	ID     string
	Class  string
	Style  string
	Expand string
	Yield  func()
}
func (r *Navbar) Render(ctx context.Context, w io.Writer)
type NavbarBrand struct {
	ID       string
	NodeName string
	Class    string
	Href     string
	Target   string
	Yield    func()
}
func (r *NavbarBrand) Render(ctx context.Context, w io.Writer)
type NavbarCollapse struct {
	ID    string
	Class string
	Yield func()
}
func (r *NavbarCollapse) Render(ctx context.Context, w io.Writer)
type NavbarNav struct {
	ID       string
	NodeName string
	Class    string
	Yield    func()
}
func (r *NavbarNav) Render(ctx context.Context, w io.Writer)
type NavbarText struct {
	ID    string
	Class string
	Yield func()
}
func (r *NavbarText) Render(ctx context.Context, w io.Writer)
type NavbarToggler struct {
	ID     string
	Class  string
	Target string
}
func (r *NavbarToggler) Render(ctx context.Context, w io.Writer)

type PageItem

type PageItem struct {
	ID       string
	Class    string
	Active   bool
	Disabled bool
	Yield    func()
}

func (*PageItem) Render

func (r *PageItem) Render(ctx context.Context, w io.Writer)
type PageLink struct {
	ID       string
	NodeName string
	Class    string
	Href     string
	Target   string
	Disabled bool
	Yield    func()
}

func (*PageLink) Render

func (r *PageLink) Render(ctx context.Context, w io.Writer)

type Pagination

type Pagination struct {
	ID    string
	Class string
	Size  string
	Yield func()
}

func (*Pagination) Render

func (r *Pagination) Render(ctx context.Context, w io.Writer)

type Progress

type Progress struct {
	ID    string
	Class string
	Yield func()
}

func (*Progress) Render

func (r *Progress) Render(ctx context.Context, w io.Writer)

type ProgressBar

type ProgressBar struct {
	ID       string
	Class    string
	Striped  bool
	Animated bool
	Value    float64
	Yield    func()
}

func (*ProgressBar) Render

func (r *ProgressBar) Render(ctx context.Context, w io.Writer)

type Row

type Row struct {
	ID    string
	Class string
	Yield func()
}

func (*Row) Render

func (r *Row) Render(ctx context.Context, w io.Writer)

type ValidFeedback

type ValidFeedback struct {
	ID    string
	Class string
	Yield func()
}

func (*ValidFeedback) Render

func (r *ValidFeedback) Render(ctx context.Context, w io.Writer)

Jump to

Keyboard shortcuts

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