PlotLayoutAutoForm.js
767 Bytes
/**
* Project : AMDA-NG
* Name : PlotLayoutAutoForm.js
* @class amdaPlotComp.PlotLayoutAutoForm
* @extends amdaPlotComp.PlotStandardForm
* @brief Form to define specifics Auto layout options
* @author Benjamin Renard
* @version $Id: PlotLayoutAutoForm.js benjamin $
*/
Ext.define('amdaPlotComp.PlotLayoutAutoForm', {
extend: 'amdaPlotComp.PlotStandardForm',
setObject : function(object) {
this.object = object.get('page-layout-object');
this.loadRecord(this.object);
},
getFormItems: function() {
return [
this.addStandardFloat('layout-panel-height', 'Panels height', 0, 1),
this.addStandardFloat('layout-panel-spacing', 'Panels spacing', 0, 1),
this.addStandardCheck('layout-expand', 'Expand panels')
];
}
});