Git Product home page Git Product logo

Comments (4)

jh3y avatar jh3y commented on June 22, 2024

Hey @viniciusjau,

Could you elaborate?

Forgive me, for I haven't looked at the project for some time. But, if you have a field that is of type text and required, you could simply use the HTML5 attribute required attribute if using a browser > IE9 and !Safari. It also depends on the context and set up of your project. For example, something like Angular has this functionality available within its basic validation directives. Or jQuery validate also offers a solution to requiring input in a field.

Formance caters to more specific fields with regards to their validation and formatting.

@jh3y

from jquery.formance.

viniciusjau avatar viniciusjau commented on June 22, 2024

Yes could use the HTML5 attribute.. but I would not get this effect
form

from jquery.formance.

jh3y avatar jh3y commented on June 22, 2024

The effect is achieved using CSS. You could write some CSS and apply it to your input. For the invalid label either opt to use maybe a CSS pseudo element or a styled label that appears in a show/hide manner.

@jh3y

from jquery.formance.

autoboxer avatar autoboxer commented on June 22, 2024

I agree, having a base required field type would be very helpful. The benefit of a library like this is consistency through the validation handling. Most users will have a need for this basic functionality and won't want to roll their own solution using the HTML5 attribute.

from jquery.formance.

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.