Framework7: [v2] Router

Created on 1 Jun 2017  路  12Comments  路  Source: framework7io/framework7

Load pages by:

  • [x] url (xhr and load)
  • [x] HTMLElement
  • [x] plain content string
  • [x] template (t7)
  • [x] template url (xhr, parse/compile template and load)
  • [x] page name (inline pages)
  • [x] component
  • [x] component url (xhr, parse/compile component and load)

Extend with routable:

  • [x] Tabs
  • [x] Popup
  • [x] Sheet
  • [x] Popover
  • [x] Actions Sheet
  • [x] Login Screen
  • [ ] Panels
  • [x] Photo Browser

Additional features:

  • [x] Support for none separated iOS dynamic navbar
  • [x] Use js animation for page/navbar transitions
  • [x] Restore previous page scroll top when going back
  • [x] 404 routes
outdated

Most helpful comment

Would be nice if following issue was considered, too.
https://github.com/nolimits4web/Framework7/issues/1694

All 12 comments

I'd say panels do need to interact with push state in some way to work with Android back button

Allowing Template7 on index page without having to refresh the content would be a wonderful feature to add if possible. This is especially helpful when you are adding a cross platform navbar, which creates "garbage" in the code when you refresh the page. Would be awesome to just be able to do Template7 on index like you would on any other page with it automagically working.

@snakeman21 it is already possible in v2 router

Didn't know that. As always, you're the man the Vladimir 馃憤! I'm very excited for this feature!

@ZanderBrown
Yeah same for popups, popovers, tabs and that stuff (optionally defined in the settings)
@nolimits4web
v2 will be perfectly brilliant!!!! Thanks for your hard work!!!

@nolimits4web
Can you please add that all previous pages hold their scroll position if you go back?

Tabs shouldn't pushState because tabs don't work like that in android or the material spec but otherwise yes to popups, popovers & panels

@ZanderBrown
Yeah that's true but optionally it's great to have that feature if you need it.

Would be nice if following issue was considered, too.
https://github.com/nolimits4web/Framework7/issues/1694

@nolimits4web,

Please check this one #1815

Does anyone know how to load framework7+Vue routing on demand? Because my project front page is loaded too much resources, rendering rendering to the browser is particularly slow. If you have any trouble, please contact me. [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmeddaif1 picture ahmeddaif1  路  4Comments

J05HI picture J05HI  路  3Comments

J05HI picture J05HI  路  3Comments

seme1 picture seme1  路  5Comments

vousys picture vousys  路  5Comments