framework7

Open full view…

Clicking on tab bar link how to go 'back' if in that view?

agh25
Tue, 12 Aug 2014 21:40:45 GMT

In real iOS, if you are in a 'tab view' and tap on the view icon, it triggers the 'back' animation (aka in the Music app, tapping on the artists name will 'backtrack' you out the menu). I have the following code: $$(document).on('click', '.appointments-link', function(){ if(appointments.main){ appointments.goBack(undefined, true); } }); however that is not doing it. I was wondering if I've missed anything out? Appointments is one of my views and the tab icon <a> also has class .appointments-link.

Vladimir Kharlampidi
Wed, 13 Aug 2014 13:57:01 GMT

This should work, i realized it in Series Seven app (from Showcase section). Probably just something wrong in your code, could you give link so i can take a look, or at least your views/tabs HTML structure and how you initialize them in JS