@@ -26,6 +26,7 @@ const dateFormat = ref('YYYY-MM-DD HH:mm')
2626const enableMinutes = ref (false )
2727const currentTime = ref (true )
2828const currentTimeLabel = ref (' Now' )
29+ const pointerMarker = ref (true )
2930const locale = ref (' en' )
3031const utc = ref (false )
3132
@@ -43,6 +44,8 @@ const width = ref('100%')
4344const showLabel = ref (true )
4445const barLabelEditable = ref (true )
4546const showProgress = ref (true )
47+ const showEventsAxis = ref (true )
48+ const eventsAxisHeight = ref (30 )
4649
4750
4851// Time Highlight Configuration
@@ -100,6 +103,7 @@ const customSlots = ref({
100103 barLabel: false ,
101104 barTooltip: false ,
102105 currentTimeLabel: false ,
106+ pointerMarkerTooltips: false ,
103107 upperTimeunit: false
104108})
105109
@@ -343,6 +347,23 @@ const sampleData = ref<ChartRowWithOptionalBars[]>([
343347 }
344348])
345349
350+ const events = ref ([
351+ {
352+ id: ' visibility-1' ,
353+ label: ' First develop period' ,
354+ startDate: ` ${year }-${month }-02 15:00 ` ,
355+ endDate: ` ${year }-${month }-03 17:00 ` ,
356+ description: ' First custom event period'
357+ },
358+ {
359+ id: ' visibility-2' ,
360+ label: ' Second develop period' ,
361+ startDate: ` ${year }-${month }-05 05:00 ` ,
362+ endDate: ` ${year }-${month }-08 12:00 ` ,
363+ description: ' Second custom event period'
364+ }
365+ ]);
366+
346367const milestones = ref ([
347368 {
348369 id: ' milestone1' ,
@@ -543,6 +564,12 @@ const formattedEventLog = computed(() => {
543564 <input type =" checkbox" v-model =" customSlots.currentTimeLabel" >
544565 </label >
545566 </div >
567+ <div class =" setting-item" >
568+ <label >
569+ Custom Pointer Marker Tooltips:
570+ <input type =" checkbox" v-model =" customSlots.pointerMarkerTooltips" >
571+ </label >
572+ </div >
546573 <div class =" setting-item" >
547574 <label >
548575 Custom Time Unit:
@@ -597,6 +624,12 @@ const formattedEventLog = computed(() => {
597624 <input type =" checkbox" v-model =" showProgress" >
598625 </label >
599626 </div >
627+ <div class =" setting-item" >
628+ <label >
629+ Show Event Axis:
630+ <input type =" checkbox" v-model =" showEventsAxis" >
631+ </label >
632+ </div >
600633 <div class =" setting-item" >
601634 <label >
602635 Hide Timeline:
@@ -615,6 +648,12 @@ const formattedEventLog = computed(() => {
615648 <input type =" number" v-model =" rowHeight" >
616649 </label >
617650 </div >
651+ <div class =" setting-item" >
652+ <label >
653+ Event Axis Height:
654+ <input type =" number" v-model =" eventsAxisHeight" >
655+ </label >
656+ </div >
618657 <div class =" setting-item" >
619658 <label >
620659 Max Rows:
@@ -647,6 +686,12 @@ const formattedEventLog = computed(() => {
647686 <input type =" checkbox" v-model =" currentTime" >
648687 </label >
649688 </div >
689+ <div class =" setting-item" >
690+ <label >
691+ Show Pointer Marker:
692+ <input type =" checkbox" v-model =" pointerMarker" >
693+ </label >
694+ </div >
650695 <div class =" setting-item" >
651696 <label >
652697 Push on Overlap:
@@ -739,6 +784,7 @@ const formattedEventLog = computed(() => {
739784 :max-rows =" maxRows"
740785 :current-time =" currentTime"
741786 :current-time-label =" currentTimeLabel"
787+ :pointer-marker =" pointerMarker"
742788 :date-format =" dateFormat"
743789 :highlighted-hours =" highlightedHours"
744790 :highlighted-days-in-week =" highlightedDaysInWeek"
@@ -761,6 +807,9 @@ const formattedEventLog = computed(() => {
761807 :enableConnectionCreation =" enableConnectionCreation"
762808 :enableConnectionDeletion =" enableConnectionDeletion"
763809 :utc =" utc"
810+ :timeaxis-events =" events"
811+ :showEventsAxis =" showEventsAxis"
812+ :eventsAxisHeight =" eventsAxisHeight"
764813 @click-bar =" handleEvent($event, 'Bar Click')"
765814 @drag-bar =" handleEvent($event, 'Bar Drag')"
766815 @sort =" handleEvent($event, 'Sort Change')"
@@ -866,6 +915,20 @@ const formattedEventLog = computed(() => {
866915 </div >
867916 </template >
868917
918+ <!-- Custom Pointer Marker Tooltips Slot -->
919+ <template v-if =" customSlots .pointerMarkerTooltips " #pointer-marker-tooltips =" { hitBars , datetime } " >
920+ <div style =" background : crimson ;" >
921+ <div >{{ datetime }}</div >
922+ <div >
923+ <ul >
924+ <li v-for =" bar in hitBars" :key =" bar.ganttBarConfig.id" >
925+ {{ bar.ganttBarConfig.label ?? bar.ganttBarConfig.id }}
926+ </li >
927+ </ul >
928+ </div >
929+ </div >
930+ </template >
931+
869932 <!-- Custom Upper Time Unit Slot -->
870933 <template v-if =" customSlots .upperTimeunit " #upper-timeunit =" { label , value , date } " >
871934 <div class =" custom-timeunit" >
0 commit comments