O'Reilly logo

Mastering Ember.js by Mitchel Kelonye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing form inputs

Writing forms is a common practice that Ember.js simplifies by providing template helpers of the many HTML5 form controls. The following table shows these common controls and the attributes they can accept:

Control

Attributes

input

value

size

name

pattern

placeholder

disabled

maxlength

tabindex

textarea

checked

disabled

tabindex

indeterminate

name

checkbox

rows

cols

placeholder

disabled

maxlength

tabindex

In the sample application, the user is able to edit a contact by clicking on the edit button in the footer, as shown in the following screenshot:

Writing form inputs

If the user edits the first ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required