filter

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: AGPL-3.0 Imports: 0 Imported by: 0

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"`
}

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"`
	Type        PropConditionType      `json:"type,omitempty"`
	QuickSelect QuickSelect            `json:"quickSelect,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"`
}

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 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