Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorFieldsLenMismtach = errors.New("fields and rows fields len mismtach")
)
Functions ¶
This section is empty.
Types ¶
type Datatable ¶
type Datatable[T any] struct { hiro.Component Props Props `json:"-"` Param dyna.Param `json:"-"` Query dyna.Query `json:"-"` FindDataFunc func(param dyna.Param, t any) error `json:"-"` FieldsFunc func() []Field `json:"-"` RowFunc func(builder RowBuilder[T]) Node `json:"-"` Data []T `json:"-"` // contains filtered or unexported fields }
func (*Datatable[T]) HandleLoadMore ¶
func (*Datatable[T]) HandleOrder ¶
func (*Datatable[T]) HandleSearch ¶
type FieldConfig ¶ added in v0.2.2
type FieldConfig struct {
Truncate bool
}
type RowBuilder ¶
type RowBuilder[T any] interface { Data() T Row(nodes ...Node) Node Field(node Node, config ...FieldConfig) Node Link(link string, nodes ...Node) Node }
Click to show internal directories.
Click to hide internal directories.