enum

package
v0.0.0-...-cf9a1e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Align

type Align int
const (
	AlignNone Align = iota
	AlignStart
	AlignEnd
	AlignCenter
	AlignBetween
	AlignAround
	AlignEvenly
	AlignBaseline
	AlignStretch
)

func (Align) ApplyHorizontal

func (i Align) ApplyHorizontal(obj ObjRef) (ret bool)

func (Align) ApplyVertical

func (i Align) ApplyVertical(obj ObjRef) (ret bool)

func (Align) Horizontal

func (i Align) Horizontal() string

func (Align) IsHorizontal

func (i Align) IsHorizontal() bool

func (Align) IsVertical

func (i Align) IsVertical() bool

func (Align) String

func (i Align) String() string

func (Align) UnapplyHorizontal

func (i Align) UnapplyHorizontal(obj ObjRef) (ret bool)

func (Align) UnapplyVertical

func (i Align) UnapplyVertical(obj ObjRef) (ret bool)

func (Align) Vertical

func (i Align) Vertical() string

type BorderType

type BorderType int
const (
	BorderNone BorderType = iota
	Border
	BorderTop
	BorderEnd
	BorderBottom
	BorderStart
	Border0
	BorderTop0
	BorderEnd0
	BorderBottom0
	BorderStart0
)

func (BorderType) Apply

func (i BorderType) Apply(obj ObjRef) (ret bool)

func (BorderType) String

func (i BorderType) String() string

func (BorderType) Unapply

func (i BorderType) Unapply(obj ObjRef) (ret bool)

type ButtonType

type ButtonType int
const (
	Button ButtonType = iota
	Submit
	Reset
)

func (*ButtonType) SetString

func (i *ButtonType) SetString(s string)

func (ButtonType) String

func (i ButtonType) String() string

type Color

type Color int
const (
	None Color = iota
	Link
	Transparent
	Primary
	Secondary
	Success
	Info
	Warning
	Danger
	Light
	Dark
	White
	Body
	Black50
	White50
	Muted
)

func (Color) Apply

func (i Color) Apply(obj ObjRef, s ...string)

func (Color) ApplyAlert

func (i Color) ApplyAlert(obj ObjRef) (ret bool)

func (Color) ApplyBackground

func (i Color) ApplyBackground(obj ObjRef) (ret bool)

func (Color) ApplyBorder

func (i Color) ApplyBorder(obj ObjRef) (ret bool)

func (Color) ApplyButton

func (i Color) ApplyButton(obj ObjRef) (ret bool)

func (Color) ApplyOutlineButton

func (i Color) ApplyOutlineButton(obj ObjRef) (ret bool)

func (Color) ApplyText

func (i Color) ApplyText(obj ObjRef) (ret bool)

func (Color) IsBGColor

func (i Color) IsBGColor() bool

func (Color) IsTextColor

func (i Color) IsTextColor() bool

func (Color) IsTheme

func (i Color) IsTheme() bool

func (*Color) SetString

func (i *Color) SetString(s string)

func (Color) String

func (i Color) String() string

func (Color) Style

func (i Color) Style(s ...string) string

func (Color) Unapply

func (i Color) Unapply(obj ObjRef, s ...string)

func (Color) UnapplyAlert

func (i Color) UnapplyAlert(obj ObjRef) (ret bool)

func (Color) UnapplyBackground

func (i Color) UnapplyBackground(obj ObjRef) (ret bool)

func (Color) UnapplyBorder

func (i Color) UnapplyBorder(obj ObjRef) (ret bool)

func (Color) UnapplyButton

func (i Color) UnapplyButton(obj ObjRef) (ret bool)

func (Color) UnapplyOutlineButton

func (i Color) UnapplyOutlineButton(obj ObjRef) (ret bool)

func (Color) UnapplyText

func (i Color) UnapplyText(obj ObjRef) (ret bool)

type Decoration

