Giter VIP home page Giter VIP logo

pokhrelashok / vue-step-progress-indicator Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 219 KB

Need a step indicator for your stepped progress in VUE? No problem, this package has got you covered. This is highly customizable so you can provide the theme and design you want.

Home Page: http://pahadiashok.com.np/vue-step-progress-indicator/

License: MIT License

JavaScript 38.50% Vue 61.50%
progress vue vue-progress vue-step-progress progress-circle

vue-step-progress-indicator's Introduction

Top Langs Ashoks's GitHub stats

vue-step-progress-indicator's People

Contributors

pokhrelashok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-step-progress-indicator's Issues

How to programmatically changing to next step?

submit(step) { axios.post(link, form, headers).then(res => { this.onStepChanged() }).catch(err => { console.log(err.response.data.message) }) },

Flow:

  1. Send data to server
  2. If success, go to next page

Any solutions?

How to place all the steps in green?

I have 3 steps where when the condition that the 3 steps are done is fulfilled, they should all be marked green and not the last one in red color. How can I solve this?

I read that this line is used but I don't understand well @onEnterFinalStep="onEnterFinalStep" which variables to pass inside the function.

image

                <template>
                    <div class="accordion" role="tablist">
                        <b-card no-body class="mb-1" v-for="(ticket,i) in ticketsTable" :key="i">
                            <b-card-header header-tag="header" role="tab" >
                                <b-button block v-b-toggle="'accordion-'+i" variant="bg-transparent border-white" class="text-left">{{ ticket.code }}
                                    <vue-step-progress-indicator
                                        :steps="[
                                            'Recibido',
                                            'En Proceso',
                                            'Termiando'
                                        ]"
                                        :active-step="(ticket.status_id == 3 ? 2 : ticket.status_id+1)"
                                        :is-reactive="false"
                                        @onEnterFinalStep="return true;"
                                    />
                                </b-button>
                            </b-card-header>
                            <b-collapse :id="'accordion-'+i" visible accordion="my-accordion" role="tabpanel">
                                <b-card-body>
                                    <b-card-text><table>
                                        <tr>
                                            <td>{{ ticket.client_comment}}</td>
                                        </tr>
                                    </table></b-card-text>
                                </b-card-body>
                            </b-collapse>
                        </b-card>
                    </div>
                </template>

<script>
import VueStepProgressIndicator from "vue-step-progress-indicator";

export default {
    name: 'ClientComponent',
    components:{
        VueStepProgressIndicator
    },
    data(){
        return {
            ticketsTable: [],
            loading: false,
        }
    },
    created(){
        this.getTickets()
    },
    methods:{
        async getTickets(){
            this.loading = true;
            try {
                const { data } = await axios.get(route('clients.own_tickets'))
                this.ticketsTable = data.data
            } catch (e) {
                
            }finally{
                this.loading = false;
            }
        },
        onEnterFinalStep()
        {
            
        }
    }
}
</script>

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.