Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-virtual-kanban
Advanced tools
Changelog
0.2.0
Added itemCacheKey prop to be able to specify a custom key for caching Item components. This comes handy if underlaying Item data changes (like a title) and needs to be re-rendered to reflect new height.
Added scrollToList
and scrollToAlignment
to set kanban scroll to desired list.
Fixed items not being refreshing when moving lists around.
Updated package.json and added some badges to the README.
Readme
A Kanban component in React.
Demo available here: https://edulan.github.io/react-virtual-kanban/
Via npm:
npm install react-virtual-kanban --save
import React from 'react';
import ReactDOM from 'react-dom';
import { VirtualKanban } from 'react-virtual-kanban';
// Import only once
import 'react-virtual-kanban/lib/styles.css';
// Declare lists with the following structure
const lists = [
{
id: 'list#1',
rows: [
{id: 'item#1'},
{id: 'item#2'},
{id: 'item#3'},
{id: 'item#4'}
]
},
{
id: 'list#2',
rows: [
{id: 'item#5'},
{id: 'item#6'},
{id: 'item#7'},
{id: 'item#8'}
]
},
{
id: 'list#3',
rows: [
{id: 'item#9'},
{id: 'item#10'},
{id: 'item#11'},
{id: 'item#12'}
]
}
];
ReactDOM.render(
<VirtualKanban
lists={lists}
width={800}
height={600}
listWidth={200}
/>,
document.getElementById('root')
);
Property | Type | Default | Description |
---|---|---|---|
lists | Array | [] | Array of lists to be rendered |
width | Number | The width of the kanban board | |
height | Number | The height of the kanban board | |
listWidth | Number | Width of each list | |
listComponent | Function | List | List decorator component |
itemComponent | Function | Item | Item decorator component |
itemPreviewComponent | Function | ItemPreview | Item preview decorator component |
listPreviewComponent | Function | List preview decorator component | |
onMoveRow | Function | Move row callback | |
onMoveList | Function | Move list callback | |
onDropRow | Function | Drop row callback | |
onDropList | Function | Drop list callback | |
overscanListCount | Number | 2 | Number of lists to render before/after the visible part |
overscanRowCount | Number | 2 | Number of row items to render before/after the visible part |
itemCacheKey | Function | id | Key generator function for caching Item components |
FAQs
A Kanban component in React
The npm package react-virtual-kanban receives a total of 2 weekly downloads. As such, react-virtual-kanban popularity was classified as not popular.
We found that react-virtual-kanban demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.