tabs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OperationKeyOnChange = "onChange"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientData

type ClientData struct {
	Value string `json:"value"`
}

type ComponentFilter

type ComponentFilter struct {
	State      State                `json:"state,omitempty"`
	Data       Data                 `json:"data"`
	Operations map[string]Operation `json:"operations"`
	// contains filtered or unexported fields
}

func (*ComponentFilter) InitFromProtocol

func (f *ComponentFilter) InitFromProtocol(ctx context.Context, c *cptype.Component, gs *cptype.GlobalStateData) error

func (*ComponentFilter) Render

func (*ComponentFilter) SetToProtocolComponent

func (f *ComponentFilter) SetToProtocolComponent(c *cptype.Component) error

type Data

type Data struct {
	Options []Option `json:"options"`
}

type Operation

type Operation struct {
	ClientData ClientData `json:"clientData"`
}

type Option

type Option struct {
	Value string `json:"value"`
	Label string `json:"label"`
}

type State

type State struct {
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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