Giter VIP home page Giter VIP logo

Comments (9)

morefun0302 avatar morefun0302 commented on June 20, 2024

Android
Ti 3.2.3
Alloy 1.3

from nl.fokkezb.infinitescroll.

FokkeZB avatar FokkeZB commented on June 20, 2024

Your code should be:

var result = Ti.UI.createTableView({
});
var is = Alloy.createWidget('nl.fokkezb.infiniteScroll');
is.init({
  table: result
});

from nl.fokkezb.infinitescroll.

morefun0302 avatar morefun0302 commented on June 20, 2024

Thx for ur help, however, the footerview in the widget is not added to the table

from nl.fokkezb.infinitescroll.

FokkeZB avatar FokkeZB commented on June 20, 2024

Can you attach a full test project to reproduce the issue?

from nl.fokkezb.infinitescroll.

morefun0302 avatar morefun0302 commented on June 20, 2024

hi,
please get it here:
https://drive.google.com/file/d/0Bw7DkXrZLQH5VVZVQTBrM1dId2M/edit?usp=sharing

from nl.fokkezb.infinitescroll.

FokkeZB avatar FokkeZB commented on June 20, 2024

You've spotted an error when using the widget in the controller instead of the view.

Why are you doing everything in the controller by the way?

from nl.fokkezb.infinitescroll.

morefun0302 avatar morefun0302 commented on June 20, 2024

Originally I was using another Widget from you, PulltoRefresh, but I figure out the positiion problem of the headerview, so I found another PulltoRefresh Widget from marketplace, but the table should be created by code.

from nl.fokkezb.infinitescroll.

morefun0302 avatar morefun0302 commented on June 20, 2024

BTW, how to pass the function myLoader(e) {} function by code, thanks?

from nl.fokkezb.infinitescroll.

FokkeZB avatar FokkeZB commented on June 20, 2024

Just manually attach the event listener:

is.on('end', myLoader);

from nl.fokkezb.infinitescroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.