card

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package card wraps Bootstrap Card component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	*bs.Component
}

Body represents Bootstrap card body.

func NewBody

func NewBody(content interface{}) *Body

NewBody returns card body.

func (b *Body) Link(link string, content interface{}) *Body

Link adds link.

func (*Body) SubTitle

func (b *Body) SubTitle(content interface{}) *Body

SubTitle adds subtitle.

func (*Body) Text

func (b *Body) Text(content string) *Body

Text adds text content.

func (*Body) Title

func (b *Body) Title(content interface{}) *Body

Title adds title.

type Card

type Card struct {
	*bs.Component
}

Card represents Bootstrap card component.

func Attach

func Attach(id string) *Card

Attach binds card component on page.

func New

func New() *Card

New returns card.

func (*Card) Body

func (c *Card) Body(b *Body) *Card

Body adds body.

func (*Card) Footer

func (c *Card) Footer(f *Footer) *Card

Footer adds card footer.

func (*Card) Header

func (c *Card) Header(h *Header) *Card

Header adds card header.

func (*Card) TopImage

func (c *Card) TopImage(link string, alt string) *Card

TopImage adds top image.

type Footer struct {
	*bs.Component
}

Footer represents Bootstrap card footer.

func NewFooter

func NewFooter(content ...interface{}) *Footer

NewFooter returns card footer.

type Header struct {
	*bs.Component
}

Header represents Bootstrap card header.

func NewHeader

func NewHeader(content ...interface{}) *Header

NewHeader returns card header.

Jump to

Keyboard shortcuts

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