I'm looking for a JS-based Resource Planning Component, where i have the available resources on the left and the resource load on the right.
So far i only found a few gantt chart implementation, which lack add, move and editing capabilitys. I wounder whether such a component exists.
Creating a JS Gantt chart in 4 stepsStep 1: Preparing the data. Step 2: Getting dependencies. Step 3: Declaring the chart container. Step 4: Rendering the Gantt chart.
DHTMLX Gantt is a full-featured Gantt chart for cross-browser and cross-platform applications. The most complete library to cover all the needs of a project management app.
I don't know of any out of the box solutions, but this is something that could probably be implemented somewhat easily. If you create several div
s for rows, and then sub-div
s for resources, you could build something like the spec.
First, keep track of all the resources, and the durations, in some kind of a datastructure.
Create a render
function, that places an array of resources on the page, and lays them out, etc.
Create add/remove functions that add/remove elements, then call the render
function to relayout the elements
To add dragging, I'd use jQuery UI Draggable, this makes it fairly easy to drag elements, and includes places for attaching callbacks when elements are dragged, dropped, etc.
There is a quite nice library called DHTMLX Scheduler which also includes a timeline view: http://dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml You can get the free GNU GPL version or a commercial one. A running example can be found here: http://booking.javaplanner.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With