1.0.19 • Published 4 years ago

react-gantt-simple-timeline v1.0.19

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

react-gantt-simple-timeline

Horizontal gantt timeline

NPM JavaScript Style Guide

image

Features

  • custom headers content
  • custom element content
  • fixed and auto fit width

Install

npm install --save react-gantt-simple-timeline

Usage

See Demo

import React, { Component } from 'react'

import Timeline from 'react-gantt-simple-timeline'

class Example extends Component {
  renderElement = (element) => {
    return (
      <div className='your-element'>
        custom content  
      </div>
    )
  }

  renderColHeaderItem = (col) => (
    <div className='your-col-head'>custom title</div>
  )

  renderRowHeaderItem = (col) => (
    <div className='your-row-head'>custom header</div>
  )

  timeFormatFunction = (date) => {
    return formatTime(date)
  }

  handleElementClick = (element, rowIndex, e) => {
  }
  
  render () {
    return (
      <Timeline
        current={new Date()}
        rows={ROWS}
        cols={COLS}
        currentTimeOverlapClass='currentTimeOverlap'
        timeFormatFunction={this.timeFormatFunction}
        renderElement={this.renderElement}
        renderColHeader={this.renderColHeaderItem}
        renderRowHeader={this.renderRowHeaderItem}
        handleElementClick={this.handleElementClick}
        gridColor='#CCCCCC'
        currentTimeOverlapClass='customizeIfNeed'
        rowsHeaderClass='customizeIfNeed'
        colsHeaderClass='customizeIfNeed'
        gridLineClass='customizeIfNeed'
        rowsBodyClass='customizeIfNeed'
      />
    )
  }
}

License

MIT © Ramil Gallyamov

TODO

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago