update readme
This commit is contained in:
parent
b32ac7d318
commit
b92de74543
27
README.md
27
README.md
@ -1,7 +1,7 @@
|
||||
# Frappé Gantt
|
||||
A simple, interactive, modern gantt chart library for the web
|
||||
|
||||

|
||||

|
||||
|
||||
####View the demo [here](https://frappe.github.io/gantt).
|
||||
|
||||
@ -13,21 +13,23 @@ npm install frappe-gantt
|
||||
###Usage
|
||||
Include it in your html:
|
||||
```
|
||||
<script src="frappe-gantt.js"></script>
|
||||
<script src="frappe-gantt.min.js"></script>
|
||||
```
|
||||
|
||||
And start hacking:
|
||||
```
|
||||
var gantt = new Gantt(
|
||||
"#gantt",
|
||||
[
|
||||
{
|
||||
start: "2016-10-04", end: "2016-10-10",
|
||||
id: 0, name: "Explore ERPNext"
|
||||
},
|
||||
...
|
||||
]
|
||||
});
|
||||
var tasks = [
|
||||
{
|
||||
id: 'Task 1',
|
||||
name: 'Redesign website',
|
||||
start: '2016-12-28',
|
||||
end: '2016-12-31',
|
||||
progress: 20,
|
||||
dependencies: 'Task 2, Task 3'
|
||||
},
|
||||
...
|
||||
]
|
||||
var gantt = new Gantt("#gantt", tasks);
|
||||
```
|
||||
|
||||
If you want to contribute:
|
||||
@ -37,6 +39,7 @@ If you want to contribute:
|
||||
3. `npm install`
|
||||
4. `npm run dev`
|
||||
|
||||
License: MIT
|
||||
|
||||
------------------
|
||||
Project maintained by [frappe](https://github.com/frappe)
|
||||
Loading…
x
Reference in New Issue
Block a user