MCPcopy
hub / github.com/mathaou/termdbms / SetDelegate

Method SetDelegate

list/list.go:355–358  ·  view source on GitHub ↗

Set the item delegate.

(d ItemDelegate)

Source from the content-addressed store, hash-verified

353
354// Set the item delegate.
355func (m *Model) SetDelegate(d ItemDelegate) {
356 m.delegate = d
357 m.updatePagination()
358}
359
360// VisibleItems returns the total items available to be shown.
361func (m Model) VisibleItems() []Item {

Callers

nothing calls this directly

Calls 1

updatePaginationMethod · 0.95

Tested by

no test coverage detected