GithubHelp home page GithubHelp logo

probots-io / floatlabels.js Goto Github PK

View Code? Open in Web Editor NEW
751.0 751.0 108.0 273 KB

Follows the famous Float Label Pattern. Built on jQuery.

Home Page: http://probots-io.github.io/floatlabels.js/

JavaScript 34.63% HTML 65.37%

floatlabels.js's People

Contributors

06b avatar derpoho avatar fernahh avatar jejacks0n avatar lordhumunguz avatar sakilu avatar stevenblack avatar wellyal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

floatlabels.js's Issues

Show Float Labels on fields that already have text in them

Hi,

We have form that has values pre-defaulted for some of the input fields. Floated Labels don't appear for these fields. In order make it work properly we have remove the text and start typing again.

Is it possible to have float labels show up for the input controls that have a value already in them at the time of form rendering?
float label

Add a custom change event

Please add custom event listener to detect input value change (example use case is scope change in Angular)

Jerky movement in Chrome

Thanks a lot for your great effort.

In Chrome when the focus is set to the input field it increases a bit in height then return back to normal. This happen as long as you type too so the result is an annoying jerky movement to the field and the surrounding content. Check the attached gif

report

I think the issue is caused by a change in the top and bottom margin. Check this out while Chrome devtools is opened

report2

Floating Label when adding in the input field with JS

First of all I really like this plugin, its really smooth and clean looking.
Basically I have a form where the plugin works perfectly until, I add an additional field with a JS function. (A button to add an additional field.)
I believe it doesnt work on these newly generated fields because they dont have the label-wrapper, that I think gets generated on Page Load. Is there any way to trigger it to build a wrapper when I am adding the new fields?

Thanks

Separate CSS from JS

Thank you for your work! :)

It would be great if the script would not use inline styles so you could customize it with CSS.

My suggestion:
Instead of inline styles you could apply classes.
Default styles could be provided with a separate floatlabels.css.

Destroy floatlabel

I use floatlabel in JavaScript applications, and would like to destroy/remove floatlabel, when the label is removed from the page.

It doesn't look like floatlabel supports that. Are there any plans for that later?

Getting following Uncaught TypeError:

Hi!

I'm getting the following error:
Uncaught TypeError: (intermediate value)(intermediate value)(...) is not a function

anyone can help me?

regrads

M.

Add a version for rails-assets

We're using rails-assets.org for getting our js-assets. Can you tag the current version? Otherwise we're getting the follow error-message:
clubdesign/floatlabels.js has no versions defined. Please create an issue in component's repository.

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.