Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:27:53+00:00 2026-06-01T08:27:53+00:00

Its been a long day and this is probably extemely simple but how do

  • 0

Its been a long day and this is probably extemely simple but how do i add a name attribute to a Ember.TextField ?

I want to do something like this :

{view Ember.TextField valueBinding="your_name" placeholder="Your name" name="your_name"}}

This works with the placeholder but ignores the name.

Any ideas ??

thanks
Rick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:27:56+00:00Added an answer on June 1, 2026 at 8:27 am

    The name attribute is not bound by default, see

    As a workaround, you could create your own TextField, see http://jsfiddle.net/fkPzr/

    App.TextField = Ember.TextField.extend({
        init: function() {
            this._super();
            // get attributeBindings and add 'name'
            var attributeBindings = this.get('attributeBindings');
            attributeBindings.pushObject('name');
            this.set('attributeBindings', attributeBindings);
        }
    });
    

    ​UPDATE:

    Since attributeBindings is declared as a concatenated property* the TextField can be simplified, see http://jsfiddle.net/cRhcg/:

    App.TextField = Ember.TextField.extend({
        attributeBindings: ['name']
    });
    

    *a concatenated property does not override the property of an extended object but the existing values from the super object are concatenated. Makes sense? Here’s an example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might seem like a stupid question but it's been a long day. I'm
I'm probably just being an idiot - it's been a long day! I've misunderstood
I've been searching for an answer to this problem all day long. I'm creating
I've been banging my head against this one all day long. Time to ask
www.site.com/site/ instead of www.site.com/site/index.php www.site.com/articleName/ instead of www.site.com/articleName.php Its been around for so long,
It's been a long day and I'm a bit stumped. I'm reading a binary
It's been a long day, and I'm sure that I must be missing something
I apologize for this school-book question but I've been working on this SQL query
It's been working perfectly fine all day long, now suddenly I can't connect. I
Okay, it's been such a long day that I am just going to look

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.