navbars

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

View Source
const (
	ID_MAIN_CONTENT           = "gohtml-main-content"
	CLASS_NAVBAR              = "gohtml-navbar"
	CLASS_NAVBAR_LEFT         = "gohtml-left"
	CLASS_NAVBAR_RIGHT        = "gohtml-right"
	CLASS_NAVIGATION_LINK     = "gohtml-navigation-link"
	ID_SIDE_OPEN_BTN          = "gohtml-openbtn"
	ID_SIDE_CLOSE_BTN         = "gohtml-closebtn"
	ID_SIDE_NAVBAR            = "gohtml-sidenav"
	CLASS_SIDE_NAVBAR         = "gohtml-sidenav"
	CLASS_SIDE_NAVBAR_FOOTER  = "gohtml-footer"
	CLASS_SIDE_NAVBAR_CONTENT = "gohtml-content-nav"
	CLASS_ACTIVE              = "gohtml-active"
)
View Source
const DefaultNavStyle = `` /* 523-byte string literal not displayed */
View Source
const DefaultSideNavStyle = `` /* 1006-byte string literal not displayed */

Variables

This section is empty.

Functions

func NavBar(logo *Logo, urls elems.URLs) (*elems.Element, elems.Elements)

func SideNavBar added in v1.2.8

func SideNavBar(logo *Logo, urls elems.URLs, footer_urls ...elems.URL) (*elems.Element, *elems.Element, elems.Elements)

Returns the navbar body to append to your HTML, the main-content area and all URLS

Types

type Logo struct {
	URL         elems.URL
	Image       string
	LeftOrRight bool
}

Jump to

Keyboard shortcuts

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