The built in Play input elements are fairly restrictive in that you can’t specify the input type. I wrote a helper template that you can use to generate input elements which have HTML5 type attributes such as url, email, number, search etc. etc.
All you have to do is call the template method, passing the HTML input type as a parameter. For example:
@helper.html5.input(form("website"), '_label -> "Website:", 'type -> "url")
If you have a form field mapped as a play.api.data.Forms.email then the template will automatically infer it’s type so you don’t have to pass the type attribute in with your html attributes:
@helper.html5.input(form("email"), '_label -> "Email:")
If your field has the required constraint, e.g. it is a “nonEmptyText” then the template will add the HTML5 “required” attribute to the field as well.
You can get the source code here.
Análises de Fortune Tiger e caça-níqueis grátis.
Tudo sobre slots 777 e jackpots progressivos.
โพสต์นี้ อ่านแล้วเพลินและได้สาระ
ค่ะ
ดิฉัน ไปเจอรายละเอียดของ ข้อมูลเพิ่มเติม
สามารถอ่านได้ที่ flix99
สำหรับใครกำลังหาเนื้อหาแบบนี้
เพราะอธิบายไว้ละเอียด
ขอบคุณที่แชร์ คอนเทนต์ดีๆ นี้
และอยากเห็นบทความดีๆ แบบนี้อีก
I am not sure where you are getting your info, but good
topic. I needs to spend some time learning more or understanding more.
Thanks for excellent information I was looking for this information for my mission.
Appreciation to my father who shared with me concerning this webpage, this website is genuinely awesome.
Thanks , I’ve recently been looking for information about this
subject for ages and yours is the best I’ve came upon till now.
But, what concerning the bottom line? Are you positive about
the source?
Thanks for sharing your thoughts on . Regards
Asking questions are truly good thing if you are not understanding anything entirely, however this post offers fastidious understanding yet.
I always used to read paragraph in news papers but now as I am a user
of web so from now I am using net for articles or reviews, thanks to web.
Hi Dear, are you really visiting this web site on a regular basis,
if so after that you will absolutely take nice experience.