Commit 7f523d4980767cf81eda4a43f88bd6b04038011c
1 parent
7b6efa6c
Exists in
master
and in
16 other branches
Add comments to DateZoomIntervalSelection.js
Showing
1 changed file
with
9 additions
and
5 deletions
Show diff stats
js/app/views/PlotComponents/intervalSelection/DateZoomIntervalSelection.js
1 | 1 | Ext.define('amdaPlotComp.intervalSelection.DateZoomIntervalSelection', { |
2 | - extend: 'amdaPlotComp.intervalSelection.ZoomIntervalSelection', | |
3 | - requires: ['amdaPlotComp.intervalSelection.InsertToTTCatlog'], | |
2 | + extend: 'amdaPlotComp.intervalSelection.ZoomIntervalSelection', // This class extends from amdaPlotComp.intervalSelection.ZoomIntervalSelection | |
3 | + requires: ['amdaPlotComp.intervalSelection.InsertToTTCatlog'], // This class requires the InsertToTTCatlog class from amdaPlotComp.intervalSelection | |
4 | 4 | |
5 | - type: 'timeAxis', | |
6 | - title: "Zoom on time axis & Interval selection", | |
7 | - insertToTTCatlog: null, | |
5 | + type: 'timeAxis', // The type of axis for this interval selection is timeAxis | |
6 | + title: "Zoom on time axis & Interval selection", // The title of this interval selection | |
7 | + insertToTTCatlog: null, // An instance of the InsertToTTCatlog class, initially set to null | |
8 | 8 | |
9 | + /** | |
10 | + * Initializes the component. | |
11 | + * It calls the parent's initComponent method, then creates a new instance of InsertToTTCatlog and adds it to the form. | |
12 | + */ | |
9 | 13 | initComponent: function () { |
10 | 14 | this.callParent(arguments); |
11 | 15 | this.insertToTTCatlog = new amdaPlotComp.intervalSelection.InsertToTTCatlog({ parent: this }); |
... | ... |