searchable

package
v0.0.0-...-925651e Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Name  interface{}
	Input Input
}

type Input

type Input struct {
	Visible       bool
	Placeholder   interface{}
	Value         interface{}
	CanSearch     bool
	SearchColumn  []string
	SearchPattern string
}

type Table

type Table struct {
	Paginate    paginate.Paginate `json:"paginate"`
	Headers     []Header          `json:"headers"`
	Params      map[string]string `json:"params"`
	OrderByCol  *string           `json:"order_by_col"`
	OrderBySort *string           `json:"order_by_sort"`
}

func (Table) QueryCount

func (st Table) QueryCount(table string) sq.SelectBuilder

func (*Table) QuerySelect

func (st *Table) QuerySelect(table string) sq.SelectBuilder

Jump to

Keyboard shortcuts

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