jide.js is a free UI toolkit for modern web applications based on data binding and separation of concerns.
It is built around the concept of properties and data binding and enables highly efficient programming.
jide.js uses the AMD format and can be used with any AMD compatible loader such as require.js.
Since jide.js uses the AMD format, you must start by including an AMD loader in your HTML file. Since there are a lot of choices we can only handle the most obvious one: require.js.
For the purpose of this tutorial, we assume that your project has the following directory layout:
- /app.js (your application)
- /jidejs (copied from your jide.js download or checkout)
Now place the following content in your
<!-- your HTML content, nothing for now -->
This is a minimal HTML file that loads
require.js as well as the default jide.js theme and
Now create your
app.js and place something along the following lines in it:
// and start your applicationrequire'jidejs/ui/control/Button'// use strict mode, or not - up to you"use strict";// create a new Buttonvar myButton =text: 'Say hello!'on:alert"Hello World, I'm a jide.js programmer now!";;// add the Button to the DOMdocumentbodyappendChildmyButtonelement;;
Congratulations! You've successfully created your first fully functional jide.js application!
jide.js comes bundled with plenty of documentation that you can directly access from this page.
- Guide The Guide provides a structured introduction to jide.js for those who prefer to read.
- Examples The Examples provide an interactive way to learn jide.js in case you'd like to explore and test it before starting to read the detailed guide or diving into the API documentation.
- API If you need to explore the API of a class or method in detail, the API documentation is the best way to do so.