@dcorrea-estrav/vue-form-wizard
Version:
A vue based tab/form wizard
45 lines (44 loc) • 1.41 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>webpack-vue-clean</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="./../vue-tab-wizard.min.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
</head>
<body>
<div id="app">
<div class="col-xs-8 col-xs-offset-2">
<form-wizard @on-complete="onComplete">
<tab-content title="Personal details"
icon="ti-user">
My first tab content
</tab-content>
<tab-content title="Additional Info"
icon="ti-settings">
My second tab content
</tab-content>
<tab-content title="Last step"
icon="ti-check">
Yuhuuu! This seems pretty damn simple
</tab-content>
</form-wizard>
</div>
</div>
<!-- built files will be auto injected -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.6/vue.min.js"></script>
<script src="./../vue-tab-wizard.js"></script>
<script >
Vue.use(VueTabWizard)
new Vue({
el: '#app',
methods: {
onComplete: function(){
alert('Yay. Done!');
}
}
})
</script>
</body>
</html>