bstable

package
v0.0.0-...-fab95c1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryParamsFromJsJSONValue

func QueryParamsFromJsJSONValue(jsvalue js.Value) ajax.QueryParams

QueryParamsFromJsJSONValue converts a JS JSON into a Go queryParams.

Types

type Bootstraptable

type Bootstraptable struct {
	jquery.Jquery
	// contains filtered or unexported fields
}

func NewBootstraptable

func NewBootstraptable(jq jquery.Jquery, params *BootstraptableParams) Bootstraptable

func (Bootstraptable) Refresh

func (bt Bootstraptable) Refresh(params *BootstraptableRefreshQuery)

func (Bootstraptable) ResetSearch

func (bt Bootstraptable) ResetSearch(search string)

func (Bootstraptable) TotalRows

func (bt Bootstraptable) TotalRows() int

type BootstraptableParams

type BootstraptableParams struct {
	Ajax                 string      `json:"ajax"` // name of the Ajax function to call.
	FormatLoadingMessage interface{} `json:"formatLoadingMessage,omitempty"`
}

func (BootstraptableParams) ToJsValue

func (p BootstraptableParams) ToJsValue() js.Value

ToJsValue converts a Go BootstraptableParams into a JS JSON.

type BootstraptableRefreshQuery

type BootstraptableRefreshQuery struct {
	// Query map[string]string `json:"query"`
	Query ajax.QueryFilter `json:"query"`
}

func (BootstraptableRefreshQuery) ToJsValue

func (p BootstraptableRefreshQuery) ToJsValue() js.Value

ToJsValue converts a Go BootstraptableRefreshQuery into a JS JSON.

Jump to

Keyboard shortcuts

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