Documentation
¶
Index ¶
- Constants
- func NewError(message string, err error) *tview.Modal
- func NewInfo(message string) *tview.Modal
- func ShowError(page *core.Pages, message string, err error)
- func ShowErrorAndSetFocus(page *core.Pages, message string, err error, setFocus func())
- func ShowInfo(page *core.Pages, message string)
- func ShowInfoModalAndFocus(page *core.Pages, message string, setFocus func())
- type Delete
- type History
- type ServerInfoModal
- type StyleChange
Constants ¶
View Source
const ( HistoryModalId = "History" QueryBarId = "QueryBar" )
View Source
const (
ErrorModalId = "Error"
)
View Source
const (
InfoModalId = "Info"
)
View Source
const ServerInfoModalId = "ServerInfoModal"
View Source
const (
StyleChangeModal = "StyleChangeModal"
)
Variables ¶
This section is empty.
Functions ¶
func ShowErrorAndSetFocus ¶
func ShowInfoModalAndFocus ¶
Types ¶
type Delete ¶
type Delete struct { *core.BaseElement *core.Modal // contains filtered or unexported fields }
func NewDeleteModal ¶
func NewDeleteModal(id tview.Identifier) *Delete
type History ¶
type History struct { *core.BaseElement *primitives.ListModal // contains filtered or unexported fields }
History is a modal with history of queries
func NewHistoryModal ¶
func NewHistoryModal() *History
func (*History) SaveToHistory ¶
SaveToHistory saves text to history file, if it's not already there. It will overwrite oldest entry if history is full.
type ServerInfoModal ¶
type ServerInfoModal struct { *core.BaseElement *primitives.ViewModal // contains filtered or unexported fields }
func NewServerInfoModal ¶
func NewServerInfoModal(dao *mongo.Dao) *ServerInfoModal
func (*ServerInfoModal) Init ¶
func (s *ServerInfoModal) Init(app *core.App)
type StyleChange ¶
type StyleChange struct { *core.BaseElement *primitives.ListModal // contains filtered or unexported fields }
func NewStyleChangeModal ¶
func NewStyleChangeModal() *StyleChange
func (*StyleChange) Render ¶
func (sc *StyleChange) Render()
func (*StyleChange) SetApplyStyle ¶
func (sc *StyleChange) SetApplyStyle(applyStyle func(styleName string) error)
Click to show internal directories.
Click to hide internal directories.