Index returns the index of the currently selected item as it appears in the entire slice of items.
()
| 391 | // Index returns the index of the currently selected item as it appears in the |
| 392 | // entire slice of items. |
| 393 | func (m Model) Index() int { |
| 394 | return m.Paginator.Page*m.Paginator.PerPage + m.cursor |
| 395 | } |
| 396 | |
| 397 | // Cursor returns the index of the cursor on the current page. |
| 398 | func (m Model) Cursor() int { |
no outgoing calls
no test coverage detected