Documentation
¶
Index ¶
- type Widget
- func (w *Widget) GetMinSize() orvyn.Size
- func (w *Widget) GetPreferredSize() orvyn.Size
- func (w *Widget) Render() string
- func (w *Widget) Resize(size orvyn.Size)
- func (w *Widget) SetColor(color lipgloss.Color)
- func (w *Widget) SetPercentageStyle(style lipgloss.Style)
- func (w *Widget) SetPercentageVisibility(b bool)
- func (w *Widget) SetTitleProgressVisibility(b bool)
- func (w *Widget) SetTitleVisibility(b bool)
- func (w *Widget) Update(msg tea.Msg) tea.Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Widget ¶
type Widget struct {
orvyn.BaseWidget
progress.Model
// TitleStyle holds the style of the title. Theme TitleStyleID by default.
TitleStyle lipgloss.Style
// MaxValue is used to define the progress in the title.
MaxValue int
// CurrentValue is used to define the progress in the title.
CurrentValue int
// contains filtered or unexported fields
}
Widget is a progressbar that should be used as a progress indicator.
func (*Widget) GetMinSize ¶
func (*Widget) GetPreferredSize ¶
func (*Widget) SetPercentageStyle ¶
SetPercentageStyle allows to define the percentage style.
func (*Widget) SetPercentageVisibility ¶
SetPercentageVisibility changes the visibility of the percentage in the bar.
func (*Widget) SetTitleProgressVisibility ¶
SetTitleProgressVisibility changes the visiblity of the current progress directly in the title. For example : (12/100)
func (*Widget) SetTitleVisibility ¶
SetTitleVisibility changes the visibility of the title.
Click to show internal directories.
Click to hide internal directories.