MCPcopy Create free account
hub / github.com/1buran/rHttp / NewFileInput

Function NewFileInput

fileinput.go:77–86  ·  view source on GitHub ↗
(id, mode int, title, placeholder string, colors ...lipgloss.Color)

Source from the content-addressed store, hash-verified

75}
76
77func NewFileInput(id, mode int, title, placeholder string, colors ...lipgloss.Color) FileInput {
78 w := textinput.New()
79 w.Prompt = title
80 w.Placeholder = placeholder
81 w.Width = 25
82 w.PromptStyle = lipgloss.NewStyle().Foreground(colors[0]).Bold(true)
83 w.PlaceholderStyle = lipgloss.NewStyle().Foreground(colors[1])
84 w.TextStyle = lipgloss.NewStyle().Foreground(colors[2])
85 return FileInput{id: id, mode: mode, widget: w}
86}
87
88type FileInputReader struct {
89 Id int

Callers 1

initialModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected