Skip to content

Commit c0bb760

Browse files
committed
md inbox icon
1 parent cceab91 commit c0bb760

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/pages/home.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
</f7-nav-left>
1010
<f7-nav-title>My App</f7-nav-title>
1111
<f7-nav-right>
12+
<f7-link v-if="$theme.md" icon="material:compare_arrows" @click="toggleToolbarPosition">
13+
<i class="icon material-icons rotate-icon">compare_arrows</i>
14+
</f7-link>
1215
<f7-link icon-if-ios="f7:menu" icon-if-md="material:menu" panel-open="right"></f7-link>
16+
1317
</f7-nav-right>
1418
</f7-navbar>
1519
<!-- Toolbar, fixed on bottom -->
1620
<f7-toolbar>
1721
<f7-link text="Page Left" href="/left-page-1/">
18-
<f7-icon if-ios="f7:drawer" if-md="material:drawer" active>
22+
<f7-icon if-ios="f7:drawer" if-md="material:inbox" active>
1923

2024
</f7-icon>
2125
</f7-link>
@@ -100,6 +104,13 @@ export default {
100104
components: {
101105
version,
102106
TimeStamp
107+
},
108+
methods: {
109+
toggleToolbarPosition() {
110+
this.$$(this.$el)
111+
.find(".toolbar, .tabbar")
112+
.toggleClass("toolbar-bottom-md");
113+
}
103114
}
104115
};
105116
</script>

src/pages/panel-left.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
<f7-list>
2020
<f7-list-item link="/about/" title="About" view="#main-view" panel-close></f7-list-item>
2121
<f7-list-item link="/form/" title="Form" view="#main-view" panel-close></f7-list-item>
22-
<f7-list-item link="/left-page-1/" title="Page Left 1" view="#main-view" panel-close></f7-list-item>
22+
<f7-list-item link="/left-page-1/" title="Page Left 1" view="#main-view" panel-close>
23+
<f7-icon if-ios="f7:drawer" if-md="material:inbox">
24+
</f7-icon>
25+
</f7-list-item>
2326
<f7-list-item link="/left-page-2/" title="Page Left 2" view="#main-view" panel-close></f7-list-item>
2427
</f7-list>
2528
</f7-page>

0 commit comments

Comments
 (0)