layouts

package
v1.2.142 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSubMennuNotFound = errors.New("item has't subMenu")

Functions

func AdminHead

func AdminHead(title string) string

func DadataHead

func DadataHead() string

func DadataScript

func DadataScript(Inputs map[string][]string) string

func FooterHTML

func FooterHTML(FooterMenu Menu) string

func HTTPResponse added in v1.2.15

func HTTPResponse(msg []byte, statusCode int, headers ...string) string

func HeaderHTML

func HeaderHTML(TopMenu Menu) string

func StreamAdminHead

func StreamAdminHead(qw422016 *qt422016.Writer, title string)

func StreamDadataHead

func StreamDadataHead(qw422016 *qt422016.Writer)

func StreamDadataScript

func StreamDadataScript(qw422016 *qt422016.Writer, Inputs map[string][]string)

func StreamFooterHTML

func StreamFooterHTML(qw422016 *qt422016.Writer, FooterMenu Menu)

func StreamHTTPResponse added in v1.2.15

func StreamHTTPResponse(qw422016 *qt422016.Writer, msg []byte, statusCode int, headers ...string)

func StreamHeaderHTML

func StreamHeaderHTML(qw422016 *qt422016.Writer, TopMenu Menu)

func WriteAdminHead

func WriteAdminHead(qq422016 qtio422016.Writer, title string)

func WriteDadataHead

func WriteDadataHead(qq422016 qtio422016.Writer)

func WriteDadataScript

func WriteDadataScript(qq422016 qtio422016.Writer, Inputs map[string][]string)

func WriteFooterHTML

func WriteFooterHTML(qq422016 qtio422016.Writer, FooterMenu Menu)

func WriteHTTPResponse added in v1.2.15

func WriteHTTPResponse(qq422016 qtio422016.Writer, msg []byte, statusCode int, headers ...string)

func WriteHeaderHTML

func WriteHeaderHTML(qq422016 qtio422016.Writer, TopMenu Menu)

Types

type HeadHTMLPage

type HeadHTMLPage struct {
	Title      string
	Language   string
	Charset    string
	LinkStyles []string
	MetaTags   []string
	Scripts    []string
}

func (*HeadHTMLPage) HeadHTML

func (head *HeadHTMLPage) HeadHTML() string

func (*HeadHTMLPage) StreamHeadHTML

func (head *HeadHTMLPage) StreamHeadHTML(qw422016 *qt422016.Writer)

func (*HeadHTMLPage) WriteHeadHTML

func (head *HeadHTMLPage) WriteHeadHTML(qq422016 qtio422016.Writer)

type ItemMenu

type ItemMenu struct {
	Content, Link, Label, Name, OnClick, Title, Target string
	SubMenu                                            Menu
}

func (*ItemMenu) AddSubItem added in v1.2.102

func (m *ItemMenu) AddSubItem(item *ItemMenu) error
type Menu []*ItemMenu
func (m Menu) Add(item *ItemMenu) Menu
func (m Menu) FindItem(name string) (*ItemMenu, int)
func (menu Menu) RenderDropdownMenu() string
func (menu Menu) RenderMenu(classMenu, classLi string) string
func (menu Menu) StreamRenderDropdownMenu(qw422016 *qt422016.Writer)
func (menu Menu) StreamRenderMenu(qw422016 *qt422016.Writer, classMenu, classLi string)
func (menu Menu) WriteRenderDropdownMenu(qq422016 qtio422016.Writer)
func (menu Menu) WriteRenderMenu(qq422016 qtio422016.Writer, classMenu, classLi string)
type MenuOwnerBody struct {
	TopMenu Menu
	Title   string
}
func (menu *MenuOwnerBody) MenuOwner() string
func (menu *MenuOwnerBody) StreamMenuOwner(qw422016 *qt422016.Writer)
func (menu *MenuOwnerBody) WriteMenuOwner(qq422016 qtio422016.Writer)

type SearchPanel added in v1.2.54

type SearchPanel struct {
	// contains filtered or unexported fields
}

func NewSearchPanel added in v1.2.55

func NewSearchPanel(action, suggestions, showObject, labelButton, placeholder string, counter int) *SearchPanel

func (*SearchPanel) Render added in v1.2.55

func (s *SearchPanel) Render() string

func (*SearchPanel) StreamRender added in v1.2.55

func (s *SearchPanel) StreamRender(qw422016 *qt422016.Writer)

func (*SearchPanel) WriteRender added in v1.2.55

func (s *SearchPanel) WriteRender(qq422016 qtio422016.Writer)

Jump to

Keyboard shortcuts

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