Documentation ¶
Index ¶
- type Controller
- type Item
- type View
- func (v *View) AddItem(item *domain.ProtoFile)
- func (v *View) Filter(text string)
- func (v *View) HidePrompt()
- func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (v *View) RemoveItem(item *domain.ProtoFile)
- func (v *View) SetItems(items []*domain.ProtoFile)
- func (v *View) SetOnAdd(f func())
- func (v *View) SetOnAddImportPath(f func(path string))
- func (v *View) SetOnDelete(f func(w *domain.ProtoFile))
- func (v *View) SetOnDeleteSelected(f func(ids []string))
- func (v *View) ShowPrompt(title, content, modalType string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(view *View, state *state.ProtoFiles, repo repository.Repository, explorer *explorer.Explorer) *Controller
func (*Controller) LoadData ¶
func (c *Controller) LoadData() error
type View ¶
func (*View) HidePrompt ¶ added in v0.2.5
func (v *View) HidePrompt()
func (*View) Layout ¶
func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*View) RemoveItem ¶
func (*View) SetOnAddImportPath ¶ added in v0.2.5
func (*View) SetOnDelete ¶
func (*View) SetOnDeleteSelected ¶
Click to show internal directories.
Click to hide internal directories.