Giter Site home page Giter Site logo

Comments (9)

adrianhurt avatar adrianhurt commented on August 15, 2024

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.

mkurz avatar mkurz commented on August 15, 2024

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.

mkurz avatar mkurz commented on August 15, 2024

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.

mkurz avatar mkurz commented on August 15, 2024

@adrianhurt What do you think about my last two comments?

from play-bootstrap.

adrianhurt avatar adrianhurt commented on August 15, 2024

Yes I read them, but I'm very busy these days. Sorry. I will check that list carefully this week.

from play-bootstrap.

adrianhurt avatar adrianhurt commented on August 15, 2024

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.

adrianhurt avatar adrianhurt commented on August 15, 2024

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.htmlwith the corresponding code, instead of using @b3.inputType("tel", myForm("phone") …) every time.

from play-bootstrap.

adrianhurt avatar adrianhurt commented on August 15, 2024

Hi again @mkurz, I've just updated the library to include these helpers. You can try them when you want.

from play-bootstrap.

mkurz avatar mkurz commented on August 15, 2024

Thanks!

from play-bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.