mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 14:22:58 +03:00
textarea: add some comments
This commit is contained in:
parent
db2a8b4e16
commit
c099d31570
@ -133,11 +133,23 @@ type Model struct {
|
||||
Err error
|
||||
|
||||
// General settings.
|
||||
Prompt string
|
||||
Placeholder string
|
||||
ShowLineNumbers bool
|
||||
|
||||
// Prompt is printed at the beginning of each line.
|
||||
Prompt string
|
||||
|
||||
// Placeholder is the text displayed when the user
|
||||
// hasn't entered anything yet.
|
||||
Placeholder string
|
||||
|
||||
// ShowLineNumbers, if enabled, causes line numbers to be printed
|
||||
// after the prompt.
|
||||
ShowLineNumbers bool
|
||||
|
||||
// EndOfBufferCharacter is displayed at the end of the input.
|
||||
EndOfBufferCharacter rune
|
||||
KeyMap KeyMap
|
||||
|
||||
// KeyMap encodes the keybindings recognized by the widget.
|
||||
KeyMap KeyMap
|
||||
|
||||
// Styling. FocusedStyle and BlurredStyle are used to style the textarea in
|
||||
// focused and blurred states.
|
||||
|
Loading…
Reference in New Issue
Block a user