mobiscroll.jqmwidget.js 660 B

123456789101112131415161718192021222324252627
  1. (function ($) {
  2. if ($.widget) {
  3. $.widget("mobile.jqmMobiscroll", $.mobile.widget, {
  4. options: {
  5. theme: 'jqm',
  6. preset: 'date',
  7. animate: 'pop'
  8. },
  9. _create: function () {
  10. var input = this.element,
  11. o = $.extend(this.options, input.jqmData('options'));
  12. input.mobiscroll(o);
  13. }
  14. });
  15. $(document).on('pagecreate', function (c) {
  16. $(':jqmData(role="mobiscroll")', c.target).each(function () {
  17. $(this).jqmMobiscroll();
  18. });
  19. });
  20. }
  21. })(jQuery);