package
Version:
v0.0.0-...-8e5a076
Opens a new window with list of versions in this module.
Published: Sep 26, 2024
License: GPL-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var DefaultStyle = Style{
Text: label.Style{
Color: color.Black,
},
Bg: rect.Style{
Color: color.White,
Padding: RectXY(4, 2),
Basis: Pct(100),
Shrink: Shrink(1),
Grow: Grow(1),
Radius: Px(5),
Border: Border{
Width: Px(1),
Color: color.Black,
},
},
}
View Source
var InputErrorStyle = Style{
Text: label.Style{
Color: color.Black,
},
Bg: rect.Style{
Color: color.White,
Padding: RectXY(4, 2),
Basis: Pct(100),
Shrink: Shrink(1),
Grow: Grow(1),
Radius: Px(5),
Border: Border{
Width: Px(1),
Color: color.Red,
},
},
}
type Props struct {
Style Style
Text string
OnChange func(string)
OnBlur func()
OnAccept func()
OnReject func()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.