ember-arcgis-page-layout
Version:
Page Layout infrastructure components
21 lines (18 loc) • 484 B
JavaScript
/**
* card-drag-control/component.js
*/
import Ember from 'ember';
import layout from './template';
export default Ember.Component.extend({
layout:layout,
tagName:'span',
classNames:['layout-control','pull-left'],
cardComponent:null,
layoutCoordinator: Ember.inject.service('layout-coordinator'),
mouseDown(event){
this.get('layoutCoordinator').checkDrag(event, this.get('cardComponent'));
},
willDestroyElement(){
this.set('cardComponent',null);
},
});