type Decoration int
const (
	DecorationReset Decoration = iota
	DecorationNone
	DecorationUnderline
	DecorationLineThrough
)

func (Decoration) Apply

func (i Decoration) Apply(obj ObjRef) (ret bool)

func (Decoration) IsDecoration

func (i Decoration) IsDecoration() bool

func (Decoration) String

func (i Decoration) String() string

func (Decoration) Unapply

func (i Decoration) Unapply(obj ObjRef) (ret bool)

type FlexMode

type FlexMode int
const (
	FlexModeNone FlexMode = iota
	FlexModeRow
	FlexModeColumn
)

func (FlexMode) Apply

func (i FlexMode) Apply(obj ObjRef) bool

func (FlexMode) String

func (i FlexMode) String() string

func (FlexMode) Unapply

func (i FlexMode) Unapply(obj ObjRef) bool

type FontWeight

type FontWeight int
const (
	FontWeightNone FontWeight = iota
	FontWeightBold
	FontWeightBolder
	FontWeightNormal
	FontWeightLight
	FontWeightLighter
)

func (FontWeight) Apply

func (i FontWeight) Apply(obj ObjRef) (ret bool)

func (FontWeight) IsFontWeight

func (i FontWeight) IsFontWeight() bool

func (FontWeight) String

func (i FontWeight) String() string

func (FontWeight) Unapply

func (i FontWeight) Unapply(obj ObjRef) (ret bool)

type ItemsPerRow

type ItemsPerRow int
const (
	N1PerRow  ItemsPerRow = 12
	N2PerRow  ItemsPerRow = 6
	N3PerRow  ItemsPerRow = 4
	N4PerRow  ItemsPerRow = 3
	N6PerRow  ItemsPerRow = 2
	N12PerRow ItemsPerRow = 1
)

func (ItemsPerRow) String

func (i ItemsPerRow) String() string

type ObjRef

type ObjRef interface {
	Ref() *js.Element
}

type Pos

type Pos int
const (
	All Pos = iota
	Top
	Bottom
	Start
	End
	X
	Y
)

func (Pos) Margin

func (i Pos) Margin(s Size) string

func (Pos) Padding

func (i Pos) Padding(s Size) string

func (Pos) String

func (i Pos) String() string

type RoundedType

type RoundedType int
const (
	RoundedNone RoundedType = iota
	RoundedPill
	RoundedCircle
	RoundedStart
	RoundedEnd
	RoundedTop
	RoundedBottom
	Rounded
)

func (RoundedType) Apply

func (i RoundedType) Apply(obj ObjRef) (ret bool)

func (RoundedType) String

func (i RoundedType) String() string

func (RoundedType) Unapply

func (i RoundedType) Unapply(obj ObjRef) (ret bool)

type Size

type Size int
const (
	N0 Size = iota
	N1
	N2
	N3
	N4
	N5
	N6
	N7
	N8
	N9
	N10
	N11
	N12
	Auto
	N50
	N100
	Small
	Medium
	Large
	Extra
)

func (Size) ApplyBorder

func (i Size) ApplyBorder(obj ObjRef) (ret bool)

func (Size) ApplyFont

func (i Size) ApplyFont(obj ObjRef) (ret bool)

func (Size) Col

func (i Size) Col() string

func (Size) Gutter

func (i Size) Gutter(pos Pos) string

func (*Size) SetString

func (i *Size) SetString(s string)

func (Size) String

func (i Size) String() string

func (Size) Style

func (i Size) Style(s string) string

func (Size) UnapplyBorder

func (i Size) UnapplyBorder(obj ObjRef) (ret bool)

func (Size) UnapplyFont

func (i Size) UnapplyFont(obj ObjRef) (ret bool)

type SpinnerType

type SpinnerType int
const (
	SpinnerBorder SpinnerType = iota
	SpinnerGrow
)

func (SpinnerType) String

func (i SpinnerType) String() string

Jump to

Keyboard shortcuts

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