Documentation
¶
Overview ¶
Package types provides specific event type implementations
Package types provides specific event type implementations
Index ¶
Constants ¶
View Source
const (
ActionDisplayOrder = 100
)
Variables ¶
This section is empty.
Functions ¶
func NewActionEvent ¶
func NewActionEvent(actions interface{}, opts ...event.CustomEventOption) event.CustomEvent
NewActionEvent uses strings and makes simple selectable actions in the UI (always displayed last)
func NewTableEvent ¶
func NewTableEvent(tableData TableData, opts ...event.CustomEventOption) event.CustomEvent
NewTableEvent creates a table event with columns and rows
Types ¶
type ActionWrapper ¶
type ActionWrapper struct {
Prompts interface{} `json:"prompts"`
}
type TableColumn ¶
TableColumn represents a column in a table
type TableData ¶
type TableData struct {
Columns []TableColumn `json:"columns"`
Rows []TableRow `json:"rows"`
}
TableData represents the structure of a table
type TableWrapper ¶
type TableWrapper struct {
Table TableData `json:"table"`
}
Click to show internal directories.
Click to hide internal directories.