Questions tagged [ember.js-view]

Ember.View is the class in Ember responsible for encapsulating templates of HTML content, combining templates with data to render as sections of a page's DOM, and registering and responding to user-initiated events.

Ember.View is the class in Ember responsible for encapsulating templates of HTML content, combining templates with data to render as sections of a page's DOM, and registering and responding to user-initiated events.

The manual page is here.

45 questions
0
votes
1 answer

Are bound viewHelpers in ember 1.10 still supported by the framework?

In a non-CLI ember app, I have a viewHelper which used to work on an Ember.TextField using Handlebars.makeBoundHelper to change the input type to 'date' for mobile devices. Now with ember 1.10/HTMLBars I get an 'options.helperName is undefined'…
bobvan
  • 251
  • 3
  • 9
0
votes
2 answers

Ember 1.10 - Upgrade Error - template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead?

I am in the process of upgrading an Ember 1.8 app to Ember 1.10. We're using bower and my versions and dependencies are the following: "ember": "~1.10.0", "ember-data": "1.0.0-beta.14", "ember-resolver": "~0.1.11", "ember-validations-nocli":…
philipDS
  • 661
  • 3
  • 7
  • 16
0
votes
1 answer

How to access view property from controller in emberjs

I have a method in controller where I need to access a view property and set it value. How to achieve this in emberjs?
user51854
  • 319
  • 1
  • 4
  • 11
0
votes
0 answers

Emberjs didInsertElement fired before DOM rendered, works only with setTimeout 0

I have a view that renders its template into a named outlet. I use the didInsertElement hook, and there the afterRender schedule to wait for the DOM to complete. However, when I try to access the outcome of this render process, these elements are…
akohout
  • 1,802
  • 3
  • 23
  • 42
0
votes
1 answer

How to get data back from emberjs controller

I have a list of routes App.Router.map ()-> @resource 'about' @resource 'users', -> @resource 'repositories', path: '/:user_name/repositories' @route 'show', path: '/:user_name' In my users show template i also have a view {{#view…
0
votes
1 answer

EmberJS :reload/refresh view after creating new record while using jquery ajax instead of ember-data

I am creating a sample todo app using the jquery to talk to rest api instead of ember-data. The code is given below. I am able to list & add Todos using this code. But once I create a new record I have to refresh the browser to see the new record.…
Kallan
  • 173
  • 1
  • 2
  • 13
0
votes
1 answer

Set up custom ID for Text Fields

how can I set up custom element id for form inputs. For example i would like to have prefixed or suffixed ids. This is what I got: // views/extended-input.js var suffix = function(key) { return function() { var result = this.get(key) + '_' +…
0
votes
2 answers

Custom Checkbox is not rendered

I am trying to allow my user to create a group and invite his friends. I have already tried several ways, but its not really working out. My current approach looks something like this in the main template: {{#each session.user.friends}} …
m0c
  • 2,180
  • 26
  • 45
0
votes
1 answer

Ember: How to access element when action happens?

I am new to Ember and I am not sure how to do things the Ember way so I turn to you. My problem: I have a sidebar, I created a View for it. I have two buttons on the sidebar for the moment. I added an action for each button on it. I am not sure if…
Andrew
  • 6,254
  • 16
  • 59
  • 93
0
votes
1 answer

Set Ember Application View Class for Homepage Only

DISCLAIMER: I'm pretty new to Ember so go easy. :) I'm attempting to have a class appear that is "is-home" on the div for the application view that gets rendered if the value of App.get('currentPath') is set to 'index'. The code below works for…
0
votes
1 answer

Ember {{#linkTo}} helper's with {{each}}

I want to get route name from the list of items iterated using {{each}} helper.Some thing like example below.