Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Blog
    • Playground
    1. Home
    2. Tags
    3. templates

    • L

      Load page from one template and add content from another template
      Onsen UI • event templates toolbar • • latimba

      3
      0
      Votes
      3
      Posts
      4312
      Views

      L

      @emccorson Thanks a lot, you are right, I used the promise wrong. For others who have the same problem, here is how it looks for me now: var content = document.getElementById('content'); var menu = document.getElementById('menu'); content.load("pageTemplate.html") .then(function() { var page = document.querySelector('ons-splitter-content').lastChild; page.setAttribute('mode','firstpage'); //this is used to know which content should be filled into the template. menu.close(); }); That works for me. Thank you!
    • E

      Solved Use a Template Multiple Times to Push Pages (with different content)
      Onsen UI • ons-navigator templates page • • endernafi

      3
      1
      Votes
      3
      Posts
      4325
      Views

      E

      I’ve duplicated that piece of code and yes, it works as default which means there’s something wrong with my particular workflow (app design). That’s why I’m replying so late, by the way; I tried to fix it but just couldn’t figure it out how. Thanks for your help…
    • D

      "monaca debug" issues in vue-cordova-webpack template
      Monaca Tools • vue templates debugger • • denious

      20
      0
      Votes
      20
      Posts
      23592
      Views

      @denious I see, thanks for sharing the end of the story! Yeah, hopefully after this, Webpack is not a black box anymore :stuck_out_tongue:
    • D

      Problem requesting fonts in OnsenUI/vue-cordova-webpack template
      Onsen UI • onsenui webpack templates fonts node • • denious

      5
      0
      Votes
      5
      Posts
      7876
      Views

      @denious Good to read that. I think '/' should be more robust for development so I just updated it :+1:
    • Onsen UI & Monaca extensions for Visual Studio + Getting Started guide
      News & Announcements • onsen ui monaca visual studio templates • • Fran Diox

      10
      1
      Votes
      10
      Posts
      11680
      Views

      P

      Hello, This error is it normal? Failed to load resource: net::ERR_FILE_NOT_FOUND cordova_plugins.js (0,0) (Android+ios+windows) thks