widgets

package
v0.0.0-...-fab95c1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterItem

func FilterItem(title, value string) string

func InlineRadio

func InlineRadio(inputattr map[string]string) *dom.HTMLDivElement

InlineRadio return a radio inline block

func NewBSButtonWithIcon

func NewBSButtonWithIcon(buttonAttrs ButtonAttributes, iconAttrs IconAttributes, buttonStyles []themes.BSClass) *bsButtonWithIcon

func NewBr

func NewBr(args BrAttributes) *br

func NewButton

func NewButton(args ButtonAttributes) *button

func NewDiv

func NewDiv(args DivAttributes) *div

func NewIcon

func NewIcon(args IconAttributes) *icon

func NewImg

func NewImg(args ImgAttributes) *img

func NewLi

func NewLi(args LiAttributes) *li

func NewRadio

func NewRadio(args RadioAttributes) *radio

func NewSpan

func NewSpan(args SpanAttributes) *span

func NewUl

func NewUl(args UlAttributes) *ul

func Permission

func Permission(entityID int, entityName string, ismanager bool) *dom.HTMLDivElement

Permission return a widget to setup people permissions

func PermissionWrapper

func PermissionWrapper(this js.Value, args []js.Value) interface{}

func Title

func Title(msgText string, msgType string) *dom.HTMLDivElement

Title returns a page title with a customized icon

func TitleWrapper

func TitleWrapper(this js.Value, args []js.Value) interface{}

Types

type BaseAttributes

type BaseAttributes struct {
	Id         string
	Classes    []string
	Attributes map[string]string
	Visible    bool
}

type BrAttributes

type BrAttributes struct {
	BaseAttributes
}

type ButtonAttributes

type ButtonAttributes struct {
	BaseAttributes
	Label string
	Title string
}

type DivAttributes

type DivAttributes struct {
	BaseAttributes
}

type IconAttributes

type IconAttributes struct {
	BaseAttributes
	Text  string
	Title string
	Icon  themes.MDIcon
}

type ImgAttributes

type ImgAttributes struct {
	BaseAttributes
	Src             string
	Alt             string
	Title           string
	Height          string
	Width           string
	BackgroundColor string
}

type LiAttributes

type LiAttributes struct {
	BaseAttributes
	Text string
}
type Link struct {
	Widget
}
func NewLink(args LinkAttributes) *Link

type LinkAttributes

type LinkAttributes struct {
	BaseAttributes
	Title   string
	Href    string
	Target  string
	Onclick string
	Label   dom.HTMLElement
}

type Option

type Option struct {
	Widget
}

func NewOption

func NewOption(args OptionAttributes) *Option

type OptionAttributes

type OptionAttributes struct {
	BaseAttributes
	Text            string
	Value           string
	DefaultSelected bool
	Selected        bool
}

type RadioAttributes

type RadioAttributes struct {
	BaseAttributes
	Checked bool
}

type SpanAttributes

type SpanAttributes struct {
	BaseAttributes
	Text string
}

type UlAttributes

type UlAttributes struct {
	BaseAttributes
}

type Widget

type Widget struct {
	dom.HTMLElement
}

func (Widget) SetBaseAttributes

func (w Widget) SetBaseAttributes(a BaseAttributes)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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