feat: add OnFirstPage method for consistency

This commit is contained in:
Maas Lalani
2024-01-25 11:17:25 -05:00
parent 6399027ab7
commit fc18779a6a
+5
View File
@@ -125,6 +125,11 @@ func (m Model) OnLastPage() bool {
return m.Page == m.TotalPages-1
}
// OnFirstPage returns whether or not we're on the first page.
func (m Model) OnFirstPage() bool {
return m.Page == 0
}
// New creates a new model with defaults.
func New() Model {
return Model{