Hello!
Using svelte and framework7 I need to open a Page in MAIN using javascript.
Could anyone help?
the tag below works with html
<ListItem title = "Open Page" href = "/ point-department /" view = ". View-main"/>
necessary check permission before show page.
https://framework7.io/svelte/navigation-router.html#router-api
You need to call f7router.navigate('/point-department/')
Or if you are not in main view, then:
f7.view.main.router.navigate('/point-department/')
f7.router.navigate({ name: ‘pagePoDepartamentoForm’ });
or
f7.view.main.router.navigate(’/point-department/’)
is there a difference between these options?
There is no such
If you mean f7router
then it points to current View/Router
1 Like
I used this option and it worked well. with it I can pass parameters.
f7.router.navigate({});