0.0.27 • Published 7 years ago

els-js v0.0.27

Weekly downloads
-
License
GPL v3
Repository
-
Last release
7 years ago

els-js

Elastic javascript & css ui package

Todo description

Installation

install with npm:

$ npm install els-js

Base library

NameTypeDescription
VersionNumberSystem version
ElsJsFunctionFunction return global ElsObject
ExtendFunctionAdd new element to ElsObject
AjaxJsonObject-
CallerObjectApplication callbacks
ComponentObjectWork with React UI components
ComponentsObjectCore React UI components
CookieObject-
DataObject-
HistoryObject-
HotKeysObject-
LoadFunctionConnecting javascript and css styles files to the page
StorageObject-
TriggerObject-
ToolsObject-
DomObjectHTML Dom manipulations
ToastObject-

Example

Create & usage window ElsObject

import { Extend, ElsJs } from "els-js";

// add custom function in ElsObject
Extend("init", () => {
	// your function ...
})

window.ElsJs = ElsJs();
ElsJs.init();

Dom, Cookie

import { Dom, Cookie } from "els-js";

var Element = Dom.Element;

var app1 = Element.byId("app"); // document.getElementById("app")
var app2 = Element.byQuery("#app"); // document.querySelectorAll("#app")
var app3 = Element.create(); // document.createElement("div")

var app4 = Element.create({name: "span", className: "my-app", style: {display: "block"}});
// equivalent
// var app4 = document.createElement("span");
// app4.className = "my-app";
// app4.style.display = "block";

// set, get cookie
Cookie.set("myCookie", "value");
var myCookie = Cookie.get("myCookie");
0.0.27

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago