loaders

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Rendered for js/wasm

Index

Constants

View Source
const (
	ID_LOADER_CONTAINER = "jsext-main-loader-container"
	ID_LOADER           = "jsext-main-loader"
)

Variables

View Source
var (
	COLOR_MAIN       = csshelpers.COLOR_MAIN
	COLOR_ONE        = csshelpers.COLOR_ONE
	COLOR_TWO        = csshelpers.COLOR_TWO
	COLOR_THREE      = csshelpers.COLOR_THREE
	COLOR_FOUR       = csshelpers.COLOR_FOUR
	COLOR_FIVE       = csshelpers.COLOR_FIVE
	LOADING_TEXT     = "loading"
	BACKGROUND_COLOR = csshelpers.BACKGROUND_COLOR
)

Functions

func LoaderHexagonRolling

func LoaderHexagonRolling(idContainer, idLoader string) *elements.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderMultiRing

func LoaderMultiRing(idContainer, idLoader string) *elements.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderQuadSquares

func LoaderQuadSquares(idContainer, idLoader string) *elements.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderRing

func LoaderRing(idContainer, idLoader string) *elements.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderRotatingBlock

func LoaderRotatingBlock(idContainer, idLoader string) *elements.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

Types

type Loader

type Loader struct {
	Activated bool
	// contains filtered or unexported fields
}

Loader struct to be used for all loader elements.

func NewLoader

func NewLoader(appendTo string, className string, deleteOnFinish bool, f ...LoaderFunc) *Loader

Returns a new loader.

func (*Loader) Deactivate

func (l *Loader) Deactivate()

Deactivate the loader.

func (*Loader) Delete

func (l *Loader) Delete()

Delete the loader.

func (*Loader) Finalize

func (l *Loader) Finalize()

Delete or deactivate depending on the deleteOnFinish flag.

func (*Loader) Run

func (l *Loader) Run(f func())

Run the loader.

func (*Loader) Show

func (l *Loader) Show()

Show the loader

func (*Loader) Stop

func (l *Loader) Stop()

Stop the loader.

type LoaderFunc

type LoaderFunc = func(idContainer, idLoader string) *elements.Element

LoaderFunc is a function that returns a loader element.

Jump to

Keyboard shortcuts

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