table

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func False

func False() *bool

func True

func True() *bool

Types

type AndMatcher

type AndMatcher struct {
	// contains filtered or unexported fields
}

func And

func And(matchers ...Matcher) *AndMatcher

func (*AndMatcher) Match

func (m *AndMatcher) Match(v interface{}) bool

type ColumnData

type ColumnData struct {
	Value      string                `json:"value"`
	RenderType string                `json:"renderType,omitempty"`
	Tags       []ColumnDataTag       `json:"tags,omitempty"`
	Operations map[string]*Operation `json:"operations,omitempty"`
}

type ColumnDataTag

type ColumnDataTag struct {
	Tag   string `json:"tag"`
	Color string `json:"color"`
}

type ColumnTitle

type ColumnTitle struct {
	Title           string      `json:"title"`
	DataIndex       string      `json:"dataIndex"`
	TitleRenderType string      `json:"titleRenderType"`
	Width           int         `json:"width,omitempty"`
	TitleTip        []string    `json:"titleTip"`
	Data            interface{} `json:"data"`
}

type FuncMatcher

type FuncMatcher struct {
	// contains filtered or unexported fields
}

func ToMatcher

func ToMatcher(m Match) *FuncMatcher

func (*FuncMatcher) Match

func (m *FuncMatcher) Match(v interface{}) bool

type Match

type Match func(v interface{}) bool

type Matcher

type Matcher interface {
	Match(interface{}) bool
}

func Not

func Not(matcher Matcher) Matcher

type NotMatcher

type NotMatcher struct {
	// contains filtered or unexported fields
}

func (*NotMatcher) Match

func (m *NotMatcher) Match(v interface{}) bool

type Operation

type Operation struct {
	Key    string `json:"key"`
	Text   string `json:"text,omitempty"`
	Reload bool   `json:"reload"`

	// command vs meta
	Command *OperationCommand `json:"command,omitempty"`
	Meta    map[string]string `json:"meta,omitempty"`

	ShowIndex int `json:"showIndex,omitempty"`

	Disabled    bool   `json:"disabled"`
	DisabledTip string `json:"disabledTip,omitempty"`

	Confirm    string `json:"confirm,omitempty"`
	SuccessMsg string `json:"successMsg,omitempty"`
}

type OperationCommand

type OperationCommand struct {
	Key    string                 `json:"key"`
	State  map[string]interface{} `json:"state,omitempty"`
	Target string                 `json:"target,omitempty"`
}

type OrMatcher

type OrMatcher struct {
	// contains filtered or unexported fields
}

func Or

func Or(matchers ...Matcher) *OrMatcher

func (*OrMatcher) Match

func (m *OrMatcher) Match(v interface{}) bool

type Props

type Props struct {
	ShowHeader      *bool                  `json:"showHeader,omitempty"`
	ShowPagination  *bool                  `json:"pagination,omitempty"`
	PageSizeOptions []string               `json:"pageSizeOptions"`
	Columns         []*ColumnTitle         `json:"columns"`
	RowKey          string                 `json:"rowKey"`
	ClassName       string                 `json:"className"`
	Title           string                 `json:"title"`
	Size            string                 `json:"size"`
	Visible         *bool                  `json:"visible,omitempty"`
	Bordered        *bool                  `json:"bordered,omitempty"`
	RowSelection    map[string]interface{} `json:"rowSelection"`
	RequestIgnore   []string               `json:"requestIgnore,omitempty"`
}

Jump to

Keyboard shortcuts

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