Interface: GroupedVirtuosoProps<D, C>
Extends
Omit<VirtuosoProps<D,C>,"itemContent"|"totalCount">
Type Parameters
D
D
C
C
Properties
firstItemIndex?
optionalfirstItemIndex:number
Use when implementing inverse infinite scrolling, decrease the value this property
in combination with a change in groupCounts to prepend groups items to the top of the list.
Both new groups and extending the top group is supported.
The delta of the firstItemIndex should equal the amount of new items introduced, without the group themselves. As an example, if you prepend 2 groups with 20 and 30 items each, the firstItemIndex should be decreased with 50.
You can also prepend more items to the first group, for example:
{ groupCounts: [20, 30], firstItemIndex: 1000 } can become { groupCounts: [10, 30, 30], firstItemIndex: 980 }
Warning: the firstItemIndex should be a positive number, based on the total amount of items to be displayed.
Overrides
Omit.firstItemIndex
groupContent?
optionalgroupContent:GroupContent<C>
Specifies how each each group header gets rendered. The callback receives the zero-based index of the group.
groupCounts?
optionalgroupCounts:number[]
Specifies the amount of items in each group (and, actually, how many groups are there). For example, passing [20, 30] will display 2 groups with 20 and 30 items each.
itemContent?
optionalitemContent:GroupItemContent<D,C>
Specifies how each each item gets rendered.
start?
optionalstart:number
Inherited from
Omit.start
cite?
optionalcite:string
Inherited from
Omit.cite
data?
optionaldata: readonlyD[]
The data items to be rendered. If data is set, the total count will be inferred from the length of the array.
Inherited from
Omit.data
form?
optionalform:string
Inherited from
Omit.form
label?
optionallabel:string
Inherited from
Omit.label
slot?
optionalslot:string
Inherited from
Omit.slot
span?
optionalspan:number
Inherited from
Omit.span
style?
optionalstyle:CSSProperties
Inherited from
Omit.style
summary?
optionalsummary:string
Inherited from
Omit.summary
title?
optionaltitle:string
Inherited from
Omit.title
pattern?
optionalpattern:string
Inherited from
Omit.pattern
children?
optionalchildren:ReactNode
Inherited from
Omit.children
tabIndex?
optionaltabIndex:number
Inherited from
Omit.tabIndex
className?
optionalclassName:string
Inherited from
Omit.className
key?
optionalkey:null|Key
Inherited from
Omit.key
defaultChecked?
optionaldefaultChecked:boolean
Inherited from
Omit.defaultChecked
defaultValue?
optionaldefaultValue:string|number| readonlystring[]
Inherited from
Omit.defaultValue
suppressContentEditableWarning?
optionalsuppressContentEditableWarning:boolean
Inherited from
Omit.suppressContentEditableWarning
suppressHydrationWarning?
optionalsuppressHydrationWarning:boolean
Inherited from
Omit.suppressHydrationWarning
accessKey?
optionalaccessKey:string
Inherited from
Omit.accessKey
autoCapitalize?
optionalautoCapitalize:"none"|string&object|"off"|"on"|"sentences"|"words"|"characters"
Inherited from
Omit.autoCapitalize
autoFocus?
optionalautoFocus:boolean
Inherited from
Omit.autoFocus
contentEditable?
optionalcontentEditable:"inherit"|Booleanish|"plaintext-only"
Inherited from
Omit.contentEditable
contextMenu?
optionalcontextMenu:string
Inherited from
Omit.contextMenu
dir?
optionaldir:string
Inherited from
Omit.dir
draggable?
optionaldraggable:Booleanish
Inherited from
Omit.draggable
enterKeyHint?
optionalenterKeyHint:"search"|"next"|"done"|"enter"|"go"|"previous"|"send"
Inherited from
Omit.enterKeyHint
hidden?
optionalhidden:boolean
Inherited from
Omit.hidden
id?
optionalid:string
Inherited from
Omit.id
lang?
optionallang:string
Inherited from
Omit.lang
nonce?
optionalnonce:string
Inherited from
Omit.nonce
spellCheck?
optionalspellCheck:Booleanish
Inherited from
Omit.spellCheck
translate?
optionaltranslate:"yes"|"no"
Inherited from
Omit.translate
radioGroup?
optionalradioGroup:string
Inherited from
Omit.radioGroup
role?
optionalrole:AriaRole
Inherited from
Omit.role
about?
optionalabout:string
Inherited from
Omit.about
content?
optionalcontent:string
Inherited from
Omit.content
datatype?
optionaldatatype:string
Inherited from
Omit.datatype
inlist?
optionalinlist:any
Inherited from
Omit.inlist
prefix?
optionalprefix:string
Inherited from
Omit.prefix
property?
optionalproperty:string
Inherited from
Omit.property
rel?
optionalrel:string
Inherited from
Omit.rel
resource?
optionalresource:string
Inherited from
Omit.resource
rev?
optionalrev:string
Inherited from
Omit.rev
typeof?
optionaltypeof:string
Inherited from
Omit.typeof
vocab?
optionalvocab:string
Inherited from
Omit.vocab
autoCorrect?
optionalautoCorrect:string
Inherited from
Omit.autoCorrect
autoSave?
optionalautoSave:string
Inherited from
Omit.autoSave
color?
optionalcolor:string
Inherited from
Omit.color
itemProp?
optionalitemProp:string
Inherited from
Omit.itemProp
itemScope?
optionalitemScope:boolean
Inherited from
Omit.itemScope
itemType?
optionalitemType:string
Inherited from
Omit.itemType
itemID?
optionalitemID:string
Inherited from
Omit.itemID
itemRef?
optionalitemRef:string
Inherited from
Omit.itemRef
results?
optionalresults:number
Inherited from
Omit.results
security?
optionalsecurity:string
Inherited from
Omit.security
unselectable?
optionalunselectable:"off"|"on"
Inherited from
Omit.unselectable
inputMode?
optionalinputMode:"search"|"text"|"none"|"tel"|"url"|"email"|"numeric"|"decimal"
Hints at the type of data that might be entered by the user while editing the element or its contents
See
https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
Inherited from
Omit.inputMode
is?
optionalis:string
Specify that a standard HTML element should behave like a defined custom built-in element
See
https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
Inherited from
Omit.is
exportparts?
optionalexportparts:string
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
Inherited from
Omit.exportparts
part?
optionalpart:string
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
Inherited from
Omit.part
aria-activedescendant?
optionalaria-activedescendant:string
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
Inherited from
Omit.aria-activedescendant
aria-atomic?
optionalaria-atomic:Booleanish
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
Inherited from
Omit.aria-atomic
aria-autocomplete?
optionalaria-autocomplete:"list"|"none"|"inline"|"both"
Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
Inherited from
Omit.aria-autocomplete
aria-braillelabel?
optionalaria-braillelabel:string
Defines a string value that labels the current element, which is intended to be converted into Braille.
See
aria-label.
Inherited from
Omit.aria-braillelabel
aria-brailleroledescription?
optionalaria-brailleroledescription:string
Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
See
aria-roledescription.
Inherited from
Omit.aria-brailleroledescription
aria-busy?
optionalaria-busy:Booleanish
Inherited from
Omit.aria-busy
aria-checked?
optionalaria-checked:boolean|"mixed"|"false"|"true"
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
See
- aria-pressed
- aria-selected.
Inherited from
Omit.aria-checked
aria-colcount?
optionalaria-colcount:number
Defines the total number of columns in a table, grid, or treegrid.
See
aria-colindex.
Inherited from
Omit.aria-colcount
aria-colindex?
optionalaria-colindex:number
Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
See
- aria-colcount
- aria-colspan.
Inherited from
Omit.aria-colindex
aria-colindextext?
optionalaria-colindextext:string
Defines a human readable text alternative of aria-colindex.
See
aria-rowindextext.
Inherited from
Omit.aria-colindextext
aria-colspan?
optionalaria-colspan:number
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
See
- aria-colindex
- aria-rowspan.
Inherited from
Omit.aria-colspan
aria-controls?
optionalaria-controls:string
Identifies the element (or elements) whose contents or presence are controlled by the current element.
See
aria-owns.
Inherited from
Omit.aria-controls
aria-current?
optionalaria-current:boolean|"time"|"step"|"location"|"page"|"false"|"true"|"date"
Indicates the element that represents the current item within a container or set of related elements.
Inherited from
Omit.aria-current
aria-describedby?
optionalaria-describedby:string
Identifies the element (or elements) that describes the object.
See
aria-labelledby
Inherited from
Omit.aria-describedby
aria-description?
optionalaria-description:string
Defines a string value that describes or annotates the current element.
See
related aria-describedby.
Inherited from
Omit.aria-description
aria-details?
optionalaria-details:string
Identifies the element that provides a detailed, extended description for the object.
See
aria-describedby.
Inherited from
Omit.aria-details
aria-disabled?
optionalaria-disabled:Booleanish
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
See
- aria-hidden
- aria-readonly.
Inherited from
Omit.aria-disabled
aria-dropeffect?
optionalaria-dropeffect:"link"|"copy"|"none"|"move"|"execute"|"popup"
Indicates what functions can be performed when a dragged object is released on the drop target.
Deprecated
in ARIA 1.1
Inherited from
Omit.aria-dropeffect
aria-errormessage?
optionalaria-errormessage:string
Identifies the element that provides an error message for the object.
See
- aria-invalid
- aria-describedby.
Inherited from
Omit.aria-errormessage
aria-expanded?
optionalaria-expanded:Booleanish
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Inherited from
Omit.aria-expanded
aria-flowto?
optionalaria-flowto:string
Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
Inherited from
Omit.aria-flowto
aria-grabbed?
optionalaria-grabbed:Booleanish
Indicates an element's "grabbed" state in a drag-and-drop operation.
Deprecated
in ARIA 1.1
Inherited from
Omit.aria-grabbed
aria-haspopup?
optionalaria-haspopup:boolean|"dialog"|"menu"|"grid"|"listbox"|"false"|"true"|"tree"
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Inherited from
Omit.aria-haspopup
aria-hidden?
optionalaria-hidden:Booleanish
Indicates whether the element is exposed to an accessibility API.
See
aria-disabled.
Inherited from
Omit.aria-hidden
aria-invalid?
optionalaria-invalid:boolean|"false"|"true"|"grammar"|"spelling"
Indicates the entered value does not conform to the format expected by the application.
See
aria-errormessage.
Inherited from
Omit.aria-invalid
aria-keyshortcuts?
optionalaria-keyshortcuts:string
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Inherited from
Omit.aria-keyshortcuts
aria-label?
optionalaria-label:string
Defines a string value that labels the current element.
See
aria-labelledby.
Inherited from
Omit.aria-label
aria-labelledby?
optionalaria-labelledby:string
Identifies the element (or elements) that labels the current element.
See
aria-describedby.
Inherited from
Omit.aria-labelledby
aria-level?
optionalaria-level:number
Defines the hierarchical level of an element within a structure.
Inherited from
Omit.aria-level
aria-live?
optionalaria-live:"off"|"assertive"|"polite"
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
Inherited from
Omit.aria-live
aria-modal?
optionalaria-modal:Booleanish
Indicates whether an element is modal when displayed.
Inherited from
Omit.aria-modal
aria-multiline?
optionalaria-multiline:Booleanish
Indicates whether a text box accepts multiple lines of input or only a single line.
Inherited from
Omit.aria-multiline
aria-multiselectable?
optionalaria-multiselectable:Booleanish
Indicates that the user may select more than one item from the current selectable descendants.
Inherited from
Omit.aria-multiselectable
aria-orientation?
optionalaria-orientation:"horizontal"|"vertical"
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
Inherited from
Omit.aria-orientation
aria-owns?
optionalaria-owns:string
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
See
aria-controls.
Inherited from
Omit.aria-owns
aria-placeholder?
optionalaria-placeholder:string
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
Inherited from
Omit.aria-placeholder
aria-posinset?
optionalaria-posinset:number
Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
See
aria-setsize.
Inherited from
Omit.aria-posinset
aria-pressed?
optionalaria-pressed:boolean|"mixed"|"false"|"true"
Indicates the current "pressed" state of toggle buttons.
See
- aria-checked
- aria-selected.
Inherited from
Omit.aria-pressed
aria-readonly?
optionalaria-readonly:Booleanish
Indicates that the element is not editable, but is otherwise operable.
See
aria-disabled.
Inherited from
Omit.aria-readonly
aria-relevant?
optionalaria-relevant:"text"|"all"|"additions"|"additions removals"|"additions text"|"removals"|"removals additions"|"removals text"|"text additions"|"text removals"
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
See
aria-atomic.
Inherited from
Omit.aria-relevant
aria-required?
optionalaria-required:Booleanish
Indicates that user input is required on the element before a form may be submitted.
Inherited from
Omit.aria-required
aria-roledescription?
optionalaria-roledescription:string
Defines a human-readable, author-localized description for the role of an element.
Inherited from
Omit.aria-roledescription
aria-rowcount?
optionalaria-rowcount:number
Defines the total number of rows in a table, grid, or treegrid.
See
aria-rowindex.
Inherited from
Omit.aria-rowcount
aria-rowindex?
optionalaria-rowindex:number
Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
See
- aria-rowcount
- aria-rowspan.
Inherited from
Omit.aria-rowindex
aria-rowindextext?
optionalaria-rowindextext:string
Defines a human readable text alternative of aria-rowindex.
See
aria-colindextext.
Inherited from
Omit.aria-rowindextext
aria-rowspan?
optionalaria-rowspan:number
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
See
- aria-rowindex
- aria-colspan.
Inherited from
Omit.aria-rowspan
aria-selected?
optionalaria-selected:Booleanish
Indicates the current "selected" state of various widgets.
See
- aria-checked
- aria-pressed.
Inherited from
Omit.aria-selected
aria-setsize?
optionalaria-setsize:number
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
See
aria-posinset.
Inherited from
Omit.aria-setsize
aria-sort?
optionalaria-sort:"none"|"ascending"|"descending"|"other"
Indicates if items in a table or grid are sorted in ascending or descending order.
Inherited from
Omit.aria-sort
aria-valuemax?
optionalaria-valuemax:number
Defines the maximum allowed value for a range widget.
Inherited from
Omit.aria-valuemax
aria-valuemin?
optionalaria-valuemin:number
Defines the minimum allowed value for a range widget.
Inherited from
Omit.aria-valuemin
aria-valuenow?
optionalaria-valuenow:number
Defines the current value for a range widget.
See
aria-valuetext.
Inherited from
Omit.aria-valuenow
aria-valuetext?
optionalaria-valuetext:string
Defines the human readable text alternative of aria-valuenow for a range widget.
Inherited from
Omit.aria-valuetext
dangerouslySetInnerHTML?
optionaldangerouslySetInnerHTML:object
__html
__html:
string|TrustedHTML
Inherited from
Omit.dangerouslySetInnerHTML
onCopy?
optionalonCopy:ClipboardEventHandler<HTMLDivElement>
Inherited from
Omit.onCopy
onCopyCapture?
optionalonCopyCapture:ClipboardEventHandler<HTMLDivElement>
Inherited from
Omit.onCopyCapture
onCut?
optionalonCut:ClipboardEventHandler<HTMLDivElement>
Inherited from
Omit.onCut
onCutCapture?
optionalonCutCapture:ClipboardEventHandler<HTMLDivElement>
Inherited from
Omit.onCutCapture
onPaste?
optionalonPaste:ClipboardEventHandler<HTMLDivElement>
Inherited from
Omit.onPaste
onPasteCapture?
optionalonPasteCapture:ClipboardEventHandler<HTMLDivElement>
Inherited from
Omit.onPasteCapture
onCompositionEnd?
optionalonCompositionEnd:CompositionEventHandler<HTMLDivElement>
Inherited from
Omit.onCompositionEnd
onCompositionEndCapture?
optionalonCompositionEndCapture:CompositionEventHandler<HTMLDivElement>
Inherited from
Omit.onCompositionEndCapture
onCompositionStart?
optionalonCompositionStart:CompositionEventHandler<HTMLDivElement>
Inherited from
Omit.onCompositionStart
onCompositionStartCapture?
optionalonCompositionStartCapture:CompositionEventHandler<HTMLDivElement>
Inherited from
Omit.onCompositionStartCapture
onCompositionUpdate?
optionalonCompositionUpdate:CompositionEventHandler<HTMLDivElement>
Inherited from
Omit.onCompositionUpdate
onCompositionUpdateCapture?
optionalonCompositionUpdateCapture:CompositionEventHandler<HTMLDivElement>
Inherited from
Omit.onCompositionUpdateCapture
onFocus?
optionalonFocus:FocusEventHandler<HTMLDivElement>
Inherited from
Omit.onFocus
onFocusCapture?
optionalonFocusCapture:FocusEventHandler<HTMLDivElement>
Inherited from
Omit.onFocusCapture
onBlur?
optionalonBlur:FocusEventHandler<HTMLDivElement>
Inherited from
Omit.onBlur
onBlurCapture?
optionalonBlurCapture:FocusEventHandler<HTMLDivElement>
Inherited from
Omit.onBlurCapture
onChange?
optionalonChange:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onChange
onChangeCapture?
optionalonChangeCapture:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onChangeCapture
onBeforeInput?
optionalonBeforeInput:InputEventHandler<HTMLDivElement>
Inherited from
Omit.onBeforeInput
onBeforeInputCapture?
optionalonBeforeInputCapture:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onBeforeInputCapture
onInput?
optionalonInput:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onInput
onInputCapture?
optionalonInputCapture:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onInputCapture
onReset?
optionalonReset:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onReset
onResetCapture?
optionalonResetCapture:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onResetCapture
onSubmit?
optionalonSubmit:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onSubmit
onSubmitCapture?
optionalonSubmitCapture:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onSubmitCapture
onInvalid?
optionalonInvalid:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onInvalid
onInvalidCapture?
optionalonInvalidCapture:FormEventHandler<HTMLDivElement>
Inherited from
Omit.onInvalidCapture
onLoad?
optionalonLoad:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoad
onLoadCapture?
optionalonLoadCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoadCapture
onError?
optionalonError:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onError
onErrorCapture?
optionalonErrorCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onErrorCapture
onKeyDown?
optionalonKeyDown:KeyboardEventHandler<HTMLDivElement>
Inherited from
Omit.onKeyDown
onKeyDownCapture?
optionalonKeyDownCapture:KeyboardEventHandler<HTMLDivElement>
Inherited from
Omit.onKeyDownCapture
onKeyPress?
optionalonKeyPress:KeyboardEventHandler<HTMLDivElement>
Deprecated
Use onKeyUp or onKeyDown instead
Inherited from
Omit.onKeyPress
onKeyPressCapture?
optionalonKeyPressCapture:KeyboardEventHandler<HTMLDivElement>
Deprecated
Use onKeyUpCapture or onKeyDownCapture instead
Inherited from
Omit.onKeyPressCapture
onKeyUp?
optionalonKeyUp:KeyboardEventHandler<HTMLDivElement>
Inherited from
Omit.onKeyUp
onKeyUpCapture?
optionalonKeyUpCapture:KeyboardEventHandler<HTMLDivElement>
Inherited from
Omit.onKeyUpCapture
onAbort?
optionalonAbort:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onAbort
onAbortCapture?
optionalonAbortCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onAbortCapture
onCanPlay?
optionalonCanPlay:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onCanPlay
onCanPlayCapture?
optionalonCanPlayCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onCanPlayCapture
onCanPlayThrough?
optionalonCanPlayThrough:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onCanPlayThrough
onCanPlayThroughCapture?
optionalonCanPlayThroughCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onCanPlayThroughCapture
onDurationChange?
optionalonDurationChange:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onDurationChange
onDurationChangeCapture?
optionalonDurationChangeCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onDurationChangeCapture
onEmptied?
optionalonEmptied:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onEmptied
onEmptiedCapture?
optionalonEmptiedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onEmptiedCapture
onEncrypted?
optionalonEncrypted:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onEncrypted
onEncryptedCapture?
optionalonEncryptedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onEncryptedCapture
onEnded?
optionalonEnded:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onEnded
onEndedCapture?
optionalonEndedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onEndedCapture
onLoadedData?
optionalonLoadedData:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoadedData
onLoadedDataCapture?
optionalonLoadedDataCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoadedDataCapture
onLoadedMetadata?
optionalonLoadedMetadata:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoadedMetadata
onLoadedMetadataCapture?
optionalonLoadedMetadataCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoadedMetadataCapture
onLoadStart?
optionalonLoadStart:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoadStart
onLoadStartCapture?
optionalonLoadStartCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onLoadStartCapture
onPause?
optionalonPause:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onPause
onPauseCapture?
optionalonPauseCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onPauseCapture
onPlay?
optionalonPlay:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onPlay
onPlayCapture?
optionalonPlayCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onPlayCapture
onPlaying?
optionalonPlaying:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onPlaying
onPlayingCapture?
optionalonPlayingCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onPlayingCapture
onProgress?
optionalonProgress:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onProgress
onProgressCapture?
optionalonProgressCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onProgressCapture
onRateChange?
optionalonRateChange:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onRateChange
onRateChangeCapture?
optionalonRateChangeCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onRateChangeCapture
onSeeked?
optionalonSeeked:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSeeked
onSeekedCapture?
optionalonSeekedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSeekedCapture
onSeeking?
optionalonSeeking:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSeeking
onSeekingCapture?
optionalonSeekingCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSeekingCapture
onStalled?
optionalonStalled:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onStalled
onStalledCapture?
optionalonStalledCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onStalledCapture
onSuspend?
optionalonSuspend:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSuspend
onSuspendCapture?
optionalonSuspendCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSuspendCapture
onTimeUpdate?
optionalonTimeUpdate:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onTimeUpdate
onTimeUpdateCapture?
optionalonTimeUpdateCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onTimeUpdateCapture
onVolumeChange?
optionalonVolumeChange:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onVolumeChange
onVolumeChangeCapture?
optionalonVolumeChangeCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onVolumeChangeCapture
onWaiting?
optionalonWaiting:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onWaiting
onWaitingCapture?
optionalonWaitingCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onWaitingCapture
onAuxClick?
optionalonAuxClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onAuxClick
onAuxClickCapture?
optionalonAuxClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onAuxClickCapture
onClick?
optionalonClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onClick
onClickCapture?
optionalonClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onClickCapture
onContextMenu?
optionalonContextMenu:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onContextMenu
onContextMenuCapture?
optionalonContextMenuCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onContextMenuCapture
onDoubleClick?
optionalonDoubleClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onDoubleClick
onDoubleClickCapture?
optionalonDoubleClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onDoubleClickCapture
onDrag?
optionalonDrag:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDrag
onDragCapture?
optionalonDragCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragCapture
onDragEnd?
optionalonDragEnd:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragEnd
onDragEndCapture?
optionalonDragEndCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragEndCapture
onDragEnter?
optionalonDragEnter:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragEnter
onDragEnterCapture?
optionalonDragEnterCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragEnterCapture
onDragExit?
optionalonDragExit:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragExit
onDragExitCapture?
optionalonDragExitCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragExitCapture
onDragLeave?
optionalonDragLeave:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragLeave
onDragLeaveCapture?
optionalonDragLeaveCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragLeaveCapture
onDragOver?
optionalonDragOver:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragOver
onDragOverCapture?
optionalonDragOverCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragOverCapture
onDragStart?
optionalonDragStart:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragStart
onDragStartCapture?
optionalonDragStartCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDragStartCapture
onDrop?
optionalonDrop:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDrop
onDropCapture?
optionalonDropCapture:DragEventHandler<HTMLDivElement>
Inherited from
Omit.onDropCapture
onMouseDown?
optionalonMouseDown:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseDown
onMouseDownCapture?
optionalonMouseDownCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseDownCapture
onMouseEnter?
optionalonMouseEnter:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseEnter
onMouseLeave?
optionalonMouseLeave:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseLeave
onMouseMove?
optionalonMouseMove:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseMove
onMouseMoveCapture?
optionalonMouseMoveCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseMoveCapture
onMouseOut?
optionalonMouseOut:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOut
onMouseOutCapture?
optionalonMouseOutCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOutCapture
onMouseOver?
optionalonMouseOver:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOver
onMouseOverCapture?
optionalonMouseOverCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOverCapture
onMouseUp?
optionalonMouseUp:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseUp
onMouseUpCapture?
optionalonMouseUpCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseUpCapture
onSelect?
optionalonSelect:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSelect
onSelectCapture?
optionalonSelectCapture:ReactEventHandler<HTMLDivElement>
Inherited from
Omit.onSelectCapture
onTouchCancel?
optionalonTouchCancel:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchCancel
onTouchCancelCapture?
optionalonTouchCancelCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchCancelCapture
onTouchEnd?
optionalonTouchEnd:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchEnd
onTouchEndCapture?
optionalonTouchEndCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchEndCapture
onTouchMove?
optionalonTouchMove:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchMove
onTouchMoveCapture?
optionalonTouchMoveCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchMoveCapture
onTouchStart?
optionalonTouchStart:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchStart
onTouchStartCapture?
optionalonTouchStartCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchStartCapture
onPointerDown?
optionalonPointerDown:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerDown
onPointerDownCapture?
optionalonPointerDownCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerDownCapture
onPointerMove?
optionalonPointerMove:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerMove
onPointerMoveCapture?
optionalonPointerMoveCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerMoveCapture
onPointerUp?
optionalonPointerUp:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerUp
onPointerUpCapture?
optionalonPointerUpCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerUpCapture
onPointerCancel?
optionalonPointerCancel:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerCancel
onPointerCancelCapture?
optionalonPointerCancelCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerCancelCapture
onPointerEnter?
optionalonPointerEnter:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerEnter
onPointerLeave?
optionalonPointerLeave:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerLeave
onPointerOver?
optionalonPointerOver:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOver
onPointerOverCapture?
optionalonPointerOverCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOverCapture
onPointerOut?
optionalonPointerOut:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOut
onPointerOutCapture?
optionalonPointerOutCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOutCapture
onGotPointerCapture?
optionalonGotPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onGotPointerCapture
onGotPointerCaptureCapture?
optionalonGotPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onGotPointerCaptureCapture
onLostPointerCapture?
optionalonLostPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onLostPointerCapture
onLostPointerCaptureCapture?
optionalonLostPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onLostPointerCaptureCapture
onScroll?
optionalonScroll:UIEventHandler<HTMLDivElement>
Inherited from
Omit.onScroll
onScrollCapture?
optionalonScrollCapture:UIEventHandler<HTMLDivElement>
Inherited from
Omit.onScrollCapture
onWheel?
optionalonWheel:WheelEventHandler<HTMLDivElement>
Inherited from
Omit.onWheel
onWheelCapture?
optionalonWheelCapture:WheelEventHandler<HTMLDivElement>
Inherited from
Omit.onWheelCapture
onAnimationStart?
optionalonAnimationStart:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationStart
onAnimationStartCapture?
optionalonAnimationStartCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationStartCapture
onAnimationEnd?
optionalonAnimationEnd:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationEnd
onAnimationEndCapture?
optionalonAnimationEndCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationEndCapture
onAnimationIteration?
optionalonAnimationIteration:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationIteration
onAnimationIterationCapture?
optionalonAnimationIterationCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationIterationCapture
onTransitionEnd?
optionalonTransitionEnd:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionEnd
onTransitionEndCapture?
optionalonTransitionEndCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionEndCapture
accept?
optionalaccept:string
Inherited from
Omit.accept
acceptCharset?
optionalacceptCharset:string
Inherited from
Omit.acceptCharset
action?
optionalaction:string
Inherited from
Omit.action
allowFullScreen?
optionalallowFullScreen:boolean
Inherited from
Omit.allowFullScreen
allowTransparency?
optionalallowTransparency:boolean
Inherited from
Omit.allowTransparency
alt?
optionalalt:string
Inherited from
Omit.alt
as?
optionalas:string
Inherited from
Omit.as
async?
optionalasync:boolean
Inherited from
Omit.async
autoComplete?
optionalautoComplete:string
Inherited from
Omit.autoComplete
autoPlay?
optionalautoPlay:boolean
Inherited from
Omit.autoPlay
capture?
optionalcapture:boolean|"user"|"environment"
Inherited from
Omit.capture
cellPadding?
optionalcellPadding:string|number
Inherited from
Omit.cellPadding
cellSpacing?
optionalcellSpacing:string|number
Inherited from
Omit.cellSpacing
charSet?
optionalcharSet:string
Inherited from
Omit.charSet
challenge?
optionalchallenge:string
Inherited from
Omit.challenge
checked?
optionalchecked:boolean
Inherited from
Omit.checked
classID?
optionalclassID:string
Inherited from
Omit.classID
cols?
optionalcols:number
Inherited from
Omit.cols
colSpan?
optionalcolSpan:number
Inherited from
Omit.colSpan
controls?
optionalcontrols:boolean
Inherited from
Omit.controls
coords?
optionalcoords:string
Inherited from
Omit.coords
crossOrigin?
optionalcrossOrigin:CrossOrigin
Inherited from
Omit.crossOrigin
dateTime?
optionaldateTime:string
Inherited from
Omit.dateTime
default?
optionaldefault:boolean
Inherited from
Omit.default
defer?
optionaldefer:boolean
Inherited from
Omit.defer
disabled?
optionaldisabled:boolean
Inherited from
Omit.disabled
download?
optionaldownload:any
Inherited from
Omit.download
encType?
optionalencType:string
Inherited from
Omit.encType
formAction?
optionalformAction:string
Inherited from
Omit.formAction
formEncType?
optionalformEncType:string
Inherited from
Omit.formEncType
formMethod?
optionalformMethod:string
Inherited from
Omit.formMethod
formNoValidate?
optionalformNoValidate:boolean
Inherited from
Omit.formNoValidate
formTarget?
optionalformTarget:string
Inherited from
Omit.formTarget
frameBorder?
optionalframeBorder:string|number
Inherited from
Omit.frameBorder
headers?
optionalheaders:string
Inherited from
Omit.headers
height?
optionalheight:string|number
Inherited from
Omit.height
high?
optionalhigh:number
Inherited from
Omit.high
href?
optionalhref:string
Inherited from
Omit.href
hrefLang?
optionalhrefLang:string
Inherited from
Omit.hrefLang
htmlFor?
optionalhtmlFor:string
Inherited from
Omit.htmlFor
httpEquiv?
optionalhttpEquiv:string
Inherited from
Omit.httpEquiv
integrity?
optionalintegrity:string
Inherited from
Omit.integrity
keyParams?
optionalkeyParams:string
Inherited from
Omit.keyParams
keyType?
optionalkeyType:string
Inherited from
Omit.keyType
kind?
optionalkind:string
Inherited from
Omit.kind
list?
optionallist:string
Inherited from
Omit.list
loop?
optionalloop:boolean
Inherited from
Omit.loop
low?
optionallow:number
Inherited from
Omit.low
manifest?
optionalmanifest:string
Inherited from
Omit.manifest
marginHeight?
optionalmarginHeight:number
Inherited from
Omit.marginHeight
marginWidth?
optionalmarginWidth:number
Inherited from
Omit.marginWidth
max?
optionalmax:string|number
Inherited from
Omit.max
maxLength?
optionalmaxLength:number
Inherited from
Omit.maxLength
media?
optionalmedia:string
Inherited from
Omit.media
mediaGroup?
optionalmediaGroup:string
Inherited from
Omit.mediaGroup
method?
optionalmethod:string
Inherited from
Omit.method
min?
optionalmin:string|number
Inherited from
Omit.min
minLength?
optionalminLength:number
Inherited from
Omit.minLength
multiple?
optionalmultiple:boolean
Inherited from
Omit.multiple
muted?
optionalmuted:boolean
Inherited from
Omit.muted
name?
optionalname:string
Inherited from
Omit.name
noValidate?
optionalnoValidate:boolean
Inherited from
Omit.noValidate
open?
optionalopen:boolean
Inherited from
Omit.open
optimum?
optionaloptimum:number
Inherited from
Omit.optimum
placeholder?
optionalplaceholder:string
Inherited from
Omit.placeholder
playsInline?
optionalplaysInline:boolean
Inherited from
Omit.playsInline
poster?
optionalposter:string
Inherited from
Omit.poster
preload?
optionalpreload:string
Inherited from
Omit.preload
readOnly?
optionalreadOnly:boolean
Inherited from
Omit.readOnly
required?
optionalrequired:boolean
Inherited from
Omit.required
reversed?
optionalreversed:boolean
Inherited from
Omit.reversed
rows?
optionalrows:number
Inherited from
Omit.rows
rowSpan?
optionalrowSpan:number
Inherited from
Omit.rowSpan
sandbox?
optionalsandbox:string
Inherited from
Omit.sandbox
scope?
optionalscope:string
Inherited from
Omit.scope
scoped?
optionalscoped:boolean
Inherited from
Omit.scoped
scrolling?
optionalscrolling:string
Inherited from
Omit.scrolling
seamless?
optionalseamless:boolean
Inherited from
Omit.seamless
selected?
optionalselected:boolean
Inherited from
Omit.selected
shape?
optionalshape:string
Inherited from
Omit.shape
size?
optionalsize:number
Inherited from
Omit.size
sizes?
optionalsizes:string
Inherited from
Omit.sizes
src?
optionalsrc:string
Inherited from
Omit.src
srcDoc?
optionalsrcDoc:string
Inherited from
Omit.srcDoc
srcLang?
optionalsrcLang:string
Inherited from
Omit.srcLang
srcSet?
optionalsrcSet:string
Inherited from
Omit.srcSet
step?
optionalstep:string|number
Inherited from
Omit.step
target?
optionaltarget:string
Inherited from
Omit.target
type?
optionaltype:string
Inherited from
Omit.type
useMap?
optionaluseMap:string
Inherited from
Omit.useMap
value?
optionalvalue:string|number| readonlystring[]
Inherited from
Omit.value
width?
optionalwidth:string|number
Inherited from
Omit.width
wmode?
optionalwmode:string
Inherited from
Omit.wmode
wrap?
optionalwrap:string
Inherited from
Omit.wrap
logLevel?
optionallogLevel:LogLevel
set to LogLevel.DEBUG to enable various diagnostics in the console, the most useful being the item measurement reports.
Ensure that you have "all levels" enabled in the browser console too see the messages.
Inherited from
Omit.logLevel
alignToBottom?
optionalalignToBottom:boolean
Setting alignToBottom to true aligns the items to the bottom of the list if the list is shorter than the viewport.
Use followOutput property to keep the list aligned when new items are appended.
Inherited from
Omit.alignToBottom
atBottomStateChange()?
optionalatBottomStateChange: (atBottom) =>void
Called with true / false when the list has reached the bottom / gets scrolled up.
Can be used to load newer items, like tail -f.
Parameters
atBottom
boolean
Returns
void
Inherited from
Omit.atBottomStateChange
atBottomThreshold?
optionalatBottomThreshold:number
The property accepts pixel values.
By default 4. Redefine to change how much away from the bottom the scroller can be before the list is not considered not at bottom.
Inherited from
Omit.atBottomThreshold
atTopStateChange()?
optionalatTopStateChange: (atTop) =>void
Called with true / false when the list has reached the top / gets scrolled down.
Parameters
atTop
boolean
Returns
void
Inherited from
Omit.atTopStateChange
atTopThreshold?
optionalatTopThreshold:number
The property accepts pixel values.
By default 0. Redefine to change how much away from the top the scroller can be before the list is not considered not at top.
Inherited from
Omit.atTopThreshold
components?
optionalcomponents:Components<D,C>
Use the components property for advanced customization of the elements rendered by the list.
Inherited from
Omit.components
computeItemKey?
optionalcomputeItemKey:ComputeItemKey<D,C>
If specified, the component will use the function to generate the key property for each list item.
Inherited from
Omit.computeItemKey
context?
optionalcontext:C
Additional context available in the custom components and content callbacks
Inherited from
Omit.context
customScrollParent?
optionalcustomScrollParent:HTMLElement
Pass a reference to a scrollable parent element, so that the list won't wrap in its own.
Inherited from
Omit.customScrollParent
defaultItemHeight?
optionaldefaultItemHeight:number
By default, the component assumes the default item height from the first rendered item (rendering it as a "probe").
If the first item turns out to be an outlier (very short or tall), the rest of the rendering will be slower, as multiple passes of rendering should happen for the list to fill the viewport.
Setting defaultItemHeight causes the component to skip the "probe" rendering and use the property
value as default height instead.
Inherited from
Omit.defaultItemHeight
endReached()?
optionalendReached: (index) =>void
Gets called when the user scrolls to the end of the list. Receives the last item index as an argument. Can be used to implement endless scrolling.
Parameters
index
number
Returns
void
Inherited from
Omit.endReached
fixedItemHeight?
optionalfixedItemHeight:number
Can be used to improve performance if the rendered items are of known size. Setting it causes the component to skip item measurements.
Inherited from
Omit.fixedItemHeight
followOutput?
optionalfollowOutput:FollowOutput
If set to true, the list automatically scrolls to bottom if the total count is changed.
Set to "smooth" for an animated scrolling.
By default, followOutput scrolls down only if the list is already at the bottom.
To implement an arbitrary logic behind that, pass a function:
<Virtuoso
followOutput={(isAtBottom: boolean) => {
if (expression) {
return 'smooth' // can be 'auto' or false to avoid scrolling
} else {
return false
}
}} />
Inherited from
Omit.followOutput
scrollIntoViewOnChange()?
optionalscrollIntoViewOnChange: (params) =>undefined|null|false|void|ScrollIntoViewLocation
Implement this callback if you want to adjust the list position when the list total count changes.
Return a ScrollIntoViewLocation object to scroll to a specific item, or falsey value to avoid scrolling.
Use the context contents if you need to implement custom logic based on the current state of the list.
Parameters
params
context
C
totalCount
number
scrollingInProgress
boolean
Returns
undefined | null | false | void | ScrollIntoViewLocation
Inherited from
Omit.scrollIntoViewOnChange
headerFooterTag?
optionalheaderFooterTag:string
Set to customize the wrapper tag for the header and footer components (default is div).
Inherited from
Omit.headerFooterTag
horizontalDirection?
optionalhorizontalDirection:boolean
When set, turns the scroller into a horizontal list. The items are positioned with inline-block.
Inherited from
Omit.horizontalDirection
increaseViewportBy?
optionalincreaseViewportBy:number| {bottom:number;top:number; }
The property accepts pixel values.
Set the increaseViewportBy property to artificially increase the viewport size, causing items to be rendered before outside of the viewport.
The property causes the component to render more items than the necessary, but can help with slow loading content.
Using { top?: number, bottom?: number } lets you set the increase for each end separately.
Inherited from
Omit.increaseViewportBy
initialItemCount?
optionalinitialItemCount:number
Use for server-side rendering - if set, the list will render the specified amount of items regardless of the container / item size.
Inherited from
Omit.initialItemCount
initialScrollTop?
optionalinitialScrollTop:number
Set this value to offset the initial location of the list.
Warning: using this property will still run a render cycle at the scrollTop: 0 list window.
If possible, avoid using it and stick to initialTopMostItemIndex instead.
Inherited from
Omit.initialScrollTop
initialTopMostItemIndex?
optionalinitialTopMostItemIndex:number|IndexLocationWithAlign
Set to a value between 0 and totalCount - 1 to make the list start scrolled to that item.
Pass in an object to achieve additional effects similar to scrollToIndex.
Inherited from
Omit.initialTopMostItemIndex
isScrolling()?
optionalisScrolling: (isScrolling) =>void
Called when the list starts/stops scrolling.
Parameters
isScrolling
boolean
Returns
void
Inherited from
Omit.isScrolling
itemSize?
optionalitemSize:SizeFunction
Allows customizing the height/width calculation of Item elements.
The default implementation reads el.getBoundingClientRect().height and el.getBoundingClientRect().width.
Inherited from
Omit.itemSize
itemsRendered()?
optionalitemsRendered: (items) =>void
Called with the new set of items each time the list items are rendered due to scrolling.
Parameters
items
ListItem<D>[]
Returns
void
Inherited from
Omit.itemsRendered
overscan?
optionaloverscan:number| {main:number;reverse:number; }
The property accepts pixel values.
Set the overscan property to make the component "chunk" the rendering of new items on scroll.
The property causes the component to render more items than the necessary, but reduces the re-renders on scroll.
Setting { main: number, reverse: number } lets you extend the list in both the main and the reverse scrollable directions.
See the increaseViewportBy property for a similar behavior (equivalent to the overscan in react-window).
Inherited from
Omit.overscan
rangeChanged()?
optionalrangeChanged: (range) =>void
Called with the new set of items each time the list items are rendered due to scrolling.
Parameters
range
Returns
void
Inherited from
Omit.rangeChanged
restoreStateFrom?
optionalrestoreStateFrom:StateSnapshot
pass a state obtained from the getState() method to restore the list state - this includes the previously measured item sizes and the scroll location. Notice that you should still pass the same data and totalCount properties as before, so that the list can match the data with the stored measurements. This is useful when you want to keep the list state when the component is unmounted and remounted, for example when navigating to a different page.
Inherited from
Omit.restoreStateFrom
scrollerRef()?
optionalscrollerRef: (ref) =>any
Provides access to the root DOM element
Parameters
ref
null | HTMLElement | Window
Returns
any
Inherited from
Omit.scrollerRef
scrollSeekConfiguration?
optionalscrollSeekConfiguration:false|ScrollSeekConfiguration
Use to display placeholders if the user scrolls fast through the list.
Set components.ScrollSeekPlaceholder to change the placeholder content.
Inherited from
Omit.scrollSeekConfiguration
skipAnimationFrameInResizeObserver?
optionalskipAnimationFrameInResizeObserver:boolean
When set, the resize observer used to measure the items will not use requestAnimationFrame to report the size changes.
Setting this to true will improve performance and reduce flickering, but will cause benign errors to be reported in the console if the size of the items changes while they are being measured.
See https://github.com/petyosi/react-virtuoso/issues/1049 for more information.
Inherited from
Omit.skipAnimationFrameInResizeObserver
startReached()?
optionalstartReached: (index) =>void
Called when the user scrolls to the start of the list.
Parameters
index
number
Returns
void
Inherited from
Omit.startReached
topItemCount?
optionaltopItemCount:number
Set the amount of items to remain fixed at the top of the list.
For a header that scrolls away when scrolling, check the components.Header property.
Inherited from
Omit.topItemCount
totalListHeightChanged()?
optionaltotalListHeightChanged: (height) =>void
Called when the total list height is changed due to new items or viewport resize.
Parameters
height
number
Returns
void
Inherited from
Omit.totalListHeightChanged
useWindowScroll?
optionaluseWindowScroll:boolean
Uses the document scroller rather than wrapping the list in its own.
Inherited from
Omit.useWindowScroll