egjs is a jQuery-based JavaScript library consisting of UI interactions, effects, and utilities, which brings easiest and fastest way to build a web application in your way.
The following is a list of egjs components.
egjs provides methods and events extended from jQuery.
The following is a list of methods extended from jQuery.
The following is a list of events extended from jQuery.
In order to use egjs, you should download the JavaScript files or install it using Bower or npm.
You can download the uncompressed files for development version from the following locations:
You can download the compressed files for production version from the following locations:
To create a link to a file provided over CDN, you must check the file URL in the CDN service.
If you do not have Bower installed, install it using npm as follows:
$ npm install bower -gThe following code shows how to install egjs using Bower.
$ bower install egjsThe following code shows how to install egjs using npm.
$ npm install egjsThe following table shows browsers supported by egjs.
| Internet Explorer | Chrome | Firefox | Safari | iOS | Android |
|---|---|---|---|---|---|
| 7+ | Latest | Latest | Latest | 7+ | 2.3+(except 3.x) |
Supported browser types and versions may vary depending on modules. For more information, see API documentation.
egjs has the dependencies for the following libraries:
| jQuery (required) | Hammer.JS |
|---|---|
| 1.7.0+ | 2.0.4+ |
Except jQuery, library dependencies may vary depending on modules. For more information, see API documentation.
Let egjs load after jQuery loads.
...<!-- Load jQuery --> <!-- Load egjs packaged with all dependencies (Hammer.js) --><!-- Load from your local installation --> <!-- Or load from CDN -->...Note
For more information on loading dependency files except jQuery, see the "Download and Using egjs" page on GitHub Wikis.
You need to add the namespace, "eg", to use the egjs components as shown in the example below.
var Klass = eg;var Komponent = egClass;For anyone interested to develop egjs, follow the instructions below.
Install grunt-cli globally.
$ npm install grunt-cli -g # Install grunt-cliClone the egjs depository and install the Bower and npm dependency modules.
# Create and move a folder.$ mkdir egjs && cd egjs # Clone a repository.$ git clone https://github.com/naver/egjs.gitSupport npm and yarn.
# Install the dependencies modules.$ npm install # or$ yarn When add dependency library have to use yarn.
Use Grunt to build egjs.
$ grunt buildTwo folders will be created after complete build is completed.
Once you create a branch and done with development, you must perform a test using the "grunt test" command before you push code to a remote repository.
$ grunt testRunning a "grunt test" command will start JShint, JSCS, QUnit, and istanbul.
If you find a bug, please report it to us using the Issues page on GitHub.
egjs is released under the MIT license.
Copyright (c) 2015 NAVER Corp. Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.