Documentation ¶
Index ¶
- func FilterItem(title, value string) string
- func InlineRadio(inputattr map[string]string) *dom.HTMLDivElement
- func NewBSButtonWithIcon(buttonAttrs ButtonAttributes, iconAttrs IconAttributes, ...) *bsButtonWithIcon
- func NewBr(args BrAttributes) *br
- func NewButton(args ButtonAttributes) *button
- func NewDiv(args DivAttributes) *div
- func NewIcon(args IconAttributes) *icon
- func NewImg(args ImgAttributes) *img
- func NewLi(args LiAttributes) *li
- func NewRadio(args RadioAttributes) *radio
- func NewSpan(args SpanAttributes) *span
- func NewUl(args UlAttributes) *ul
- func Permission(entityID int, entityName string, ismanager bool) *dom.HTMLDivElement
- func PermissionWrapper(this js.Value, args []js.Value) interface{}
- func Title(msgText string, msgType string) *dom.HTMLDivElement
- func TitleWrapper(this js.Value, args []js.Value) interface{}
- type BaseAttributes
- type BrAttributes
- type ButtonAttributes
- type DivAttributes
- type IconAttributes
- type ImgAttributes
- type LiAttributes
- type Link
- type LinkAttributes
- type Option
- type OptionAttributes
- type RadioAttributes
- type SpanAttributes
- type UlAttributes
- type Widget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterItem ¶
func InlineRadio ¶
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 ¶
Permission return a widget to setup people permissions
Types ¶
type BaseAttributes ¶
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 LiAttributes ¶
type LiAttributes struct { BaseAttributes Text string }
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.