Versions in this module Expand all Collapse all v0 v0.5.0 Mar 24, 2025 Changes in this version + func Get[T any](c *Controller, modal ModalComponent[T]) T + type Controller struct + func NewController(initFunc func(*Controller) func() tea.Cmd) *Controller + func (c *Controller) Init() tea.Cmd + func (c *Controller) Render(width, height int) string + func (c *Controller) Run(f func(*Controller) func() tea.Cmd) tea.Cmd + func (c *Controller) Update(msg tea.Msg) tea.Cmd + type Modal struct + func (modal *Modal[T]) Error(err error) tea.Cmd + func (modal *Modal[T]) Ok(result T) tea.Cmd + func (modal *Modal[T]) Return(result ModalResult[T]) tea.Cmd + type ModalComponent interface + Return func(ModalResult[TReturn]) tea.Cmd + type ModalResult struct + Err error + Return T + func Error[T any](err error) ModalResult[T] + func Ok[T any](ret T) ModalResult[T] + func Show[T any](c *Controller, modal ModalComponent[T]) ModalResult[T] + func (result *ModalResult[T]) Get() (T, error)