Documentation
¶
Index ¶
- func Checkbox(label string, checked *bool, onFocus func(), onBlur func()) *tview.Checkbox
- func CloseFilter(filter *tview.InputField)
- func CloseModal()
- func CreateButton(label string) *tview.Button
- func CreateFilter() *tview.InputField
- func CreateOutputView(title string) (*tview.TextView, *misc.ThreadSafeWriter)
- func CreateSearch() *tview.InputField
- func CreateText(title string) *tview.TextView
- func CreateTextArea(title string) *tview.TextArea
- func EmptySearch()
- func InitFilter(filter *tview.InputField, text string)
- func IsModalOpen() bool
- func OpenModal(pageTitle string, title string, contentPane *tview.Flex, width int, height int)
- func OpenTextModal(pageTitle string, text_color string, text_no_color string, title string)
- func SearchInList(list *tview.List, query string, lastFoundIndex *int, direction int)
- func SearchInTable(table *tview.Table, query string, lastFoundRow, lastFoundCol *int, ...)
- func SearchInTree(tree *TTree, query string, lastFoundIndex *int, direction int)
- func SetActiveButtonStyle(button *tview.Button)
- func SetInactiveButtonStyle(button *tview.Button)
- func ShowFilter(filter *tview.InputField, text string)
- func ShowSearch()
- type TList
- type TNode
- type TTable
- func (t *TTable) ClearFilter()
- func (t *TTable) Create()
- func (t *TTable) CreateTableHeader(header string) *tview.TableCell
- func (t *TTable) SetRowSelect(row int)
- func (t *TTable) ToggleSelectCurrentRow(name string)
- func (t *TTable) Update(headers []string, rows [][]string)
- func (t *TTable) UpdateRowStyle()
- type TToggleText
- type TTree
- func (t *TTree) BuildProjectTree(node *tview.TreeNode, tnode dao.TreeNode)
- func (t *TTree) ClearFilter()
- func (t *TTree) Create()
- func (t *TTree) FocusFirst()
- func (t *TTree) FocusLast()
- func (t *TTree) ToggleSelectCurrentNode(id string)
- func (t *TTree) UpdateProjects(paths []dao.TNode)
- func (t *TTree) UpdateProjectsStyle()
- func (t *TTree) UpdateTasks(nodes []TNode)
- func (t *TTree) UpdateTasksStyle()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseFilter ¶
func CloseFilter(filter *tview.InputField)
func CloseModal ¶
func CloseModal()
func CreateButton ¶
func CreateFilter ¶
func CreateFilter() *tview.InputField
func CreateOutputView ¶
func CreateOutputView(title string) (*tview.TextView, *misc.ThreadSafeWriter)
func CreateSearch ¶
func CreateSearch() *tview.InputField
func CreateText ¶
func CreateTextArea ¶
func EmptySearch ¶
func EmptySearch()
func InitFilter ¶
func InitFilter(filter *tview.InputField, text string)
func IsModalOpen ¶
func IsModalOpen() bool
func OpenTextModal ¶
Used for when text is passed to a modal.
func SearchInList ¶
func SearchInTable ¶
func SearchInTree ¶
func SetActiveButtonStyle ¶
func SetInactiveButtonStyle ¶
func ShowFilter ¶
func ShowFilter(filter *tview.InputField, text string)
func ShowSearch ¶
func ShowSearch()
Types ¶
type TList ¶
type TList struct { Root *tview.Flex List *tview.List Filter *tview.InputField Title string FilterValue *string IsItemSelected func(item string) bool ToggleSelectItem func(i int, itemName string) SelectAll func() UnselectAll func() FilterItems func() }
func (*TList) ClearFilter ¶
func (l *TList) ClearFilter()
func (*TList) SetItemSelect ¶
type TTable ¶
type TTable struct { Root *tview.Flex Table *tview.Table Filter *tview.InputField Title string FilterValue *string ShowHeaders bool ToggleEnabled bool IsRowSelected func(name string) bool ToggleSelectRow func(name string) SelectAll func() UnselectAll func() FilterRows func() DescribeRow func(name string) EditRow func(name string) }
func (*TTable) ClearFilter ¶
func (t *TTable) ClearFilter()
func (*TTable) CreateTableHeader ¶
func (*TTable) SetRowSelect ¶
func (*TTable) ToggleSelectCurrentRow ¶
func (*TTable) UpdateRowStyle ¶
func (t *TTable) UpdateRowStyle()
type TToggleText ¶
type TToggleText struct { Value *string Option1 string Option2 string Label1 string Label2 string Data1 string Data2 string TextView *tview.TextView }
func (*TToggleText) Create ¶
func (t *TToggleText) Create()
type TTree ¶
type TTree struct { Tree *tview.TreeView Root *tview.Flex RootNode *tview.TreeNode Filter *tview.InputField List []*TNode Title string RootTitle string FilterValue *string SelectEnabled bool IsNodeSelected func(name string) bool ToggleSelectNode func(name string) SelectAll func() UnselectAll func() FilterNodes func() DescribeNode func(name string) EditNode func(name string) }
func (*TTree) BuildProjectTree ¶
func (*TTree) ClearFilter ¶
func (t *TTree) ClearFilter()
func (*TTree) FocusFirst ¶
func (t *TTree) FocusFirst()
func (*TTree) ToggleSelectCurrentNode ¶
func (*TTree) UpdateProjects ¶
func (*TTree) UpdateProjectsStyle ¶
func (t *TTree) UpdateProjectsStyle()
func (*TTree) UpdateTasks ¶
func (*TTree) UpdateTasksStyle ¶
func (t *TTree) UpdateTasksStyle()
Click to show internal directories.
Click to hide internal directories.