npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-step-wizard-bootstrap

v0.1.22

Published

A simple vuejs step/form wizard plugin. Forked version

Downloads

24

Readme

vue-step-wizard

alt text

Documentation

Forked from https://github.com/tushargugnani/vue-step-wizard

You can find documentation here: https://tushargugnani.github.io/vue-step-wizard/#/

Installing Plugin

npm install --save vue-step-wizard

Import Globally

import VueStepWizard from 'vue-step-wizard'
import 'vue-step-wizard/dist/vue-step-wizard.css'
Vue.use(VueStepWizard);

Import and use Components Locally

//local registration
import {FormWizard, TabContent} from 'vue-step-wizard'
import 'vue-step-wizard/dist/vue-step-wizard.css'
//component code
components: {
  FormWizard,
  TabContent
}

Bootstrap version

Customization

You can two ways to customize this plugin. You can pass classes prop to override default classes or you can define your own layout for header and footer sections. You also can combine then.

To customize using classes prop you should pass classes prop to WizardComponent:

{
    "previous_button": "step-button step-button-previous",
    "next_button": "step-button step-button-next",
    "submit_button": "step-button step-button-submit",
    "reset_button": "step-button step-button-reset",
  
    "tabs": "nav nav-pills bg-light nav-justified form-wizard-header mb-3",
    "tab_single": "nav-item",

    "wizard_container": "",
    "wizard_content": "tab-content b-0 mb-0 pt-0",
    "wizard_header": "wizard-header",

    "wizard_progress": "progress mb-3",
    "progress_bar": "bar progress-bar progress-bar-striped progress-bar-animated bg-success"
}

In other way, you can override header and footer sections by defining slots. For example, if you want override tab layout:

<template v-slot:tab-layout="tabProps">
    <!-- Your layout here -->
</template>

You also can enable or disable progress bar.

Importantly that you can only modify default Wizard - FormWizard, You can't add any changes to Bootstrap version, so if you need them - you need create your own wizard on top of FormWizard.

When you overriding layout through slots, you will have next contexts:

Tab layout

| Variable | Description | |----------|---------------------| | tab | TabContent instance | | index | Tab's index |

Footer

| Variable | Description | |-------------------|----------------------------------------------------------------| | submitSuccess | When form successfully sent, this variable will equal true | | previousEnabled | true if previous button enabled and can be clicked | | nextEnabled | true if next button enabled and can be clicked | | submitEnabled | true if submit button enabled and can be clicked | | previousTab | function, shows previous tab | | nextTab | function, shows next tab | | onSubmit | function, sends the form | | reset | function, resets the form |

Progress Bar

If you do not need progress bar, you can hide it by setting this properties:

| Property | Description | |----------------------------|--------------------------------------------------------------| | progressBeforeTabs | Show progress bar before tabs | | progressAfterTabs | Show progress bar after tabs inside tabs content block |

Validation

We use vuelidate package for validation. You should define validation rules by wizard steps. All validation rules should be under validationRules data field:

{
  "formData": {
      "firstName": null
  },
  "validationRules": [
      { "firstName": { /* validation rules */ } }
  ]
}

By default validation works on formData nested object, so you should use formData to store your data. However, you can change it by setting up $formName field. When $formName field is present, then we'll use nested object with this name. Example:

{
  "$formName": "userDetails",
  "userDetails": {
      "firstName": null
  },
  "validationRules": [
      { "firstName": { /* validation rules */ } }
  ]
}

Buy original author a Pizza

You have an option to buy me a pizza if you found this plugin useful

https://www.buymeacoffee.com/wLrF3Z0tE