From 7f523d4980767cf81eda4a43f88bd6b04038011c Mon Sep 17 00:00:00 2001 From: Menouar AZIB <menouar.azib@akka.eu> Date: Tue, 24 Oct 2023 10:21:56 +0200 Subject: [PATCH] Add comments to DateZoomIntervalSelection.js --- js/app/views/PlotComponents/intervalSelection/DateZoomIntervalSelection.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/js/app/views/PlotComponents/intervalSelection/DateZoomIntervalSelection.js b/js/app/views/PlotComponents/intervalSelection/DateZoomIntervalSelection.js index ac764d3..e2aeb29 100644 --- a/js/app/views/PlotComponents/intervalSelection/DateZoomIntervalSelection.js +++ b/js/app/views/PlotComponents/intervalSelection/DateZoomIntervalSelection.js @@ -1,11 +1,15 @@ Ext.define('amdaPlotComp.intervalSelection.DateZoomIntervalSelection', { - extend: 'amdaPlotComp.intervalSelection.ZoomIntervalSelection', - requires: ['amdaPlotComp.intervalSelection.InsertToTTCatlog'], + extend: 'amdaPlotComp.intervalSelection.ZoomIntervalSelection', // This class extends from amdaPlotComp.intervalSelection.ZoomIntervalSelection + requires: ['amdaPlotComp.intervalSelection.InsertToTTCatlog'], // This class requires the InsertToTTCatlog class from amdaPlotComp.intervalSelection - type: 'timeAxis', - title: "Zoom on time axis & Interval selection", - insertToTTCatlog: null, + type: 'timeAxis', // The type of axis for this interval selection is timeAxis + title: "Zoom on time axis & Interval selection", // The title of this interval selection + insertToTTCatlog: null, // An instance of the InsertToTTCatlog class, initially set to null + /** + * Initializes the component. + * It calls the parent's initComponent method, then creates a new instance of InsertToTTCatlog and adds it to the form. + */ initComponent: function () { this.callParent(arguments); this.insertToTTCatlog = new amdaPlotComp.intervalSelection.InsertToTTCatlog({ parent: this }); -- libgit2 0.21.2