validators

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmPassword

type ConfirmPassword struct {
	Password **walk.LineEdit
}

ConfirmPassword checks whether the input text is equal to the password field.

func (ConfirmPassword) Create

func (c ConfirmPassword) Create() (walk.Validator, error)

type GTE

type GTE struct {
	Value **walk.LineEdit
}

GTE checks whether the input value is greater than or equal to the target value.

func (GTE) Create

func (g GTE) Create() (walk.Validator, error)

type GTEValidator

type GTEValidator struct {
	Value **walk.LineEdit
}

func (*GTEValidator) Validate

func (g *GTEValidator) Validate(v interface{}) error

type PasswordValidator

type PasswordValidator struct {
	Password **walk.LineEdit
}

func (*PasswordValidator) Validate

func (p *PasswordValidator) Validate(v interface{}) error

type Range

type Range struct {
	Min float64
	Max float64
}

Range checks whether the input value is between Min and Max value. Supported widgets: NumberEdit, LineEdit.

func (Range) Create

func (r Range) Create() (walk.Validator, error)

type RangeValidator

type RangeValidator struct {
	*walk.RangeValidator
}

func NewRangeValidator

func NewRangeValidator(min, max float64) (*RangeValidator, error)

func (*RangeValidator) Validate

func (rv *RangeValidator) Validate(v interface{}) error

type Regexp

type Regexp struct {
	Pattern string
}

func (Regexp) Create

func (re Regexp) Create() (walk.Validator, error)

type RegexpValidator

type RegexpValidator struct {
	*walk.RegexpValidator
}

func NewRegexpValidator

func NewRegexpValidator(pattern string) (*RegexpValidator, error)

func (*RegexpValidator) Validate

func (rv *RegexpValidator) Validate(v interface{}) error

type SilentToolTipErrorPresenter

type SilentToolTipErrorPresenter struct {
}

SilentToolTipErrorPresenter hides the tooltip when the input value is empty.

func (SilentToolTipErrorPresenter) Create

type ToolTipErrorPresenter

type ToolTipErrorPresenter struct {
	*walk.ToolTipErrorPresenter
}

func NewToolTipErrorPresenter

func NewToolTipErrorPresenter() (*ToolTipErrorPresenter, error)

func (*ToolTipErrorPresenter) PresentError

func (ttep *ToolTipErrorPresenter) PresentError(err error, widget walk.Widget)

Jump to

Keyboard shortcuts

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