<!--
/**
 * @fileoverview GanttElastic standalone version component
 * @license MIT
 * @author Rafal Pospiech <neuronet.io@gmail.com>
 * @package
 */
-->
<template>
  <gantt-elastic
    :tasks="tasks"
    :options="options"
    :dynamic-style="dynamicStyle"
    @scroll="scrollEvent($event)"
  >
    <component v-if="components.header" slot="header" :is="components.header" />
    <component v-if="components.footer" slot="footer" :is="components.footer" />
  </gantt-elastic>
</template>
<script>
import GanttElastic from './GanttElastic.vue'
export default {
  name: 'GanttElasticStandalone',
  components: {
    'gantt-elastic': GanttElastic
  },
  props: ['header', 'footer'],
  data: function() {
    return {
      components: {},
      tasks: [],
      options: {},
      dynamicStyle: {}
    }
  }
}
</script>
