diff --git a/api-generator/components/virtualscroller.js b/api-generator/components/virtualscroller.js index 54c080fb8..d9cc37f3a 100644 --- a/api-generator/components/virtualscroller.js +++ b/api-generator/components/virtualscroller.js @@ -94,6 +94,12 @@ const VirtualScrollerProps = [ type: "boolean", default: "false", description: "Whether to show loader." + }, + { + name: "tabindex", + type: "number|string", + default: "0", + description: "Index of the element in tabbing order." } ]; diff --git a/src/components/virtualscroller/VirtualScroller.d.ts b/src/components/virtualscroller/VirtualScroller.d.ts index 8a0590210..f98bdcdd5 100644 --- a/src/components/virtualscroller/VirtualScroller.d.ts +++ b/src/components/virtualscroller/VirtualScroller.d.ts @@ -158,6 +158,11 @@ export interface VirtualScrollerProps { * @param {VirtualScrollerLazyEvent} event - Custom lazy event. */ onLazyLoad?: (event: VirtualScrollerLazyEvent) => void; + /** + * Index of the element in tabbing order. + * Default value is 0. + */ + tabindex?: number | string | undefined; } export interface VirtualScrollerSlots { diff --git a/src/components/virtualscroller/VirtualScroller.vue b/src/components/virtualscroller/VirtualScroller.vue index b986493d0..021987a08 100644 --- a/src/components/virtualscroller/VirtualScroller.vue +++ b/src/components/virtualscroller/VirtualScroller.vue @@ -1,6 +1,6 @@