Skip to content

Commit afd617b

Browse files
committed
Add footer nav on/off option
1 parent 9708b6b commit afd617b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

examples/questionnaire/Example.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
v-bind:questions="questions"
2222
v-bind:language="language"
2323
v-bind:standalone="true"
24+
v-bind:footer-nav="false"
2425
>
2526
<!-- Custom content for the Complete/Submit screen slots in the FlowForm component -->
2627
<!-- We've overriden the default "complete" slot content -->

src/components/FlowForm.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</div>
6161
{{ language.percentCompleted.replace(':percent', percentCompleted) }}
6262
</div>
63-
<div class="f-nav">
63+
<div v-if="footerNav" class="f-nav">
6464
<a
6565
class="f-prev"
6666
href="#"
@@ -146,6 +146,10 @@
146146
standalone: {
147147
type: Boolean,
148148
default: true
149+
},
150+
footerNav: {
151+
type: Boolean,
152+
default: true
149153
}
150154
},
151155
mixins: [
@@ -320,8 +324,11 @@
320324
return
321325
}
322326
323-
324327
if (e.shiftKey) {
328+
if (!this.footerNav) {
329+
return
330+
}
331+
325332
e.stopPropagation()
326333
e.preventDefault()
327334

src/components/QuestionTypes/TextType.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
v-bind:min="question.min"
1919
v-bind:max="question.max"
2020
v-on:change="onChange"
21-
v-bind:tokens="tokens"
2221
/>
2322
<input
2423
v-else

0 commit comments

Comments
 (0)