/** * Project  : AMDA-NG * Name : EraseTrigger.js * @class amdaPlotComp.EraseTrigger * @extends Ext.form.field.Trigger * @brief Erase button used to define a dropped parameter (cf. function addStandardParamDropTarget of PlotStandardForm) * @author Benjamin Renard * @version $Id: EraseTrigger.js benjamin $ */ Ext.define('amdaPlotComp.EraseTrigger', { extend: 'Ext.form.field.Trigger', alias: 'widget.erasetrigger', initComponent: function () { var me = this; me.triggerCls = 'x-form-clear-trigger'; // native ExtJS class & icon me.callParent(arguments); }, // override onTriggerClick onTriggerClick: function() { this.setValue(''); } });