Coder Social home page Coder Social logo

vue-button-spinner's People

Contributors

dependabot[bot] avatar khamer avatar wanxe 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

Watchers

 avatar  avatar

vue-button-spinner's Issues

how to edit css

may be you can add some dynamic css because currently it is showing very small button

Problem with showing spinner in button

Hi. Thanks for nice library. I'm using this library to show progress with calling web apis. I followed your guide line in Readme.md, but I noticed that 'isLoading' property works incorrectly. How can I solve this problem? The below is my code which uses your library.

Template side

<template>
<vue-button-spinner :isLoading="isLoading" :disabled="isLoading" :status="status" @click.native="trainChatbot"><span>Train a chatbot</span></vue-button-spinner>
</template>

Script side

import VueButtonSpinner from 'vue-button-spinner';

export default {
    components : {
        VueButtonSpinner
    },

@A method is called.

axios.post(train_url, payload, config).then(res => {
            if(res.data["result"]) {
                // alert("챗봇 훈련 성공!");
                this.$vs.notify({
                    title : "챗봇 훈련 성공",
                    text: "챗봇의 훈련이 성공하였습니다. 대화를 시작해보세요!",
                    color:'success',
                    position : 'bottom-right'
                })
                this.isLoading = false;
                localStorage.setItem("isLoading", false);
                this.status = true;
            } else {
                    this.$vs.notify({
                    title : "챗봇 훈련 실패",
                    text: "챗봇 훈련 실패! - 네트워크 연결을 확인하세요!",
                    color:'danger',
                    position : 'bottom-right'
                })
                this.isLoading = false;
                localStorage.setItem("isLoading", false);
                this.status = false;
                // alert("");
            }

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.