Documentation
¶
Index ¶
- Variables
- func WrapText(text string, width int) string
- type PaperX
- func (p *PaperX) Ctx() context.Context
- func (p *PaperX) EnableHighPerformanceRendering(enable bool) *PaperX
- func (p *PaperX) EnableProgress(enable bool) *PaperX
- func (p *PaperX) Quit()
- func (p *PaperX) Run()
- func (p *PaperX) SetBorder(border string) *PaperX
- func (p *PaperX) SetContent(content string) *PaperX
- func (p *PaperX) SetInfoStyle(style lipgloss.Style) *PaperX
- func (p *PaperX) SetLoading(loading string) *PaperX
- func (p *PaperX) SetTitle(title string) *PaperX
- func (p *PaperX) SetTitleStyle(style lipgloss.Style) *PaperX
- func (p *PaperX) Wait()
- type SpinnerX
- type TableModelX
- func (t *TableModelX) Ctx() context.Context
- func (t *TableModelX) Quit()
- func (t *TableModelX) Run()
- func (t *TableModelX) SelectedRow() (table.Row, bool)
- func (t *TableModelX) SelectedRowChan() chan table.Row
- func (t *TableModelX) SetColumns(columns []table.Column) *TableModelX
- func (t *TableModelX) SetHeight(height int) *TableModelX
- func (t *TableModelX) SetRows(rows []table.Row) *TableModelX
- func (t *TableModelX) SetTableStyle(style table.Styles) *TableModelX
- func (t *TableModelX) SetWidth(width int) *TableModelX
- func (t *TableModelX) Wait()
- type TextX
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultPaperTitleStyle = func() lipgloss.Style { b := lipgloss.RoundedBorder() b.Right = "├" return lipgloss.NewStyle().BorderStyle(b).Padding(0, 1) }() DefaultPaperInfoStyle = func() lipgloss.Style { b := lipgloss.RoundedBorder() b.Left = "┤" return DefaultPaperTitleStyle.BorderStyle(b) }() )
View Source
var DefaultTableBaseStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). BorderForeground(lipgloss.Color("240"))
Functions ¶
Types ¶
type PaperX ¶
type PaperX struct {
// contains filtered or unexported fields
}
func (*PaperX) EnableHighPerformanceRendering ¶
func (*PaperX) EnableProgress ¶
func (*PaperX) SetContent ¶
func (*PaperX) SetLoading ¶
type SpinnerX ¶
type SpinnerX struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func NewSpinner() *SpinnerX
func (*SpinnerX) SetSpinnerStyle ¶
type TableModelX ¶
type TableModelX struct {
// contains filtered or unexported fields
}
func NewTable ¶
func NewTable(ctx context.Context) *TableModelX
func (*TableModelX) Ctx ¶
func (t *TableModelX) Ctx() context.Context
func (*TableModelX) Quit ¶
func (t *TableModelX) Quit()
func (*TableModelX) Run ¶
func (t *TableModelX) Run()
func (*TableModelX) SelectedRow ¶
func (t *TableModelX) SelectedRow() (table.Row, bool)
func (*TableModelX) SelectedRowChan ¶
func (t *TableModelX) SelectedRowChan() chan table.Row
func (*TableModelX) SetColumns ¶
func (t *TableModelX) SetColumns(columns []table.Column) *TableModelX
func (*TableModelX) SetHeight ¶
func (t *TableModelX) SetHeight(height int) *TableModelX
func (*TableModelX) SetRows ¶
func (t *TableModelX) SetRows(rows []table.Row) *TableModelX
func (*TableModelX) SetTableStyle ¶
func (t *TableModelX) SetTableStyle(style table.Styles) *TableModelX
func (*TableModelX) SetWidth ¶
func (t *TableModelX) SetWidth(width int) *TableModelX
func (*TableModelX) Wait ¶
func (t *TableModelX) Wait()
Click to show internal directories.
Click to hide internal directories.