ember-arcgis-page-layout
Version:
Page Layout infrastructure components
25 lines (19 loc) • 581 B
JavaScript
/**
* section-drag-control/component.js
*/
import Ember from 'ember';
import layout from './template';
export default Ember.Component.extend({
layout:layout,
tagName:'span',
classNames:['layout-control'],
sectionComponent:null,
layoutCoordinator: Ember.inject.service('layout-coordinator'),
willDestroyElement(){
//console.log('section-drag-control:: '+ this.get('elementId') + ' is is destroying...');
this.set('sectionComponent',null);
},
mouseDown(event){
this.get('layoutCoordinator').checkDrag(event, this.get('sectionComponent'));
},
});