filter

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.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"`
	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"`
	Required    bool                   `json:"required,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"
	PropConditionTypeRangePicker PropConditionType = "rangePicker"
)

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