Comments (9)
You're totally right. Could you provide a PR for that? If not, don't worry, I would try to do it this night or tomorrow. And later I will add it to the docs and upload it to Maven. I like your approach, so I think it could be fixed by simply applying field.copy(value = Some(""))
within the b3.password
helper.
Thanks!
from play-bootstrap.
Done.
Another question:
You don't have helpers for e.g. type="tel"
or type="number"
.
Is there a reason for that? Do you want people to use e.g. @b3.inputType("tel", myForm("phone") ...)
instead of implementing @b3.tel(...)
?
from play-bootstrap.
Here is the "list" of types: http://www.w3.org/TR/2014/REC-html5-20141028/ (UPDATED LINK) under "4.10.5.1 States of the type attribute"
from play-bootstrap.
@adrianhurt What do you think about my last two comments?
from play-bootstrap.
Yes I read them, but I'm very busy these days. Sorry. I will check that list carefully this week.
from play-bootstrap.
As I suspected, they have an important lack of support by the browsers. But I agree with you that it would be better to include them within the library. It should be a decision of each developer whether use them or not.
from play-bootstrap.
By the way, remember you can always implement your own helpers over the library. For example, now the library doesn't support tel
, but if you would like to use it you could create a file views/b3/tel.scala.html
with the corresponding code, instead of using @b3.inputType("tel", myForm("phone") …)
every time.
from play-bootstrap.
Hi again @mkurz, I've just updated the library to include these helpers. You can try them when you want.
from play-bootstrap.
Thanks!
from play-bootstrap.
Related Issues (20)
- fooForm in all the examples HOT 2
- Make my own radio button? HOT 1
- Install / Usage instructions HOT 1
- Unsure on how to use, getting errors HOT 2
- Release 1.4 HOT 8
- Checkbox label in horizontal form not vertically aligned HOT 1
- documentation misses class "position-relative" for feedback tooltip HOT 1
- Play 2.7 support (and cross build for Scala 2.13.0-M5) HOT 23
- Combining @multifield and @repeat HOT 4
- Display invalid-feedback HOT 4
- How do you pass the labelClass class radio-inline to a radioOption? HOT 3
- Messages are translated twice HOT 9
- Play 2.8 HOT 12
- Checkbox error text is always hidden HOT 1
- classes on b4.date not added correctly HOT 1
- How to set data-browse attribute at custom-file input HOT 2
- Cannnot select default option in select input HOT 1
- using custom file input, .invalid-feedback not shown. HOT 1
- Support for Bootstrap 5 HOT 3
- Option to handle translated strings as HTML
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-bootstrap.