filter

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonFilter

type CommonFilter struct {
	Version    string                     `json:"version,omitempty"`
	Name       string                     `json:"name,omitempty"`
	Type       string                     `json:"type,omitempty"`
	Props      Props                      `json:"props,omitempty"`
	Operations map[OperationKey]Operation `json:"operations,omitempty"`
}

type Operation

type Operation struct {
	Key      OperationKey           `json:"key,omitempty"`
	Reload   bool                   `json:"reload,omitempty"`
	Meta     map[string]interface{} `json:"meta,omitempty"`
	FillMeta string                 `json:"fillMeta,omitempty"`
}

type OperationKey

type OperationKey string

func (OperationKey) String

func (k OperationKey) String() string

type PropCondition

type PropCondition struct {
	Key         PropConditionKey       `json:"key,omitempty"`
	Label       string                 `json:"label,omitempty"`
	EmptyText   string                 `json:"emptyText,omitempty"`
	Fixed       bool                   `json:"fixed,omitempty"`
	ShowIndex   int                    `json:"showIndex,omitempty"`
	HaveFilter  bool                   `json:"haveFilter,omitempty"`
	Split       bool                   `json:"split,omitempty"`
	Type        PropConditionType      `json:"type,omitempty"`
	QuickSelect QuickSelect            `json:"quickSelect,omitempty"`
	QuickAdd    QuickAdd               `json:"quickAdd,omitempty"`
	QuickDelete QuickDelete            `json:"quickDelete,omitempty"`
	Placeholder string                 `json:"placeholder,omitempty"`
	Options     []PropConditionOption  `json:"options,omitempty"`
	CustomProps map[string]interface{} `json:"customProps,omitempty"`
}

type PropConditionKey

type PropConditionKey string

func (PropConditionKey) String

func (k PropConditionKey) String() string

type PropConditionOption

type PropConditionOption struct {
	Label    string                `json:"label,omitempty"`
	Value    interface{}           `json:"value,omitempty"`
	Icon     string                `json:"icon,omitempty"`
	Children []PropConditionOption `json:"children,omitempty"`
}

type PropConditionType

type PropConditionType string
var (
	PropConditionTypeSelect    PropConditionType = "select"
	PropConditionTypeInput     PropConditionType = "input"
	PropConditionTypeDateRange PropConditionType = "dateRange"
)

type Props

type Props struct {
	Delay uint64 `json:"delay,omitempty"`
}

type QuickAdd added in v1.3.0

type QuickAdd struct {
	OperationKey OperationKey `json:"operationKey,omitempty"`
	Placeholder  string       `json:"placeholder,omitempty"`
	Show         bool         `json:"show"`
}

type QuickDelete added in v1.3.0

type QuickDelete struct {
	OperationKey OperationKey `json:"operationKey,omitempty"`
}

type QuickSelect

type QuickSelect struct {
	Label        string       `json:"label,omitempty"`
	OperationKey OperationKey `json:"operationKey,omitempty"`
}

type StateKey

type StateKey string

Jump to

Keyboard shortcuts

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