Thursday, 22 August 2013

How to set scroll for div in ember.js

How to set scroll for div in ember.js

i am displaying multiple name within one div and then that div should be
scrollable.
<script type="text/x-handlebars" data-template-name="index">
Display Names
</script>
when i click on display name i have to display all name so i have created
another one template like this
<script type="text/x-handlebars" data-template-name="names">
<div class="container">

<div>
</div>
</script>
i have to apply scroll for container div if children of that div height is
more than that div.
i have done in ember.js file like this
App.Router.map(function()
{
this.resource('names');
});
App.NamesRoute=Ember.Route.extend({
model:function()
{
return namedetails;
}
});
it is displaying but i don't know how to set scroll for that container div
in ember.js
how to set ?

3 comments: