mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-05-17 11:29:37 +03:00
45 lines
1.4 KiB
HTML
45 lines
1.4 KiB
HTML
<!DOCTYPE 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>
|