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
1
vote
1 answer

EmberJs: Setting a property of controller from within the view

I am new to emberjs and wanted to set a controller property from within a Ember View. I have been trying to get around it but I am unable to set the controller property from the view. Here is a jsbin of what I am trying to do.…
Tojo Chacko
  • 1,230
  • 1
  • 13
  • 25
1
vote
1 answer

Ember.js Linking to different objects with custom templates

I have the following code for generating links to objects and I have a template that renders it but I would like to have each item in the list call either a different template or display different items. Is this possible?
1
vote
1 answer

How to display post's delete button for only post's author in Ember.js

Hello I've been stuck for days how to display a post's delete button only for the post's author in Ember.js (I'm using ember-cli to build this). I don't know where to put the logic of "When hovering a post (list), if the post's author is equal to…
YHDEV
  • 477
  • 8
  • 22
1
vote
1 answer

Ember TextField valueBinding to controller issue

I am using the Twitter typeahead.js plugin. So to use it I am extend Ember's TextField. The plugin all works fine. Now I just want to make the value accessible inside the controller. When I use the value binding inside the view class, it works fine.…
blessanm86
  • 31,439
  • 14
  • 68
  • 79
1
vote
3 answers

Ember.js: TextField with dynamic binding

I want to bind a TextField to a property which is specified by a string variable (see the edit for a better explanation), as in this question. Unfortunately the answer that was given there does not work anymore. They use the following view…
1
vote
2 answers

Ember hooks explanation

I have been working on Ember for about a month now but I am still confused about the various hooks in Ember. I know bits and pieces of everything but can't stitch them together. I understand the usage of model, beforeModel and afterModel hooks. What…
Pranava Sheoran
  • 529
  • 4
  • 27
1
vote
1 answer

How would I modify the page just before it renders in Ember.js?

I'd like to add a class to a specific HTML element based on whether it's the selected one at the time. It's selected based on the current page. For some reason, I'm having a hard time finding how to do that. Is there a hook or an event that I…
Nathan Lutterman
  • 1,855
  • 4
  • 23
  • 38
1
vote
1 answer

Ember App Kit 'Unable to find view at path'

I have a template templates/articles.hbs with the code: {{view "carousel"}} The above statement must be correct, as it is stated in the Getting Started:…
DelphiLynx
  • 911
  • 1
  • 16
  • 41
1
vote
2 answers

Extendible helper views in ember

So, I was hoping to be able to create a helper (master) view for my application, the main reason is that I want to implement a resize function. Example. App.View = Ember.View.extend({ init: function() { …
iConnor
  • 19,997
  • 14
  • 62
  • 97
0
votes
1 answer

redirect to external url in ember.js controller

I have this code and I would like to redirect to other url in controller file. It works fine in web browser but it is not working on android, iphone devices. I am testing them on browserstack. return unchartedAjax({ url:…
Georgi Kovachev
  • 633
  • 1
  • 10
  • 25
0
votes
2 answers

EmberJS - how to restructure embedded models?

Note: Using Ember Rails 0.18.2 and ember-source 1.12.1 I have inherited an Ember app that has a strange function. I am new to Ember so maybe this is normal, but I find it odd. There are 3 models: Parents Games Comments When a Parent views a game…
rmcsharry
  • 5,363
  • 6
  • 65
  • 108
0
votes
1 answer

Dynamic content loading view

I have an ember component with a template that contains a table. In my component - I would like to issue out ajax calls to a 3rd party service and get some data. After getting this data, I would have to make another subsequent ajax call based on the…
Chan
  • 2,601
  • 6
  • 28
  • 45
0
votes
1 answer

values from model are not updating to the view

I have displayed a textbox using Ember.View. In model i had specified all the details of the input. App.Display = DS.Model.extend({ inputText: DS.attr('string'), width: DS.attr('string'), height: DS.attr('string'), className:…
bvakiti
  • 3,243
  • 4
  • 17
  • 26
0
votes
1 answer

ember-cli: bind template action from view created using lookup

Ember : 1.10.0 Ember Data : 1.0.0-beta.16 jQuery : 1.11.2 I'm using this.container.lookup in order to create a view dynamically in my controller like this: var popup = this.container.lookup('view:map-popup', {singleton: false}); var ctrl…
Alexandre Mélard
  • 12,229
  • 3
  • 36
  • 46
0
votes
2 answers

ember.js have view's function observes controller's property

I have written a view: export default Ember.View.extend({ select: null, modify: null, createSelect: function() { return new ol.interaction.Select(); }, onMapCreated: function() { this.select = this.createSelect(); this.modify…
Alexandre Mélard
  • 12,229
  • 3
  • 36
  • 46