Questions tagged [htmlbars]

HTMLBars is the EmberJS templating system replacement for Handlebars starting with v1.10.0

HTMLBars is the templating system replacement for starting with v1.10.0. You can check the source code here.

116 questions
0
votes
1 answer

Is there anything like ruby's .send in HTMLBars or Handlebars?

Was wondering if there's anything like ruby's .send for htmlbars. Been trying to search for it, but can't seem to find a proper answer. Here's what I want to do: {{"name-of-helper" arguments}} As simple as this. Is there any trick under it to…
Nelspike
  • 123
  • 2
  • 6
0
votes
1 answer

Getting `this` to work in link-to helper of component

I have a component defined like so:
{{#link-to 'games.game' this}}{{title}}{{/link-to}}
Gregg
  • 34,973
  • 19
  • 109
  • 214
0
votes
1 answer

Testing an Ember.js component using hasBlock

I have this component set up (stripped down to its minimum): {{text}} {{#if template}} {{/if}} And this…
Chris Peters
  • 17,918
  • 6
  • 49
  • 65
0
votes
0 answers

Ember Component Input Value not updating

I've got an Ember JS component that is supposed to render a text input with a formatted date. Here is the code I currently have: import Ember from 'ember'; export default Ember.TextField.extend({ _value: null, value: Ember.computed('_value', { …
Asherlc
  • 1,111
  • 2
  • 12
  • 28
0
votes
1 answer

set a predetermined value on Emberjs input

So I have a dynamically generated form:
{{#each model.product.variants as |variant|}}
ThreeAccents
  • 1,822
  • 2
  • 13
  • 24
0
votes
0 answers

Ember-cli nested model array using {{each}} helper re-renders whole list when adding to Ember data store

I have a route that loads a dashboard // routes/dashboard/index.js ... model: function(params) { return this.store.find('dashboard', params.dashboard_id); } ... The dashboard model contains a hasMany relationship to the widget model //…
0
votes
1 answer

How to use an array of strings to refer to a subset of model properties in Ember?

I'm trying to put a property in my Ember(ember-data) models that is just an array of the properties to include in a generic table component. At first I just added this to my models: tableColumns: function() { return ['age', 'gender',…
Confused
  • 176
  • 3
  • 15
0
votes
2 answers

After upgrade to Ember v11, {{input}} value binding doesn’t work

I wanted to update my Ember CLI version from 0.1.15 to 0.2.3 today. Part of this, of course, came with upgrading to the new HTMLBars rendering engine. However now, I'm seeing some very odd behavior in that my {{input}} helpers are no longer binding…
Jeff E
  • 181
  • 11
0
votes
1 answer

How to create a helper with bounded property in Ember?

I am using Ember-CLI (0.2.0) recently and am testing a simple Helper built from the generator. The Helper does its job but the problem is that the variable used is not bounded and when its value changes not reflected in the UI. The helper is a get…
0
votes
2 answers

How to join a static string and a dynamic property to pass to a helper?

How can I join a static string and a dynamic property to pass to a helper? The following does not work: {{svg 'icon-' model.prop1}} Thanks
Michael
  • 8,357
  • 20
  • 58
  • 86
0
votes
1 answer

Replace string in HTMLbars/Handlebars expression with component

I've got a blog. Each blog-posts can have multiple downloads. For the downloads I created a component downloads Currently I render them at the end of each post like this: {{#each download in sortedDownloads }}

Hedge
  • 16,142
  • 42
  • 141
  • 246
0
votes
1 answer

Ember "select" View deadlocks platform.js when content array provided by Controller?

I'm working on migrating a non-CLI Ember app to 1.10 with HTMLBars. In a View Template I have a select list rendered by Ember.Select View where it's content is obtained from an array property in the Controller (adultsSelect: (1).upto(4)). I changed…
bobvan
  • 251
  • 3
  • 9
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
1 answer

How can I port a bound date input helper to HTMLBars?

I'm trying to port a 'DateInputView' TextField extension with a bound helper to HTMLBars. It appears that 'call()' has been removed from 'Handlebars.helpers.view' so the helper doesn't work anymore. I've tried several syntax changes based on forums…
bobvan
  • 251
  • 3
  • 9
0
votes
1 answer

strange DOM insertion of is="undefined"

I am potentially casting responsibility onto the wrong areas but I noticed some odd layouts on my simple Ember app and when looking at the DOM through Chrome's debugger I'm noticing that each element has is="undefined" in it. Huh? Is this…
ken
  • 8,763
  • 11
  • 72
  • 133