jquery ui - How to get Ember compoment's "ID" attribute? -
i using ember components in recursive manner , im going make particular components draggable in jquery-ui. so,i need corresponding view id "ember143" following html view,
<div id="ember143" class="ember-view"></div> is there way id attribute?
note: know cant set unique class name view element by
var component = ember.component.extend({ classnamebindings: ["uniqueclassname"], uniqueclassname: 'class143' }); if possible, how that?
ember component has elementid property returns id of element in dom. can component's id using `this.get('elementid'). more info here: http://emberjs.com/api/classes/ember.component.html#property_elementid
Comments
Post a Comment