Documentation
¶
Index ¶
- type Input
- func (i Input) Bottom() Input
- func (i Input) Center() Input
- func (i Input) Left() Input
- func (i Input) Middle() Input
- func (i Input) RenderStateful(area bento.Rect, buffer *bento.Buffer, state *State)
- func (i Input) Right() Input
- func (i Input) Top() Input
- func (i Input) WithAlignment(alignment bento.Alignment) Input
- func (i Input) WithBlock(block blockwidget.Block) Input
- func (i Input) WithCursorStyle(style bento.Style) Input
- func (i Input) WithPlaceholder(placeholder string) Input
- func (i Input) WithPlaceholderStyle(style bento.Style) Input
- func (i Input) WithPrompt(prompt string) Input
- func (i Input) WithPromptStyle(style bento.Style) Input
- func (i Input) WithVertical(flex bento.Flex) Input
- type State
- func (s *State) Append(content string)
- func (s *State) DeleteLine()
- func (s *State) DeleteUnderCursor()
- func (s *State) DeleteWordUnderCursor()
- func (s *State) MoveCursorBegin()
- func (s *State) MoveCursorEnd()
- func (s *State) MoveCursorLeft()
- func (s *State) MoveCursorRight()
- func (s *State) MoveWordLeft()
- func (s *State) MoveWordRight()
- func (s *State) ShowCursor(show bool)
- func (s *State) String() string
- func (s *State) TryUpdate(msg bento.Msg) (bool, bento.Cmd)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (Input) RenderStateful ¶
func (Input) WithPlaceholder ¶
func (Input) WithPrompt ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) DeleteLine ¶
func (s *State) DeleteLine()
func (*State) DeleteUnderCursor ¶
func (s *State) DeleteUnderCursor()
func (*State) DeleteWordUnderCursor ¶
func (s *State) DeleteWordUnderCursor()
func (*State) MoveCursorBegin ¶
func (s *State) MoveCursorBegin()
func (*State) MoveCursorEnd ¶
func (s *State) MoveCursorEnd()
func (*State) MoveCursorLeft ¶
func (s *State) MoveCursorLeft()
func (*State) MoveCursorRight ¶
func (s *State) MoveCursorRight()
func (*State) MoveWordLeft ¶
func (s *State) MoveWordLeft()
func (*State) MoveWordRight ¶
func (s *State) MoveWordRight()
func (*State) ShowCursor ¶
Click to show internal directories.
Click to hide internal directories.