carousels

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Image

func Image(imageUrls []string, options *Options, changeOnClick ...bool) *elements.Element

func Plain

func Plain(options *Options) *elements.Element

Types

type Options

type Options struct {
	// The width of the carousel.
	Width string
	// The height of the carousel.
	Height string
	// The background color of the carousel.
	Background string
	// Border of the carousel.
	Border string
	// Show the carousel controls.
	Controls      bool
	ControlsColor string
	ControlsSize  string
	// Show the carousel indicators.
	Indicators bool
	// Items
	Items []*elements.Element
	// Class prefix
	Prefix string
	// Active item
	ActiveItem int
}

func (*Options) SetDefaults

func (c *Options) SetDefaults()

Jump to

Keyboard shortcuts

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