Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. alpl
    A
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    alpl

    @alpl

    0
    Reputation
    2
    Posts
    418
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    alpl Follow

    Posts made by alpl

    • topPage in ons-tab structure

      Greetings,
      how to know the active/displayed ons-page ?

      with simple pages its easy. -> navigator.topPage

      But with ons-tab structure, topPage is “myid” instead of the actual id of (active) mypage_1

      thanks in advance for some ideas.

      <ons-page id="myid">
         <ons-tabbar...
            <ons-tab active page="mypage_1.html"... 
            <ons-tab        page="mypage_2.html"...
      
      posted in Onsen UI
      A
      alpl
    • one progress-bar for tabbar->tabs(s)

      Greetings from Luxembourg,
      when a tabbar is used, loading two different html pages (see example below),
      each tab fetching separate json data ( on init ),
      the tab finishing the fetch first, will stop the progress-bar.

      Is there a best practice to handle loading data in that scenario? (on show? grouping the fetch(es)?

      Thank you in advance.

      …
      <ons-progress-bar></ons-progress-bar>
      <ons-tabbar>
      <ons-tab page=“a.html” label=“a” active>…
      <ons-tab page=“b.html” label=“b”>…
      …

      posted in Onsen UI
      A
      alpl