1.0.4 • Published 9 years ago

roomjs v1.0.4

Weekly downloads
2
License
GPL-2.0
Repository
github
Last release
9 years ago

## General

Support

FirefoxChrome (Mobile)Safari (Mobile)IEOpera
3.5+4+ (2.1+)3.1+ (3.2+)8+12+

Shadow DOM

If you wanna use the Shadow DOM ability of this framework, it's recommended to add the Polyfill for Shadow manipulations by Google. You'll find it here.

Native compatibility
FirefoxChrome (Mobile)SafariIEOpera
-25+ (4.4+)--15+

Usage

### HTML

We are going to use this snippet below for our examples.

var App = Room.app('main');
App.register('TestModule', ['jQuery', function($) {
    return {
        init: function() {
            $('body').css('color', 'red');
            this.renderData({
                message: 'Hello World'
            });
        }
    };
}]);

// Additional stuff here ...

App.init();

Elements

<test-module>
    <p>Message: {{ message }}</p>
</test-module>

Classes

<div class="test-module">
    <p>Message: {{ message }}</p>
</div>

Attributes

<div rm-component="test-module">
    <p>Message: {{ message }}</p>
</div>
1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago