<template>
<div>
<ejs-gantt ref='gantt' :dataSource="data" id="GanttContainer"
:taskFields="taskFields" :height="height" :headerCellInfo="headerCellInfo">
//...
</ejs-gantt>
</div>
</template>
<script>
export default {
//...
methods: {
headerCellInfo: function(args) {
if(args.cell.colIndex == 0){
args.node.innerText = ""
}
}
},
};
</script>
|
<ejs-gantt ref='gantt' :dataSource="data" id="GanttContainer"
:taskFields="taskFields" :height="height" :headerCellInfo="headerCellInfo">
<e-columns>
<e-column field='StartDate' headerText=' ' width='150'></e-column>
//...
</e-columns>
</ejs-gantt> |
<template>
<div>
<ejs-button ref='hide' @click.native='hideshow'>Hide/Show</ejs-button>
<ejs-gantt ref='gantt' :dataSource="data" id="GanttContainer">
//...
</ejs-gantt>
</div>
</template>
<script>
export default {
//...
methods: {
hideshow: function() {
if(this.$refs.gantt.getGridColumns()[1].visible)
this.$refs.gantt.hideColumn('TaskName','field')
else
this.$refs.gantt.ShowColumn('TaskName','field')
},
},
};
</script> |