options

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnClickHandler

type OnClickHandler func(this application.BaseWidget, e application.Event)

type OnDragEndHandler added in v0.0.6

type OnDragEndHandler func(this application.BaseWidget, e application.Event)

type OnDragHandler added in v0.0.6

type OnDragHandler func(this application.BaseWidget, e application.Event)

type OnDragStartHandler added in v0.0.6

type OnDragStartHandler func(this application.BaseWidget, e application.Event)

type Option

type Option func(widget application.BaseWidget)

func AlignItems

func AlignItems(alignItems theme.AxisAlignmentType) Option

func AlignSelf

func AlignSelf(alignSelf theme.AxisSizeType) Option

func Alt

func Alt(alt string) Option

func BackgroundColor

func BackgroundColor(color string) Option

func BorderColor

func BorderColor(color string) Option

func BorderRadius

func BorderRadius(borderRadius int) Option

func BorderStyle

func BorderStyle(style theme.BorderStyleType) Option

func BorderWidth

func BorderWidth(spacing spacing.Spacing) Option

func BoxShadow

func BoxShadow(shadow string) Option

func ButtonStyle added in v0.0.4

func ButtonStyle(buttonStyle theme_style.ButtonStyle) Option

func Class

func Class(class string) Option

func ColumnCount

func ColumnCount(columnCount ...breakpoint.BreakpointOptions[int]) Option

func ColumnGap

func ColumnGap(columnGap int) Option

func ContainerStyle added in v0.0.4

func ContainerStyle(containerStyle theme_style.ContainerStyle) Option

func D

func D(data string) Option

func Display

func Display(display theme.DisplayType) Option

func Draggable added in v0.0.6

func Draggable(draggable bool) Option

func Fill

func Fill(fill string) Option

func Flex

func Flex(flex int) Option

func FlexDirection

func FlexDirection(flexDirection theme.FlexDirectionType) Option

func FlexWrap

func FlexWrap(flexWrap theme.FlexWrapType) Option

func FontColor

func FontColor(color string) Option

func FontFamily

func FontFamily(fontFamily string) Option

func FontSize

func FontSize(fontSize int) Option

func FontWeight

func FontWeight(fontWeight string) Option

func Height

func Height(options ...breakpoint.BreakpointOptions[int]) Option

func Href

func Href(href string) Option

func ID

func ID(id string) Option

func JustifyContent

func JustifyContent(justifyContent theme.AxisAlignmentType) Option

func Label added in v0.0.5

func Label(label string) Option

func LetterSpacing added in v0.0.4

func LetterSpacing(letterSpacing float64) Option

func LineHeight

func LineHeight(lineHeight float64) Option

func Margin

func MaxWidth

func MaxWidth(options ...breakpoint.BreakpointOptions[int]) Option

func NewTab

func NewTab(newTab bool) Option

func OnClick

func OnClick(handler OnClickHandler) Option

func OnDrag added in v0.0.6

func OnDrag(handler OnDragHandler) Option

func OnDragEnd added in v0.0.6

func OnDragEnd(handler OnDragEndHandler) Option

func OnDragStart added in v0.0.6

func OnDragStart(handler OnDragStartHandler) Option

func Opacity added in v0.0.4

func Opacity(opacity float64) Option

func Overflow

func Overflow(overflow theme.OverflowType) Option

func Padding

func Padding(options ...breakpoint.BreakpointOptions[spacing.Spacing]) Option

func RowGap

func RowGap(rowGap int) Option

func SetText

func SetText(text string) Option

func TextAlign

func TextAlign(textAlign theme.TextAlignType) Option

func TextStyle added in v0.0.4

func TextStyle(textStyle theme_style.TextStyle) Option

func Tooltip

func Tooltip(tooltip string) Option

func Transition

func Transition(seconds float64) Option

func UserSelect

func UserSelect(userSelect theme.UserSelectType) Option

func Visible

func Visible(options ...breakpoint.BreakpointOptions[bool]) Option

func Width

func Width(options ...breakpoint.BreakpointOptions[int]) Option

func WidthP

func WidthP(options ...breakpoint.BreakpointOptions[float64]) Option

type OptionWrapper

type OptionWrapper func() Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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