An un-opinionated, lightweight library for super fast web apps
RequireJS can be used by simple requiring any of the the built modules in your require definition, like so:
require'path/to/built/rogue/module/file'// use Module variable here;
You can also use any of the the built modules in a script tag:
Documentation can be found here.
Detailed usage and specific examples can be found in the Examples.
Create a carousel based off of a set of predetermined markup. Assuming, you have your html in the DOM and CSS set up correctly. You can do:
var carousel =panels: documentgetElementsByClassName'carousel-panel'thumbnails: documentgetElementsByClassName'carousel-thumbnail';carouselgoTo1; // go to second carousel item
Details on how to create a carousel can be found here.
var modal =el: $'<div class="my-modal">My Modal Content</div>'0containerEl: $'modals-container'0activeClass: 'modal-active';modalsetup; // inject the modal's html into the modal containermodalshow; // show the modalmodalhide; // hide the modal
A more advanced example of how to create a modal can be found here.
To contribute to Rogue, check out the Contributing readme.
- 2015-24-01 v3.2.0 New TabView.
- 2015-03-01 v2.6.0 New Event Manager (as of 3.2.0, Event Manager has been moved as a standalone package under the new name of Event Handler.
- 2014-12-29 v2.2.0 New Carousel.
- 2014-07-12 v2.1.0 Official release.