Navigation

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

    • S

      Open GPS enable setting page of mobile in onsen UI
      Developer Corner • onsen ui cordova onsen ui 2.0 onsen2 onsen1 • • sagar

      1
      0
      Votes
      1
      Posts
      3657
      Views

      No one has replied

    • B

      Unsolved Cannot change content with javascript
      Onsen UI • onsen ui javascript onsen1 • • Broo0d

      2
      0
      Votes
      2
      Posts
      3667
      Views

      @Broo0d Can you use version 2? It’s a lot easier to work with.
    • T

      What are the extra input elements does onsenui contain?
      Onsen UI • onsen2 onsenui vanilla js onsen1 • • Taymindis

      3
      0
      Votes
      3
      Posts
      5004
      Views

      Hi @Taymindis. With Onsen UI you can still use anything from html5, so don’t worry about those. For extra provided elements we have a few: ons-button ons-range ons-switch ons-fab (Floating Action Button) ons-input - wrapper for multiple types of <input> (including checkbox and radio etc) You could also checkout this section of the guide. And finally while they may not be form elements you may be also interested in: ons-ripple ons-icon ons-progress-bar ons-progress-circular Also it is possible that I missed something, which is why @Fran-Diox gave you a link to the whole reference :)
    • D

      Unit tests and navigator
      Onsen UI • ons-navigator onsen1 testing • • d3orn

      2
      0
      Votes
      2
      Posts
      3683
      Views

      D

      I finally figured it out! To mock a ons-navigator do the following: //your code here (coffeScript) dom = "<ons-navigator var='pageNavigator'></ons-navigator>"; navigatorDOM = @$compile(dom)(@$scope); new @NavigatorView(@$scope, navigatorDOM, @controller) spyOn(pageNavigator, 'pushPage').and.callThrough() @controller.showEvent(event) expect(pageNavigator.pushPage).toHaveBeenCalled() Now I can finally write more unit tests! I hope this helps somebody else, because e2e is nice and fun but unit tests are important as well. Cheers