MCPcopy Create free account
hub / github.com/charmbracelet/bubbles / WithKeyMap

Function WithKeyMap

table/table.go:195–199  ·  view source on GitHub ↗

WithKeyMap sets the key map.

(km KeyMap)

Source from the content-addressed store, hash-verified

193
194// WithKeyMap sets the key map.
195func WithKeyMap(km KeyMap) Option {
196 return func(m *Model) {
197 m.KeyMap = km
198 }
199}
200
201// Update is the Bubble Tea update loop.
202func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {

Callers 1

TestNewFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewFunction · 0.68