🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

frappe-gantt-react-no-scroll

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frappe-gantt-react-no-scroll

It's a React Component, a Wrapper for the awesome [Gantt chart library](https://github.com/frappe/gantt) from Frappé

0.0.2
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Frappé Gantt React Wrapper

It's a React Component, a Wrapper for the awesome Gantt chart library from Frappé

For the live demo, you can check their live demo here

Install

npm install frappe-gantt-react

or

yarn add frappe-gantt-react

Usage

Import it to your project

Using ES6 modules

import { FrappeGantt } from 'frappe-gantt-react

Or using CommonJS

const { FrappeGantt } = require('frappe-gantt-react')

Then you can use it in your react app:

class App extends React.Component {

    ...

    render() {

        return (
            ...
            <div>
                <FrappeGantt
                    tasks={tasks}
                    viewMode={this.state.mode}
                    onClick={task => console.log(task)}
                    onDateChange={(task, start, end) => console.log(task, start, end)}
                    onProgressChange={(task, progress) => console.log(task, progress)}
                    onTasksChange={tasks => console.log(tasks)}
                />
            </div>
            ...

        )

    }

}

The API

The component props

PropertyDescription
tasksAccepts array of class Task
onTasksChangeAccepts a (tasks: Task[]) => void, where tasks is the new copy —manipulated— of array of tasks
onClickAccepts a (task: Task) => void, where task is the clicked task
onDateChangeAccepts a (task: Task, start: Moment, end: Moment) => void, both start and end are Moment objects
onProgressChangeAccepts a (task: Task, progress: number) => void
onViewChangeAccepts a (mode: ViewMode) => void

Keywords

react

FAQs

Package last updated on 15 Nov 2022

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