select_field_component

package
v0.3.16 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLanguagesOptions

func CreateLanguagesOptions(c hiro.Ctx) []select_model.Option[string]

Types

type Props

type Props[T comparable] struct {
	Id          string
	Label       string
	Name        string
	Text        string
	Placeholder string
	Value       T
	Messages    []string
	Required    bool
	Size        string
	Refresh     bool
	OnChange    func(option select_model.Option[T])
	PositionX   string
	PositionY   string
	Nodes       []gox.Node
}

func CreateProps

func CreateProps[T comparable](field form.Field[T]) Props[T]

func (Props[T]) Right added in v0.2.5

func (p Props[T]) Right() Props[T]

func (Props[T]) Top added in v0.2.5

func (p Props[T]) Top() Props[T]

type SelectField

type SelectField[T comparable] struct {
	hiro.Component
	Props   Props[T]                 `json:"-"`
	Options []select_model.Option[T] `json:"-"`
}

func (*SelectField[T]) HandleChooseOption

func (c *SelectField[T]) HandleChooseOption() error

func (*SelectField[T]) Mount

func (c *SelectField[T]) Mount()

func (*SelectField[T]) Name

func (c *SelectField[T]) Name() string

func (*SelectField[T]) Node

func (c *SelectField[T]) Node() Node

Jump to

Keyboard shortcuts

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