View class to render a select HTML element, allowing the user to choose from a list of options.
Questions tagged [ember.select]
17 questions
3
votes
1 answer
Bind Ember.select to values loaded from the server
I have a select view like this:
App.sectors = ["Alpinism", "Climbing", "Kayaking];
{{view Ember.Select contentBinding="App.sectors"}}
Now instead of a vector of fixed values, i would like to have the select view populated with values coming from…

Cereal Killer
- 3,387
- 10
- 48
- 80
2
votes
2 answers
Ember Select set default value
Even after reading a lot of doc, I'm still not able to accomplish this simple task;
I have a select view in my template:
{{view Ember.Select id="id_diff" contentBinding="difficulties" optionValuePath="content.id" optionLabelPath="content.title"…

Cereal Killer
- 3,387
- 10
- 48
- 80
2
votes
1 answer
Update value when value is selected in Ember.Select
I have a Ember.Select in my template and an image:
Difficulty: {{view Ember.Select id="id_diff" contentBinding="difficulties" optionValuePath="content.id" optionLabelPath="content.title"}}
The Select is filled with values…

Cereal Killer
- 3,387
- 10
- 48
- 80
1
vote
2 answers
Customizing Ember Select Option Label
I want to display list of available candidatos as a dropdown, so I use Ember.Select:
{{view "select" content=candidatos optionValuePath="content.id"
optionLabelPath="content.nombre" prompt="Seleciona un candidato..."
…

Cokorda Raka
- 4,375
- 6
- 36
- 54
1
vote
1 answer
Ember.js Select resets when hidden and shown again
I have an integer property which is bound to multiple input fields. The first one is of type range, the second is a number and the third one is an Ember.Select view. The fields are visible based on a conditional {{#if visible}}. When I move the…

janhink
- 4,943
- 3
- 29
- 37
1
vote
1 answer
Binding Em.Select selection value to object from store
I can't figure out how to use the valueBinding property of Ember.Select to bind the selected value directly to a object from Ember.Data's store.
Fiddle: http://emberjs.jsbin.com/jipamiro/14/edit
The problem I'm facing is that the model returns…

thepeter
- 73
- 4
1
vote
0 answers
How to set the default value of Ember.Select whose contents are from the server side by ember.js data?
I am a ember.js novice and trying to rewrite the CRUD pages of a project in ember.js. But I meet a problem about Ember.Select.
Steps:
On the create page, there is a DropDown control, whose content is fetched from the server side.
After a user…

brent liu
- 11
- 3
1
vote
1 answer
Issue with Ember.Select multiple not updating controller
I have created a little demo, and selectionBinding is only working when multiple="true" is not set.
Here is the code.
{{view Ember.Select multiple=true content=sampleData
optionValuePath="content.value"
…

iConnor
- 19,997
- 14
- 62
- 97
0
votes
1 answer
Ember.Select conditional value for optionLabelPath
I have a list of "Candidato" that I want to display in a dropdown box. Here's an example of a Candidato:
{"id": 3, "nombre": "Ivonne Álvarez Garcia", "sexo": 0, "confirmado": true}
Here's another one:
{"id": 1, "nombre": "Margarita Arellanes…

Cokorda Raka
- 4,375
- 6
- 36
- 54
0
votes
2 answers
How to Populate Ember.Select with Model Data?
I've read lots of other SO questions about Ember.Selects, but nothing near enough to work. I have dropdowns to filter certain fields in my returned data. The actual filtering is another issue, I'm just trying to get the dropdown populated at the…

redOctober13
- 3,662
- 6
- 34
- 61
0
votes
2 answers
What is the correct way to use Ember.Select with Ember-CLI
I am trying to get Ember.Select to work and am almost there. I have put up an example: http://exmer.com/selecttest/pages
To see my problem click on some Recent Pages and click edit. The select is not fetching the model via…

Martin Broerse
- 85
- 10
0
votes
1 answer
ember.js Ember.Select throws error "Cannot read property 'selectedIndex' of undefined"
So, I have this code:
{{#if isClient}}
{{view Ember.Select
value=country
content=options.country
prompt='Please select a country'}}
{{/if}}
Which works wonderfully at load because isClient defaults to true.…

story
- 729
- 2
- 9
- 22
0
votes
2 answers
Ember.js: How to set default options of multiple Ember.Select(s) in a single controller?
This is my first Ember.js application. All Ember's examples and tutorials I found are a single controller with a single model or a single model having children models.
However, this application puts two models (companies and users) into a single…

user2006633
- 19
- 5
0
votes
1 answer
How to load current user emberjs
I want to access the current user's information on an account page so it can be edited. I wasn't sure how to fetch the current user, so I set up a route on my server called session.
Accessing '/session' on my server returns a JSON blob, { session:…

artburkart
- 1,830
- 1
- 20
- 28
0
votes
1 answer
Ember Ember.Select binding
I am trying to create a simple page where I loop through a list of phone numbers associated with a Contact. Each phone number has a "number" and a "phone_type".
I've created a View that extends Ember.Select that populates itself with a the list of…

user3715443
- 11
- 1