Documentation
¶
Index ¶
- type Widget
- func (w *Widget) GetMinSize() orvyn.Size
- func (w *Widget) GetPreferredSize() orvyn.Size
- func (w *Widget) IsChecked() bool
- func (w *Widget) Render() string
- func (w *Widget) Resize(size orvyn.Size)
- func (w *Widget) SetChecked(checked bool)
- func (w *Widget) SetLabel(label string)
- 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
orvyn.BaseFocusable
CheckKeybind key.Binding
// contains filtered or unexported fields
}
Widget is a checkbox widget holding 2 state : Checked and Unchecked.
func (*Widget) GetMinSize ¶
func (*Widget) GetPreferredSize ¶
func (*Widget) SetChecked ¶
SetChecked changes the current state of the checkbox.
Click to show internal directories.
Click to hide internal directories.