Navigation

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

    aldirk

    @aldirk

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

    aldirk Follow

    Posts made by aldirk

    • RE: ons list item switch right won't align

      @munsterlander I’m using <ons-list-item> with a div class right for switch add dynamically. Here my code:

      var html = "<ons-list><ons-list-header>Lista de Câmeras</ons-list-header>";
      $.each(camList, function (index, item) {
          var checked = "";
          if(item.visible == 1)
              checked = 'checked';           
          html += "<ons-list-item modifier='longdivider'><div class='left'>" + item.nome.substr(7, item.nome.lenght) + "</div><div class='right'><ons-switch onclick='checkChange(this.id)' id='" + item.camera + "' " + checked + "></ons-switch></div></ons-list-item>";
      });
      html += "</ons-list>";
      $("#divListaCameras").html(html);
      posted in Onsen UI
      A
      aldirk
    • ons list item switch right won't align

      Hi, my ons list with a right ons switch show messy when the text have 2 lines. Any solution?

      0_1467735303651_ons-list.png

      posted in Onsen UI
      A
      aldirk