Code Monkey home page Code Monkey logo

react-timeline-gantt's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @guiqui
  • ๐Ÿ‘€ I'm an Entrepreneur, AWS Solution Architect, Kubernetes Specialist, Innovator, and Founder.
  • I develop tools for people to enjoy:
  • K8Studio - IDE to manage Kubernetes Clusters.
  • Profile Me - Creates Professional Profile pictures.
  • Background RM - Remove pictures Background.
  • MetersApp - Create Quotes using measures from floorplan.

react-timeline-gantt's People

Contributors

cscatolini avatar danielsogl avatar dependabot[bot] avatar dominikengel avatar domino987 avatar ericreis avatar guiqui avatar maksimkurb avatar monkeywithacupcake avatar superpepote avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-timeline-gantt's Issues

Two time zones in day view

Can I show tow time header for day view ?
One is for one time zone in hour format and other one is for other time zone in hour format ?

Customisation of components

Hello,
I would like to have a way to fully customize some of the components. For example inserting a row with 3 inputs inside the taskList section.
something like this:

const config = {
  taskList: {
    title: {
      label: "Task Todo",
      style: {
        background: "linear-gradient( grey, black)"
      }
    },
    task: (props) => <CustomTaskComponent {...props} />,
  },
};

If this is not supported, I don't mind implementing this myself and open a pull request for it.
Wondering if this project is still active.

Thanks

Is there support for a horizontal slider/cursor?

Hi, I'd like to be able to move a slider/cursor back and forth horizontally, which would be indicated with a vertical line. As I move it, I'd get events indicating which records the cursor intersects. Is this supported by this timeline?
Thanks.

Show more info columns on "Task column"

Is there a way to show more information on the left column?, Basically, add more columns apart from task name. I mean for example my data source include a task owner, status, completed percent, etc.

If currently not supported, would you consider a PR with this feature?

Thanks,
Jonathan

Can't resolve 'moment'

FYI After fresh install:

Module not found: Can't resolve 'moment' in 'C:\SQLI\Projects\airline-sciences-indus_new\airline-sciences-react2\node_modules\react-gantt-timeline\dist'

WEEK and DAY View

Hi,
Noticed a couple of things on the URL below.
https://guiqui.github.io/react-timeline-gantt/index.html

  1. Initially the week and day view doesn't appear, however as soon scrolling happens(right or left) the dates appear.
  2. The day view appears to be confusing. Somehow the dates are NOT displaying in day view.

Is this an issue or do I have a old version of libraries?

Thanks,

Rest Api Call

Hey,

Thanks for the react-timeline-gantt. Was wondering if there is any sample with a rest api call to fetch data?

how's the state gettig updated below :

Here you are changing the item but after de-structuring data array you are not updating the manipulated item. Can you please explain because according to my knowledge de-structuring prevents mutability and gives an exact copy

case Actions.AC_UPDATE_TASK:
debugger
item = action.payload.item;
props = action.payload.props;
console.log('update item', item);
console.log('update prop', props);
item.start = props.start ? props.start : item.start;
item.end = props.end ? props.end : item.end;
item.name = props.name ? props.name : item.name;
return {
data: [...state.data],
links: [...state.links],
selectedItem: state.selectedItem
};

Cannot make task name in the task list non editable

Hi,

I was trying to use this component but in my use case, I cannot allow the user to edit the task name by clicking it. I looked at the code and saw that this is not currently possible.

@guiqui is this repository still maintained? I would gladly open a PR to make this configuration possible, but I haven't seen much activity lately here.

Individual Labeling of Tasks

Hey there! First of all - thank you for providing this great package!
For my use case, it would be great if the labeling of the task displayed in the timeline could be given another value other than the already given task-name.
Is there a possible workaround or is this only applyable by creating this as a new feature? If so, I'd be very happy to contribute this additional feature.

Cannot assign to read only property 'backgroundColor' of object '#<Object>'

I am trying to style the chart by taking help from the following demo:

https://codesandbox.io/s/2w93lvmqv0?file=/src/index.js:182-1455

But getting error. I am using config property. I am on version 0.4.3 but the demo above provided is on version 0.3.9. I am not sure whether the version update caused something. The error is as follows:

Uncaught TypeError: Cannot assign to read only property 'backgroundColor' of object '#<Object>'

Any kind of help would be much appreciated

supporting jalali-date

I'm trying to use gantt chart with Jalali calendar with moment-jalali.
I've changed getFormat and so far it's ok, except Jalali year month starts in March so I had to change getStartDate function.

getStartDate = (date, mode) => {
    let year = null;
    switch (mode) {
        case 'year':
            return date.startOf('jYear');
        case 'month':
            return date.startOf('jMonth');
        case 'week':
            return date.subtract(date.day(), 'days');
        default:
            return date
    }
}

but now I'm getting bugs in the calender...
on scrolling chart month and year not showing and disappears...
is there any other function I should change?

ReferenceError: window is not defined

I am using the nextjs , the chart cannot show .

