KissJS stands for Keep It Simple Stupid JavaScript
It's a simple javascript library to build web applications. It includes:
- out-of-the-box UI components
- powerful datatable with high performances when the number of records is heavy (> 10 000)
- bonus stuff that you can use (or not)
Bonus stuff includes:
- view manager, if you want to use KissJS not only for its UI Components, but also to build a complete application with multiple views
- client router which works 100% offline (even with file:/// paths)
- pubsub which is at the heart of the components reactivity
- NoSQL database wrapper which allows to work in memory, offline, or online
- NoSQL data layer to manage Models, Collections, Records, and automate the updates when records have relationships
A few recommandations:
- don't try to explore the API documentation directly: it's boring and uninteresting
- you'd rather jump to the guide which contains a few easy step by step tutorials
Here is an overview of what it provides:
![](../../resources/doc/KissJS - Overview.png)
KissJS library consist of a single global object that you can explore in the console at startup, or after, using console.log(kiss):
![](../../resources/doc/KissJS - Global object.png)
Namespaces
- acl
- ajax
- app
- context
- data
- db
- directory
- formula
- language
- loader
- loadingSpinner
- logger
- plugins
- pubsub
- router
- screen
- selection
- serviceWorker
- session
- theme
- tools
- ui
- undoRedo
- ux
- views
- websocket
Methods
# static addToModule(moduleName, methods)
Add client/server shared methods to a specific kiss module
Parameters:
Name | Type | Description |
---|---|---|
moduleName |
string
|
|
methods |
object
|
Example
kiss.addToModule("tools", {
sayHello: function() {
console.log("Hello")
},
sayGoodbye: () => console.log("Goodbye!")
})
kiss.tools.sayHello() // "Hello"
kiss.tools.sayGoodbye() // "Goodbye"