jquery-mobile-contribs

Some contribs for JQuery Mobile

Лицензия

Лицензия

Группа

Группа

com.ovea
Идентификатор

Идентификатор

jquery-mobile-contribs
Последняя версия

Последняя версия

1.7.ga
Дата

Дата

Тип

Тип

jar
Описание

Описание

jquery-mobile-contribs
Some contribs for JQuery Mobile
Организация-разработчик

Организация-разработчик

Ovea
Система контроля версий

Система контроля версий

http://github.com/Ovea/jquery-mobile-contribs

Скачать jquery-mobile-contribs

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.ovea/jquery-mobile-contribs/ -->
<dependency>
    <groupId>com.ovea</groupId>
    <artifactId>jquery-mobile-contribs</artifactId>
    <version>1.7.ga</version>
</dependency>
// https://jarcasting.com/artifacts/com.ovea/jquery-mobile-contribs/
implementation 'com.ovea:jquery-mobile-contribs:1.7.ga'
// https://jarcasting.com/artifacts/com.ovea/jquery-mobile-contribs/
implementation ("com.ovea:jquery-mobile-contribs:1.7.ga")
'com.ovea:jquery-mobile-contribs:jar:1.7.ga'
<dependency org="com.ovea" name="jquery-mobile-contribs" rev="1.7.ga">
  <artifact name="jquery-mobile-contribs" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ovea', module='jquery-mobile-contribs', version='1.7.ga')
)
libraryDependencies += "com.ovea" % "jquery-mobile-contribs" % "1.7.ga"
[com.ovea/jquery-mobile-contribs "1.7.ga"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

JQueryMobile contribs

A - Navigation Events

1 - Define the eventbus (https://github.com/Ovea/js-eventbus)

if (myapp.bus == undefined) {
  (function($) {
    myapp.bus = {
      local: new EventBus({
        name: 'EventBus Local'
      })
    };
  })(jQuery);
}

2 - Bridge jquery Mobile with the EventBus

if (myapp.namesapce == undefined) {
  (function($) {
    window.jqmcontrib.bridge(myapp.bus.local);
  })(jQuery);
}

3 - No you can listen anywhere on your code the JQueryMobile events (pagebeforeshow, pagecreate, pageshow, pagehide) through topics (beforeshow, create, show, hide).

// Be notified by the creation of the page 'member'
myapp.bus.local.topic('/event/ui/view/create/member').subscribe(function(page) {
                                                                 r
}

// For all pages
myapp.bus.local.topic('/event/ui/view/create').subscribe(function(page) {

}

....

B - Navigation

1 - Define the eventbus (https://github.com/Ovea/js-eventbus)

if (myapp.bus == undefined) {
  (function($) {
    myapp.bus = {
      local: new EventBus({
        name: 'EventBus Local'
      })
    };
  })(jQuery);
}

2 - Init Navigation object

if (app.navigation == undefined) {
  (function($) {
    app.navigation = new window.jqmcontrib.Navigation(myapp.bus.local);
  })(jQuery);
}

3 - Use in your app

// In which page I am ?
var page = app.navigation.pageName();

// Go to external URL and when I come back to my app go to page : myPage
app.navigation.redirect(external_url, {
  to: myPage
});

N.B : The navigation object publish on topic '/event/navigation/restoring' when it restore state

// Change page
app.navigation.changePage('game');
com.ovea

OVEA

Версии библиотеки

Версия
1.7.ga
1.6.ga
1.5.ga
1.4.ga
1.3.ga
1.2.ga
1.1.ga
1.0