MooTools

from Wikipedia, the free encyclopedia
MooTools
Basic data

developer The MooTools development team
Current  version 1.6.0
(January 14, 2016)
operating system platform independent
programming language JavaScript
category Class library
License MIT license
German speaking Yes
www.mootools.net

MooTools ( My Object Oriented tools ) is a free JavaScript - web framework for the efficient development of expandable and cross-browser compatible code. It's object-oriented , modular, and compact. The framework is under the MIT license . About 2% of all websites use MooTools.

properties

  • Expandable and modular, so that it is possible for developers to only include the components that are actually needed.
  • Strong object orientation for more flexibility and expandability.
  • Effect component with transitions, for animations within the website.

Components

MooTools contains a number of components, not all of which are required for every application. Some of the main components are:

Core
a collection of functions required by all other components.
More
an official collection of extensions that expand the core and add more functionality.
Class
is the MooTools base class library for instantiating class objects.
Native
a collection of JavaScript native objects. Natives add additional functions, increase compatibility and add new methods to MooTools.
element
is a component for further improvements and for increasing the compatibility of the HTML element objects.
Effects
is an effects API for animating elements.
Remote
provides an XHR interface, cookies and various JSON tools for developers.
Window
provides a cross-browser interface to client-specific information, e.g. B. the screen resolution.

An optional, compressed JavaScript file containing user-specific components can be created directly when downloading from the MooTools website.

Browser compatibility

MooTools is compatible and tested with:

object oriented programing

MooTools includes a robust class collection and an advanced inheritance system, which enables reuse of the source code and easy expansion. For example:

var Tier = new Class({

    initialize: function(name) {
        this.name = name;
    }

});

var Katze = new Class({

    Extends: Tier,

    reden: function() {
        return 'Miau!';
    }

});

var Hund = new Class({

    Extends: Tier,

    reden: function() {
        return 'Wuff! Wuff!';
    }

});

var tiere = {
    a: new Katze('Missy'),
    b: new Katze('Mr. Bojangles'),
    c: new Hund('Lassie')
};

Object.each(tiere, function(tier) {
    alert(tier.name + ': ' + tier.reden());
});

// Ausgabe der Dialogfenster
//
// Missy: Miau!
// Mr. Bojangles: Miau!
// Lassie: Wuff! Wuff!

In addition, it provides its own set of classes with which it is easily possible, for example, to achieve various effects. These include resizing the browser window, fade in and fade out effects, motion effects and much more ( Ajax , JSON , etc.). Transition effects can be implemented with just a few lines of code, as MooTools does most of the work itself.

See also

Web links

Individual evidence

  1. 1.6.0 is out! Retrieved September 7, 2016 .
  2. http://mootools.net/blog/2009/04/01/a-new-name-for-mootools/
  3. http://w3techs.com/technologies/overview/javascript_library/all