error msg:

Server Error
ReferenceError: window is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
external%20%22react-gantt-timeline%22 (1:0) @ Object.react-gantt-timeline

1 | module.exports = require("react-gantt-timeline");
Call Stack
webpack_require
webpack\bootstrap (21:0)
Show collapsed frames
ๆ“ทๅ–

How to use the "mode" setting in config ?

Hi,
First of all, thank you for the 0.3.9 update ๐Ÿ‘
I have several questions :
1- How can I use the mode property in config obj ?
2- Is it still possible to use the dateFormat ?
3- Is it possible to delete a part of the header, like the middle or the bottom part ?

Again thank you so much :)

Header days/times disappear on horizontal scroll

Hey thanks for the timeline. I looks like a great start to a project. One issue I found was when dragging the timeline to the right, the header days/hours disappear in the Day and Week mode. This makes these modes hard to use.

multiple bars on the same task row

Hi!
Is it possible for one task to have multiple time bars on the same row? for example one going from the 1st may to the 3rd of may. and then another one going from 5th of may to the 10th ?.
Moreover is it possible to disable the link creation and animation (such that when clicking on the right side of a bar we don't have the link arrow spawning and moving?)
Thanks for you time and answer.

Adjustable Tasklist height.

Is there currently a way to adjust the height of the tasks? Would like a little more height for each, right now they feel a little cramped.

change the default time horizon

Hi,
Not sure if this is an issue; but is there a way I can change the current default time horizon (it starts from today's date and I wanted it to start from today's date minus X days ...

Conditional styling for the days in timeline

Hello, is there a way to style a single day of the timeline individually?
In my use case, I am required to mark holidays / non-working days in the timeline by coloring the background differently. Is there a way to do this?
So far as I understand, I can only change the background color for all days but not for a single day.
Also, as it is shown in the demo (https://codesandbox.io/s/brave-rgb-c72g7) the today-date is colored red. This is not the case for the "basic" demo (https://codesandbox.io/s/1y2on87jj) but I cannot figure out how you did that. Can you help?
Thanks!

LOCAL DATETIME

Hi,
as I wrote to you by email I want to fix your code to see datetime in local format. For example in my case italian format.
I want to add in Config class this portion of code:
,
moment : {
locale : 'it'
}
So I can set moment.locale in the language that i wants in the page where I use your package.
After I want to set moment.locale(Config.moment.locale); into headers.js to apply the correct datetime format.
I try to rebuild your package but no fix seems applyed

Thanks Alex

Updating a component in webpack-dev-server causes Uncaught TypeError

When using react-timeline-gantt in webpack-dev-server, a hot reload triggers the following during rendering:

index.js:1 Uncaught TypeError: Cannot assign to read only property 'backgroundColor' of object '#'
at e.value (index.js:1)
at e.value (index.js:1)
at e.value (index.js:1)
at e.value (index.js:1)
at e.load (index.js:1)
at new t (index.js:1)
at constructClassInstance (react-dom.development.js:11361)
at updateClassComponent (react-dom.development.js:14687)
at beginWork (react-dom.development.js:15644)
at performUnitOfWork (react-dom.development.js:19312)

Custom Task Card

Is it possible to using render Props So I Can for example render custom task Card

Can't add an image instead of a color on a task

I want to replace the background color of the task with an image of any format or an svg or any other graphical substitute .
I also don't know if it is possible to pass such props through the config variable

Function to move horizontally to a specified date

Hello,

Thank you for this! It's easy to setup and really helpful.

Is there a way to tell the Timeline to scroll horizontally to the start date of the earliest/first task when the component is created? Currently it focuses on the current date. Unless I'm doing something wrong?

It would be nice to have an option to bring any task into view on the right when clicking on it's name on the left hand side.

Edit Header with only years and months

Hello, I would like to know if it's possible using the config object maybe or something else, to show in the header the years and 12 months under them instead of the months and 30 days under them ?

thanks !

TimeLine render code triples the view if extended into a child class

I wish to extend the TimeLine component's render function. If I extend the class and have render as follows:
render() { return TimeLine.prototype.render.call(this);
Then the calendar displays normally.

However, if I copy the contents of the render function from TimeLine.js into my child class's render() function, the calendar repeats itself across the screen multiple times:
image

How can I avoid this happening? I have already imported all the correct modules.

OnHorizonChange

Hi,

I am trying to figure out what would be the value for start and end in Month view on the timeline?

When the component renders twice, I see 2 different date values for start and end like below.

Calculating in Horizon
Start Sun May 05 2019 08:00:00 GMT-0700 (Pacific Daylight Time)
End Sat Jul 27 2019 16:00:00 GMT-0700 (Pacific Daylight Time)

Start Sun May 05 2019 08:00:00 GMT-0700 (Pacific Daylight Time)
End Fri Sep 13 2019 16:19:41 GMT-0700 (Pacific Daylight Time)

Main Task Drag

when i drag main task then all the dependent(linked) tasks should move, how can i do this using this plugin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.