mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
refactor!: remove deprecated references
This removes all the `NewModel` functions from all the bubbles and any deprecated fields and types.
This commit is contained in:
@@ -52,17 +52,6 @@ type Model struct {
|
||||
|
||||
// KeyMap encodes the keybindings recognized by the widget.
|
||||
KeyMap KeyMap
|
||||
|
||||
// Deprecated: customize [KeyMap] instead.
|
||||
UsePgUpPgDownKeys bool
|
||||
// Deprecated: customize [KeyMap] instead.
|
||||
UseLeftRightKeys bool
|
||||
// Deprecated: customize [KeyMap] instead.
|
||||
UseUpDownKeys bool
|
||||
// Deprecated: customize [KeyMap] instead.
|
||||
UseHLKeys bool
|
||||
// Deprecated: customize [KeyMap] instead.
|
||||
UseJKKeys bool
|
||||
}
|
||||
|
||||
// SetTotalPages is a helper function for calculating the total number of pages
|
||||
@@ -153,11 +142,6 @@ func New(opts ...Option) Model {
|
||||
return m
|
||||
}
|
||||
|
||||
// NewModel creates a new model with defaults.
|
||||
//
|
||||
// Deprecated: use [New] instead.
|
||||
var NewModel = New
|
||||
|
||||
// WithTotalPages sets the total pages.
|
||||
func WithTotalPages(totalPages int) Option {
|
||||
return func(m *Model) {
|
||||
|
||||
Reference in New Issue
Block a user