Applications
A CodeCoupler Application is a container in which an application runs. It can look like a classic desktop windows with titlebar or fill the whole stage like a website would do.
Please create a subfolder apps
and another subfolder apps/first-app
. In there we start with the
absolute minimum with a file index.js
:
src/apps/first-app/index.js
1 2 |
|
Now start the application in our index.js
file after the system is initialized:
src/index.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
You will see an application element which can be dragged around. Let's modify its appearance a
little bit by adding an init
function to our application class:
src/apps/first-app/index.js
1 2 3 4 5 6 7 8 9 |
|
Now the application have the shape of a square and an awesome title.