Skip to content

Commit

Permalink
fix: expose logLevel for Grid
Browse files Browse the repository at this point in the history
Fixes #891
  • Loading branch information
petyosi committed May 8, 2023
1 parent 9fd46ba commit 290fb1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/grid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { VirtuosoGrid, VirtuosoGridHandle, GridComponents } from '../src'
import { VirtuosoGrid, VirtuosoGridHandle, GridComponents, LogLevel } from '../src'
import styled from '@emotion/styled'

const ItemContainer = styled.div`
Expand Down Expand Up @@ -46,6 +46,7 @@ export function Example() {
<>
<VirtuosoGrid
ref={ref}
logLevel={LogLevel.INFO}
components={{
Item: ItemContainer,
List: ListContainer,
Expand Down
1 change: 1 addition & 0 deletions src/VirtuosoGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ const {
useWindowScroll: 'useWindowScroll',
customScrollParent: 'customScrollParent',
scrollerRef: 'scrollerRef',
logLevel: 'logLevel',
},
methods: {
scrollTo: 'scrollTo',
Expand Down

0 comments on commit 290fb1e

Please sign in to comment.