Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-gantt-timeline

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gantt-timeline

[![npm](https://img.shields.io/npm/v/react-gantt-timeline.svg?style=flat-square)](http://npm.im/react-gantt-timeline) [![MIT License](https://img.shields.io/npm/l/react-list.svg?style=flat-square)](http://opensource.org/licenses/MIT) [![Travis](https://tr

  • 0.3.0
  • npm
  • Socket score

Version published
Weekly downloads
531
increased by27.64%
Maintainers
1
Weekly downloads
 
Created
Source

react-gantt-timeline

npm MIT License Travis codecov Codacy Badge

A react timeline gantt component.

alt text

Intro

React-timeline-gantt is an awesome blazing fast timeline - gantt component 😛. These are the feature currently supported:

  • Virtual rendering. Can render really fast a huge number of records.
  • Infinite scrolling.
  • Calendar View
  • Zoom mode can be set to Day ,week or Month.
  • Redux Compatible.Implement all necessary call backs to trigger actions and update store.
  • Task update and resizing.
  • Task dependencies.
  • Support paging.

Here is a demo video that shows how to use the component. Here is a working demo .

Road Map

  • Hierarchical tasks.(currently under development)
  • Style customisation.(currently under development)
  • Zoom to task.Plan for release 4.~

Installation

npm install react-gantt-timeline

Timeline Data

The timeline data can be set with the data property of the time line. The data needs to be an array of object. Each item of the array needs to contain the following elements.

PropertyvalueDescriptions
startdateThe start date of the task
enddateThe end date of the task
namestringThe name of the task to be diplayed
 let data=[ {start:new Date(), end:new Date()+1 ,name:'Demo Task'}]

Timeline Events

nameparamsDescriptions
onNeedDatastart:Date,end :dateIs trigger every time the timeline load a new period, provide the start and end date of the period to load, this method is useful for implementing paging or filter your data to only show tasks for the relevant period
onSelectItemitem:ObjectThis even is trigger when a item is selected by the time line
onUpdateItemitem:Object,props:ObjectThis even is trigger when a item has been updated, it receive the item to be updated and the properties and values to by apply

Other properties

PropertyvalueDescriptions
modestringset the zoom lever of the timeline.The possible values are:"month","week","day"
itemHeigthnumberThe height of the row 30px by default

Some Demo Code

  • Edit n09l7m400j Crud Demo.
  • Coming up a redux demo.

Keywords

FAQs

Package last updated on 19 Sep 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc