You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ganttBarConfig: { // each bar must have a nested ganttBarConfig object ...
72
-
id:"unique-id-1", // ... and a unique "id" property
73
-
label:"Lorem ipsum dolor"
64
+
import { ref } from"vue"
65
+
66
+
constrow1BarList=ref([
67
+
{
68
+
myBeginDate:"2021-07-13 13:00",
69
+
myEndDate:"2021-07-13 19:00",
70
+
ganttBarConfig: {
71
+
// each bar must have a nested ganttBarConfig object ...
72
+
id:"unique-id-1", // ... and a unique "id" property
73
+
label:"Lorem ipsum dolor"
74
+
}
74
75
}
75
-
}
76
-
])
77
-
constrow2BarList=ref([
78
-
{
79
-
myBeginDate:"2021-07-13 00:00",
80
-
myEndDate:"2021-07-14 02:00",
81
-
ganttBarConfig: {
82
-
id:"another-unique-id-2",
83
-
hasHandles:true,
84
-
label:"Hey, look at me",
85
-
style: { // arbitrary CSS styling for your bar
86
-
background:"#e09b69",
87
-
borderRadius:"20px",
88
-
color:"black"
76
+
])
77
+
constrow2BarList=ref([
78
+
{
79
+
myBeginDate:"2021-07-13 00:00",
80
+
myEndDate:"2021-07-14 02:00",
81
+
ganttBarConfig: {
82
+
id:"another-unique-id-2",
83
+
hasHandles:true,
84
+
label:"Hey, look at me",
85
+
style: {
86
+
// arbitrary CSS styling for your bar
87
+
background:"#e09b69",
88
+
borderRadius:"20px",
89
+
color:"black"
90
+
},
91
+
class:"foo"// you can also add CSS classes to your bars!
89
92
}
90
93
}
91
-
}
92
-
])
94
+
])
93
95
</script>
94
-
95
96
```
96
97
97
98
## Contributing
99
+
98
100
Clone the project, make some changes, test your changes out, create a pull request with a short summary of what changes you made. Contributing is warmly welcomed!
99
101
100
102
To test your changes out before creating a pull request, create a build:
103
+
101
104
```
102
105
npm run build
103
106
```
107
+
104
108
To test out the build, you should create a tarball using:
109
+
105
110
```
106
111
npm pack
107
112
```
113
+
108
114
Then, place the tarball in some other test project and install the package from the tarball by using:
115
+
109
116
```
110
117
npm install <name_of_the_package>.tgz
111
118
```
112
119
113
120
## Guide and Docs
114
-
For further guides and references, check out the [official docs](https://zunnzunn.github.io/vue-ganttastic/getting-started.html).
121
+
122
+
For further guides and references, check out the [official docs](https://zunnzunn.github.io/vue-ganttastic/getting-started.html).
0 commit comments