BlogPlaygroundOne

VInfiniteScroll API


Props
name
type
default
string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

'horizontal' | 'vertical'
'vertical'

Specifies if scroller is vertical or horizontal.

string
'$vuetify.infiniteScroll.empty'

Text shown when there is no more content to load.

string | number
undefined

Sets the height for the component.

string
'$vuetify.infiniteScroll.loadMore'

Text shown in default load more button, when in manual mode.

string | number
undefined

Value sent to the intersection observer. Will make the observer trigger earlier, by the margin (px) value supplied.

string | number
undefined

Sets the maximum height for the component.

string | number
undefined

Sets the maximum width for the component.

string | number
undefined

Sets the minimum height for the component.

string | number
undefined

Sets the minimum width for the component.

'intersect' | 'manual'
'intersect'

Specifies if content should load automatically when scrolling (intersect) or manually (manual).

'start' | 'end' | 'both'
'end'

Specifies the side where new content should appear. Either the start, end, or both sides.

string | (new () => any) | FunctionalComponent
'div'

Specify a custom tag used on the root element.

string | number
undefined

Sets the width for the component.

Events
name
type
[
  {
    side: 'start' | 'end' | 'both'
    done: (status: 'error' | 'loading' | 'empty' | 'ok') => void
  },
]

Emitted when reaching the start / end threshold, or if triggered when using manual mode.

Slots
never
{ side: 'start' | 'end' | 'both'; props: Record<string, any> }
{ side: 'start' | 'end' | 'both'; props: Record<string, any> }
{ side: 'start' | 'end' | 'both'; props: Record<string, any> }
{ side: 'start' | 'end' | 'both'; props: Record<string, any> }

The default Vue slot.

Shown when load returned status ‘empty’.

Shown when load returned status ‘error’.

Shown when scrolled to either side of the content, in manual mode.

Shown when content is loading.

Exposed
(side: 'start' | 'end' | 'both') => void

Resets side status to ‘ok’ letting it trigger ‘load’ again. Useful to prevent given side being stuck in ‘empty’ or ‘error’ state.

SASS Variables