Navigation

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

    Carson H

    @Carson H

    0
    Reputation
    7
    Posts
    758
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Carson H Follow

    Posts made by Carson H

    • RE: Backgroung image in <ons-page>

      I also have this problem. Setting the background colour works, but not image

      posted in Onsen UI
      C
      Carson H
    • RE: How to access ons-lazy-repeat refresh() function?

      Thanks a lot everyone. I understand now. I didn’t realize that list can accessed anywhere in the controller with the this keyword:

      angular
          .module('myApp')
          .controller('MyController', function () {
        var self = this;
        function someFunction () {
          self.delegate.refresh();
        }
      })
      

      It was more of a confusion with angularjs than onsen. Also thanks for the $timeout tip

      posted in Onsen UI
      C
      Carson H
    • RE: Ons Notification - hide

      Is there a clean angularjs way to do this?

      posted in Developer Corner
      C
      Carson H
    • RE: How to access ons-lazy-repeat refresh() function?

      Hi Fran. I’m sorry if I’m being daft but I don’t see refresh() anywhere in the JavaScript. It is in the HTML, but I don’t know how to call it from JavaScript

      posted in Onsen UI
      C
      Carson H
    • RE: How to access ons-lazy-repeat refresh() function?

      Thanks for replying Fran but I still don’t know how to access this function from my controller. I wan’t to call refresh after an image has loaded from a database. How can I call delegate.refresh() from my controller? Calling this.delegate.refresh() gives me not a function error.

      posted in Onsen UI
      C
      Carson H
    • How to access ons-lazy-repeat refresh() function?

      Re: ons-lazy-repeat won't realize the changes on the model if the size of the list did not change.

      in this topic IliaSky mentions lazyRepeat._provider.refresh() but I don’t know how to inject that into my controller. At the moment I’m using a very hacky method to change the length of the list temporarily to force a refresh.

      posted in Onsen UI
      C
      Carson H
    • RE: ons lazy repeat delegate when getting response from database

      How did you get the configureItemScope function to wait for the wordlist to be loaded from the db? I get “cannot read property ‘0’ of undefined” when I try something similar.

      posted in Developer Corner
      C
      Carson H