Examples of mobile web and/or HTML5 apps with Datatables on mobile?

Examples of mobile web and/or HTML5 apps with Datatables on mobile?

nextnownextnow Posts: 7Questions: 0Answers: 0
edited December 2011 in General
Does anyone have examples of mobile web or "hybrid apps" (e.g. PhoneGap, etc.) using Datatables? Phone? Tablet?
Any reason it wouldn't work well in any of these configurations - mobile web/hybrid app on phone/tablet?

Thanks!
Jack

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I've seen DataTales uses in several iPhone, iPad, Android etc apps all working well. DataTables is just a Javascript library, so as long as the target browser can run ECMAScript then it should work just fine.

    Allan
  • nextnownextnow Posts: 7Questions: 0Answers: 0
    Thanks, Allan. I know sometimes for mobile essentially a subset of JQuery is used - e.g. Zepto, JQuip, etc. Do you know how Datatables plays in those situations?
    Jack
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I've just tried the current version of Zepto (0.8) and I'm afraid it doesn't appear to work. I'm getting and error in the $.extend function for some reason. I think this is probably worth spending a little bit of time and looking at it at some point - added to my to-do list.

    Allan
  • nextnownextnow Posts: 7Questions: 0Answers: 0
    Awesome, Allan. Yes, Zepto and the like seem to be gaining a lot of steam.
    Thanks,
    Jack
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I'm working on v1.9 of DataTables, so I'll see if I can get it in with that :-).

    I should perhaps expand a little on my previous comments - as part of the v1.9 development I'm doing a lot of work rearranging the internals of DataTables, breaking it into more modular parts. This means that in future it should become easier to build a DataTables library with only the features that you need. For example, if you don't need pagination, there is no point in having that code in there. DataTables comes in at about 71KB when minified, so not massive, but at the same time, could be smaller for mobile apps.

    The "module-isation" of DataTables won't be completed until the next major version (which will probably be v1.10) but then it should be possible to build a light weight table that does what you need - ideal for a mobile environment.

    That's the plan anyway... :-)

    Regards,
    Allan
  • nextnownextnow Posts: 7Questions: 0Answers: 0
    Thanks for expanding, Allan -- sounds great.

    Jack
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I've just spend a bit of time working with Zepto, and I'm afraid that supporting it from DataTables would not be trivial - perfectly possible of course, but there are a number of things that Zepto doesn't appear to do:

    1. Deep object copying - I just submitted a patch for this
    2. :lt() / :gt() selector filters - since Zepto is using querySelectorAll, and this doesn't support this syntax
    3. Something about the selector not dealing with arrays - I give up at this point since it wasn't even halfway through the DataTables constructor.

    I'm not going to give up completely - I'll revisit it, but probably not for a little while since it will take a fair bit of effort to get it working.

    Allan
  • nextnownextnow Posts: 7Questions: 0Answers: 0
    Thanks for the update, Allan!

    Jack
This discussion has been closed.