2.1.3 • Published 6 months ago

evolco-vue-gantt v2.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Install

npm install evolco-vue-gantt

Usage

Include it in your HTML:

<script src="frappe-gantt.min.js"></script>
<link rel="stylesheet" href="frappe-gantt.css">

And start hacking:

var tasks = [
  {
    row_id: 1, // Allows to match task/tasks with the speciffic row
    id: 'Task 1',
    name: 'Redesign website',
    start: '2016-12-28',
    end: '2016-12-31',
    progress: 20, // optional 
    dependencies: 'Task 2, Task 3', // optional (needs debugging)
    custom_class: 'bar-milestone', // optional 
    draggable: false, // Disables all functionalities related to dragging (bar dragging, bar or 
    // process width adjustments) 
  },...]

var rows = [] // Required to generate multiple rows and for left_header_label and 
// left_column_label options. E.g.: rows = users = [{id:1, full_name: 'John Smith'},...]

var gantt = new Gantt("#gantt", tasks, rows);

You can also pass various options to the Gantt constructor:

var gantt = new Gantt("#gantt", tasks, rows, {
    header_height: 50,
    column_width: 30,
    step: 24,
    view_modes: ['Hour', 'Quarter Day', 'Half Day', 'Day', 'Week', 'Month'],
    bar_height: 20,
    bar_corner_radius: 3,
    arrow_curve: 5,
    padding: 18,
    view_mode: 'Day',   
    date_format: 'YYYY-MM-DD',
    custom_popup_html: null,
    left_header_label: 'Users', 
    left_column_label: 'full_name',
    onBarClick: yourFunction, // Create your function which will be executed on bar click
    // it has access to task and event. E.g.: yourFunction(task, event) {console.log(task, event)}
});

If you want to contribute:

  1. Clone this repo.
  2. cd into project directory
  3. yarn
  4. yarn run dev

License: MIT


2.1.2

6 months ago

2.1.1

6 months ago

2.1.3

6 months ago

2.1.0

6 months ago

2.0.7

9 months ago

2.0.9

9 months ago

2.0.8

9 months ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago