autocomplete_component

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autocomplete

type Autocomplete[T comparable] struct {
	hiro.Component
	Props        Props[T]                            `json:"-"`
	Param        hiro.Map                            `json:"-"`
	Query        dyna.Query                          `json:"-"`
	Options      []select_model.Option[T]            `json:"-"`
	Offset       int                                 `json:"-"`
	FindDataFunc func(param dyna.Param, t any) error `json:"-"`
}

func (*Autocomplete[T]) HandleChooseOption

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

func (*Autocomplete[T]) HandleLoadMore

func (c *Autocomplete[T]) HandleLoadMore() error

func (*Autocomplete[T]) HandleSearch

func (c *Autocomplete[T]) HandleSearch() error

func (*Autocomplete[T]) Mount

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

func (*Autocomplete[T]) Name

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

func (*Autocomplete[T]) Node

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

type Props

type Props[T comparable] struct {
	Id        string
	Label     string
	Name      string
	Text      string
	Value     T
	Messages  []string
	Required  bool
	PositionX string
	PositionY string
	Sync      string
}

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 Query

type Query struct {
	Table string
	Title string
	Value string
}

func CreateQuery

func CreateQuery(table, title, value string) Query

Jump to

Keyboard shortcuts

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