acorn

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Timeline image base64 encode
	IMAGE_TIMELINE = "" /* 4302-byte string literal not displayed */
	// Testimonial image base64 encode
	IMAGE_TESTIMONIAL = "" /* 1826-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML struct{}

HTML element

func (HTML) GetBoilerplate

func (h HTML) GetBoilerplate(elements acorntypes.AcornComponents, withoutMargins *bool) string

Generate a new boilerplate html element

func (HTML) NewAccordion

func (h HTML) NewAccordion(params []*acorntypes.AccordionParams) string

Generate a new accordion html element

func (HTML) NewAlert

func (h HTML) NewAlert(params *acorntypes.AlertParams) string

Generate a new alert html element

func (HTML) NewButton

func (h HTML) NewButton(params *acorntypes.ButtonParams) string

Generate a new button html element

func (HTML) NewContent

func (h HTML) NewContent(params *acorntypes.ContentParams) string

Generate a new content html element

func (HTML) NewCoupon

func (h HTML) NewCoupon(params *acorntypes.CouponParams) string

NewCoupon generate a new coupon html element

func (HTML) NewDivider

func (h HTML) NewDivider(color *acorntypes.Color) string

Generate a new divider html element

func (HTML) NewGrid

func (h HTML) NewGrid(rows [][]*acorntypes.ColumnParams) string

Generate a new grid html element

func (HTML) NewImage

func (h HTML) NewImage(params *acorntypes.ImageParams) string

NewImage generate a new image html element

func (HTML) NewLabel

func (h HTML) NewLabel(params *acorntypes.LabelParams) string

Generate a new label html element

func (HTML) NewPromo

func (h HTML) NewPromo(items *acorntypes.PromoItems) string

NewPromo generate a new promo html element

func (HTML) NewRow

func (h HTML) NewRow(params []*acorntypes.ColumnParams) string

Generate a new row html element

func (HTML) NewSpacer

func (h HTML) NewSpacer() string

Generate a new spacer html element

func (HTML) NewTestimonial

func (h HTML) NewTestimonial(params *acorntypes.TestimonialParams) string

Generate a new testimonial html element

func (HTML) NewTimeline

func (h HTML) NewTimeline(params []*acorntypes.TimelineParams) string

Generate a new timeline html element

Jump to

Keyboard shortcuts

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