widgets

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WidgetHandlers = map[string]process.Handler{
	"apis":    processApis,
	"actions": processActions,
	"models":  processModels,
	"fields":  processFields,
	"filters": processFilters,
}

WidgetHandlers Processes

Functions

func Grouping added in v0.10.3

func Grouping(items map[string]interface{}) map[string]interface{}

Grouping by name

func Load

func Load(cfg config.Config) error

Load the widgets

func Sort added in v0.10.3

func Sort(items []Item, orders []string)

Sort items

Types

type Item added in v0.10.3

type Item struct {
	Name     string      `json:"name,omitempty"`
	Data     interface{} `json:"data,omitempty"`
	Children []Item      `json:"children,omitempty"`
}

Item the item

func Actions added in v0.10.3

func Actions() []Item

Actions return loaded widgets actions

func Apis added in v0.10.3

func Apis() []Item

Apis return loaded apis

func Array added in v0.10.3

func Array(groupingItems map[string]interface{}, res []Item) []Item

Array to Array

func Fields added in v0.10.3

func Fields() []Item

Fields return loaded widgets fields

func Filters added in v0.10.3

func Filters() []Item

Filters return loaded widgets filters

func Models added in v0.10.3

func Models() []Item

Models return loaded models

type WidgetAction added in v0.10.3

type WidgetAction interface {
	Actions() []component.ActionsExport
}

WidgetAction the widget actionlist

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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