Documentation
¶
Index ¶
- type Command
- type CommandState
- type ComponentOperationButton
- func (b *ComponentOperationButton) Init(ctx servicehub.Context) error
- func (b *ComponentOperationButton) InitComponent(ctx context.Context)
- func (b *ComponentOperationButton) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (b *ComponentOperationButton) SetComponentValue()
- func (b *ComponentOperationButton) Transfer(component *cptype.Component)
- type Menu
- type Operation
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Key string `json:"key,omitempty"`
Target string `json:"target,omitempty"`
State CommandState `json:"state,omitempty"`
}
type CommandState ¶
type ComponentOperationButton ¶
type ComponentOperationButton struct {
base.DefaultProvider
Type string `json:"type,omitempty"`
Props Props `json:"props"`
// contains filtered or unexported fields
}
func (*ComponentOperationButton) Init ¶
func (b *ComponentOperationButton) Init(ctx servicehub.Context) error
func (*ComponentOperationButton) InitComponent ¶
func (b *ComponentOperationButton) InitComponent(ctx context.Context)
func (*ComponentOperationButton) Render ¶
func (b *ComponentOperationButton) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*ComponentOperationButton) SetComponentValue ¶
func (b *ComponentOperationButton) SetComponentValue()
func (*ComponentOperationButton) Transfer ¶
func (b *ComponentOperationButton) Transfer(component *cptype.Component)
Click to show internal directories.
Click to hide internal directories.