list

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type ClickOperation

type ClickOperation struct {
	Key     string  `json:"key"`
	Show    bool    `json:"show"`
	Reload  bool    `json:"reload"`
	Command Command `json:"command"`
}

type Command

type Command struct {
	Key    string `json:"key"`
	Target string `json:"target"`
}

type ComponentList

type ComponentList struct {
	CtxBdl     protocol.ContextBundle
	Operations map[string]interface{} `json:"operations"`
	State      State                  `json:"state"`
	Props      Props                  `json:"props"`
	Data       []Org                  `json:"data"`
}

func (*ComponentList) ExitOrg

func (i *ComponentList) ExitOrg(event apistructs.ComponentEvent) error

func (*ComponentList) RenderMyOrgs

func (i *ComponentList) RenderMyOrgs() error

func (*ComponentList) SetCtxBundle

func (i *ComponentList) SetCtxBundle(b protocol.ContextBundle) error

type ExitOperation

type ExitOperation struct {
	Key     string `json:"key"`
	Text    string `json:"text"`
	Reload  bool   `json:"reload"`
	Confirm string `json:"confirm"`
	Meta    Meta   `json:"meta"`
}

type ExtraInfo

type ExtraInfo struct {
	Icon    string `json:"icon"`
	Text    string `json:"text"`
	ToolTip string `json:"tooltip"`
}

type ManageOperation

type ManageOperation struct {
	Key     string  `json:"key"`
	Text    string  `json:"text"`
	Reload  bool    `json:"reload"`
	Command Command `json:"command"`
}

type Meta

type Meta struct {
	Id uint64 `json:"id"`
}

type OperationBase

type OperationBase struct {
	Key    string `json:"key"`
	Reload bool   `json:"reload"`
}

type Option

type Option struct {
	Key  string `json:"key"`
	Text string `json:"text"`
}

type Org

type Org struct {
	Id          uint64                 `json:"id"`
	Title       string                 `json:"title"`
	Description string                 `json:"description"`
	PrefixImg   string                 `json:"prefixImg"`
	ExtraInfos  []ExtraInfo            `json:"extraInfos"`
	Operations  map[string]interface{} `json:"operations"`
}

type Props

type Props struct {
	PageSizeOptions []string `json:"pageSizeOptions"`
	Visible         bool     `json:"visible"`
}

type State

type State struct {
	PageNo        int    `json:"pageNo"`
	PageSize      int    `json:"pageSize"`
	Total         int    `json:"total"`
	SearchEntry   string `json:"searchEntry"`
	SearchRefresh bool   `json:"searchRefresh"`
	IsEmpty       bool   `json:"isEmpty"`
}

Jump to

Keyboard shortcuts

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