menus

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 Blurry added in v1.3.3

func Blurry(menu *MenuOptions) *elements.Element

func Curtains added in v1.3.3

func Curtains(menu *MenuOptions) *elements.Element

func Unstyled added in v1.3.3

func Unstyled(options *MenuOptions) *elements.Element

Types

type CSSField added in v1.3.3

type CSSField int
const (
	OpenBtnColor           CSSField = 1
	OpenBtnBg              CSSField = 2
	CloseBtnColor          CSSField = 3
	CloseBtnBg             CSSField = 4
	ControlBtnSize         CSSField = 5
	OverlayBackgroundColor CSSField = 6
	TransitionDuration     CSSField = 7
	MenuContainerCSSBlock  CSSField = 8
	MenuCssBlock           CSSField = 9
	MenuItemCSSBlock       CSSField = 10
	TextColor              CSSField = 11
	TextColorActive        CSSField = 12
	BackgroundColor        CSSField = 13
	BackgroundActive       CSSField = 14
	ButtonWidth            CSSField = 15
)
type MenuOptions struct {
	URLs             *elements.URLs
	CSSMap           map[CSSField]string
	ClassPrefix      string
	ElementTag       string
	URLFunc          func(e *elements.Element) *elements.Element
	CssFunc          func(containerClass string, manuContainerClass string, menuClass string, menuItemClass string) string
	OverlayDirection OverlayDirection
}

func NewMenuOptions added in v1.3.3

func NewMenuOptions(overlay OverlayDirection) *MenuOptions

type OverlayDirection added in v1.3.3

type OverlayDirection string
const (
	Left        OverlayDirection = "left"
	Right       OverlayDirection = "right"
	Top         OverlayDirection = "top"
	TopLeft     OverlayDirection = "topleft"
	TopRight    OverlayDirection = "topright"
	Bottom      OverlayDirection = "bottom"
	BottomLeft  OverlayDirection = "bottomleft"
	BottomRight OverlayDirection = "bottomright"
)

Jump to

Keyboard shortcuts

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