Documentation ¶
Index ¶
- func CheckSave(field *conf.Field[fyne.CanvasObject]) (ok bool)
- func CheckWidget(field *conf.Field[fyne.CanvasObject]) (w fyne.CanvasObject, h, ok bool)
- func GetValue[T Types[T]](val T) string
- func GetWidgetValue[T Types[T]](val T, field *conf.Field[fyne.CanvasObject]) string
- func NewWidget[T Types[T], F any](field *conf.Field[F]) (fyne.CanvasObject, bool)
- func SetValue[T Types[T], F any](field *conf.Field[F], val string)
- type Email
- type Multiline
- type Password
- type RadioGroup
- func (o RadioGroup) GetHorizontal() bool
- func (o RadioGroup) GetOptions() []string
- func (o RadioGroup) GetParams() (options []string, horizontal bool)
- func (o RadioGroup) GetSelected() int
- func (o RadioGroup) GetValue() (s string)
- func (p RadioGroup) GetWidgetValue(field *conf.Field[fyne.CanvasObject]) string
- func (o RadioGroup) NewWidget() (fyne.CanvasObject, bool)
- func (o *RadioGroup) SetHorizontal()
- func (o *RadioGroup) SetOptions(options []string)
- func (o RadioGroup) SetValue(val string) RadioGroup
- func (o *RadioGroup) SetVertical()
- type Types
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSave ¶ added in v0.0.7
CheckSave checks if the field type is supported get widget value and set it to field using SetValue.
func CheckWidget ¶ added in v0.0.7
CheckWidget creates and returns widget and true if the field type is supported.
func GetWidgetValue ¶ added in v0.0.7
GetWidgetValue returns the widget value.
Types ¶
type Email ¶ added in v0.0.7
type Email string
Email type.
func (Email) GetWidgetValue ¶ added in v0.0.7
GetWidgetValue returns the widget value.
type Multiline ¶ added in v0.0.7
Password type.
func (Multiline) GetNumRows ¶ added in v0.0.7
GetNumRows returns the number of visible rows without scrolling of the multiline entry.
func (Multiline) GetWidgetValue ¶ added in v0.0.7
GetWidgetValue returns the widget value.
func (Multiline) NewWidget ¶ added in v0.0.7
NewWidget creates and returns widget and true if hint for this field is supported.
func (*Multiline) SetNumRows ¶ added in v0.0.7
SetNumRows sets the number of visible rows without scrolling of the widget.
type Password ¶
type Password string
Password type.
func (Password) GetWidgetValue ¶ added in v0.0.7
GetWidgetValue returns the widget value.
type RadioGroup ¶
type RadioGroup struct { Options []string `json:"options"` Horizontal bool `json:"horizontal"` Selected int `json:"selected"` }
RadioGroup type.
func (RadioGroup) GetHorizontal ¶
func (o RadioGroup) GetHorizontal() bool
GetHorizontal returns the horizontal type of the radio group type or false.
func (RadioGroup) GetOptions ¶
func (o RadioGroup) GetOptions() []string
GetOptions returns the options of the radio group.
func (RadioGroup) GetParams ¶ added in v0.0.7
func (o RadioGroup) GetParams() (options []string, horizontal bool)
GetParams returns the options, horizontal layout flag, and selected option string.
func (RadioGroup) GetSelected ¶
func (o RadioGroup) GetSelected() int
GetSelected returns the selected option index of the radio group.
func (RadioGroup) GetValue ¶
func (o RadioGroup) GetValue() (s string)
GetValue returns the selected option string of the radio group.
func (RadioGroup) GetWidgetValue ¶ added in v0.0.7
func (p RadioGroup) GetWidgetValue(field *conf.Field[fyne.CanvasObject]) string
GetWidgetValue returns the widget value.
func (RadioGroup) NewWidget ¶ added in v0.0.7
func (o RadioGroup) NewWidget() (fyne.CanvasObject, bool)
NewWidget creates and returns widget and true if hint for this field is supported.
func (*RadioGroup) SetHorizontal ¶ added in v0.0.7
func (o *RadioGroup) SetHorizontal()
SetHorizontal sets the horizontal type of the radio group type.
func (*RadioGroup) SetOptions ¶ added in v0.0.7
func (o *RadioGroup) SetOptions(options []string)
SetOptions sets the options of the radio group.
func (RadioGroup) SetValue ¶
func (o RadioGroup) SetValue(val string) RadioGroup
SetValue sets the selected option index of the radio group by the given string value.
func (*RadioGroup) SetVertical ¶ added in v0.0.7
func (o *RadioGroup) SetVertical()
SetVertical sets the vertical type of the radio group type.