Code Monkey home page Code Monkey logo

v-button's People

Contributors

hthabet avatar lukaszwatroba 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

v-button's Issues

Fix npm install

npm install currently does not work as there is no index.js to export the module.

Firefox and IE dont calculate body.scrollTop correctly

Though in codepen demo works, in my case the firefox 41.0.1 and IE 11 dont calculate the body scroll correctly returning 0 instead of 1000+
This doesn't happen in Chrome.
I fixed this for me changing the line to :

left = posX - rect.left - ripple.offsetWidth / 2 - window.pageXOffset;
top = posY - rect.top - ripple.offsetHeight / 2 - window.pageYOffset;

onLoading disabled button

Hi I love your package so much.

Can you make option to disabled the button is isBusy?. Because even if its loading user still can press the button multiple times.

Handling dynamic values for vBusyLabel and the button text

Hi @LukaszWatroba,
I really like your directive. However it has a limit when we use dynamic values for the vBusyLabel attribute and idleLabelHtml. For instance, I use angluar-translate and my code using v-button directive will look like this :

<button class="btn" v-busy="auth.isBusy" v-busy-label="{{'auth.states.signin.signing_in' | translate}}"><span translate>auth.states.signin.signin_button</span></button>

In this case, when I change the translation locale, busyLabelHtml is never updated.
Also, when the button is done being busy, idleLabelHtml returns what was in labelElement.html() (based on code below) which is in this case equal to auth.states.signin.signin_button and not the wanted translated text.


labelElement = angular.element(tElement.find('span'));

...

idleLabelHtml = labelElement.html(),

I already wrote a fix and I will be glad to submit a PR :)

v-busy-label when using a button inside a directive

Hi!

I have a problem when using the element inside a directive. In this case, the label "v-busy-label" is not shown, the -element is empty. Outside of the directive everything is working fine.

What could be the problem here?

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.