🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@lsky/v-table

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lsky/v-table

> React components for render table with virtual

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

Virtual Table

React components for render table with virtual

Installing

npm

$ npm i @lsky/vTable

yarn

$ yarn add @lsky/vTable

And you need to React and ReactDom

$ npm i react react-dom

Component Props

vTable

attrtypedefault valuerequireddesc
columnWidthnumber | ((columnIndex) => number)nulltruecolumn width
columnCountnumbernulltruecolumn count
rowHeightnumber | ((rowIndex) => number)nulltruerow height
rowCountnumbernulltruerow count
widthnumbernulltruecontainer width
heightnumbernulltruecontainer height
scrollTopnumbernullfalsescrollTop. if passed in, change to controlled component
scrollLeftnumbernullfalsescrollLeft. if passed in, change to controlled component
render(({rowIndex, columnIndex, key, style}) => React.node)nulltruerender cell
onScroll(({scrollTop, scrollLeft}) => void)nullfalseonScroll
isWindowScrollerbooleannullfalseis use WindowScroller component wrap

Adaptive

attrtypedefault valuerequireddesc
defaultWidthnumbernullfalsedefault width
defaultHeightnumbernullfalsedefault height
children(({width, height}) => React.node)nulltruechildren

WindowScroller

attrtypedefault valuerequireddesc
scrollLeftnumbernullfalsescroll left
scrollTopnumbernullfalsescroll top
children(({scrollLeft, scrollTop}) => React.node)nulltruechildren

Keywords

react-component

FAQs

Package last updated on 09 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts