Ext.define('amdaPlotComp.intervalSelection.DateZoomIntervalSelection', { 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', // 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 }); this.form.add(this.insertToTTCatlog); }, });