els-js
Elastic javascript & css ui package
Todo description
Installation
install with npm:
$ npm install els-js
Base library
Name | Type | Description |
---|---|---|
Version |
Number | System version |
ElsJs |
Function | Function return global ElsObject |
Extend |
Function | Add new element to ElsObject |
AjaxJson |
Object | - |
Caller |
Object | Application callbacks |
Component |
Object | Work with React UI components |
Components |
Object | Core React UI components |
Cookie |
Object | - |
Data |
Object | - |
History |
Object | - |
HotKeys |
Object | - |
Load |
Function | Connecting javascript and css styles files to the page |
Storage |
Object | - |
Trigger |
Object | - |
Tools |
Object | - |
Dom |
Object | HTML Dom manipulations |
Toast |
Object | - |
Example
Create & usage window ElsObject
; // add custom function in ElsObject windowElsJs = ;ElsJs;
Dom, Cookie
; var Element = DomElement; var app1 = Element; // document.getElementById("app")var app2 = Element; // document.querySelectorAll("#app")var app3 = Element; // document.createElement("div") var app4 = Element;// equivalent// var app4 = document.createElement("span");// app4.className = "my-app";// app4.style.display = "block"; // set, get cookieCookie;var myCookie = Cookie;