⬆️ ⬇️

Moobile - MooTools-based mobile framework



Long time, nothing has been heard on the news about the JS framework MooTools . Meanwhile, it continues its development. At the moment, the latest version of the kernel is 1.4.5.



However, now talk about something else. On April 20, on their twitter, the developers reported that the development of a framework for mobile devices was started using the library core.

Upd.1 - it is not the creators of MooTools who are developing it, thanks to magmoro noticed the inaccuracy.



So moobilejs.com .



According to the authors, the development is still quite raw, version 0.1.1 *. However, the demo can be viewed here or here: goo.gl/dWreE

On the test iPhone 3g, everything works more or less. Beautiful transitions, alerts and attachment to Tap events (tapstart, tapmove, tapend), Touchmove, Pinch, Swipe and others .

The only BUT , the demo page did not want to detect that it was running on a real device, and worked in the same mode as on the desktop, i.e. The emulator was displayed on the page (although it looks like a feature)

')

Currently, only WebKit-based browsers are supported:



The developer’s distribution includes the following packages:



The MVC approach is used with controllers and views.

For example, we load the view from the controller:



this.view = Moobile.View.at('templates/views/hello-world-view.html'); 


When describing classes, the advantages of MooTools are used, for example, part of the controller description:



 var HelloWorldViewController = new Class({ Extends: Moobile.ViewController, ... }); 


Everywhere in HTML data is stored in popular HTML5 data- * attributes



 <div data-role="button" data-name="hello-world-button">Hello World</div> 


The strength of MooTools has always been animation by changing the properties of object styles. Accordingly, good opportunities of this type are available in moobile.

Currently, the main approach used is Transitions, which are used in many examples of demos for navigating between pages.



Of the available controllers, the following are currently present:



From the dialogues so far only

Dialog



I hope the guys will succeed, and the network will be enriched with a fast, easy and powerful engine.



Upd.2 - changed the name so that the hat would not fly off the distinguished torkve . The original version looked like this: "Using MooTools, the development of a mobile framework, Moobile, has begun."

Source: https://habr.com/ru/post/146394/



All Articles