Skip to content

Commit efa32a4

Browse files
committed
Added ability to rename navigation buttons
1 parent 8a3d342 commit efa32a4

File tree

5 files changed

+91
-25
lines changed

5 files changed

+91
-25
lines changed

Template/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<template #hotspots>
2424
<iv-pane position='left' @paneReveal="paneReveal" @paneHide="paneHide" @paneToggle="paneToggle" @paneResize="paneResize">
25-
<iv-sidebar-content>
25+
<iv-sidebar-content nextText='test N' previousText='test P'>
2626
<iv-sidebar-section title="SDOF">
2727
This SDOF solver takes in your parameters and then produces a time history plot of your system. Try it out by changing the input parameters and pressing submit to view your solution at the bottom of the page. To submit feedback for this module please click <a href="https://forms.gle/puL3mKPbchXzsRrV7" target="_blank">here</a>.
2828

package-lock.json

Lines changed: 68 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"name": "@impvis/components",
3-
4-
53
"version": "1.5.2",
6-
7-
8-
94
"license": "BSD-3-Clause",
105
"main": "./dist/impvis-components.js",
116
"unpkg": "./dist/impvis-components.umd.js",

src/components/Navigation/PaneNavigator.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
<template>
22
<div class="iv-pane-navigator">
3-
<a href="#" id="iv-pagination-prev" class="iv-button">Previous</a>
4-
<a href="#" id="iv-pagination-next" class="iv-button">Next</a>
3+
<a href="#" id="iv-pagination-prev" class="iv-button">{{prevText}}</a>
4+
<a href="#" id="iv-pagination-next" class="iv-button">{{nextText}}</a>
55
</div>
66
</template>
77
<script>
88
export default{
9-
name:'iv-pane-navigator'
9+
name:'iv-pane-navigator',
10+
props:{
11+
nextText:{
12+
type:String,
13+
default:'Next'
14+
},
15+
prevText:{
16+
type:String,
17+
default:'Previous'
18+
}
19+
}
1020
}
1121
</script>
1222
<style lang="scss">

src/components/SidebarText/SidebarContent.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="iv-sidebar-content-body" ref="body">
1717
<slot/>
1818
</div>
19-
<iv-pane-navigator v-if="showPagination"/>
19+
<iv-pane-navigator :nextText="nextText" :prevText="previousText" v-if="showPagination"/>
2020
</div>
2121
</template>
2222
<script>
@@ -36,6 +36,14 @@ export default {
3636
showPagination:{
3737
type:Boolean,
3838
default:true
39+
},
40+
previousText:{
41+
type:String,
42+
default:'Previous'
43+
},
44+
nextText:{
45+
type:String,
46+
default:'Next'
3947
}
4048
},
4149
provide(){

0 commit comments

Comments
 (0)