Skip to content
Guillaume Gendre edited this page Apr 29, 2019 · 11 revisions

cobalt.init is the only mandatory function you will need to call to create a cobalt app.

It should be executed as soon as the dom is ready. Not all cobalt functions called before the cobalt.init will work.

See the web setup page for where to call it.

cobalt.init(options)

options is an optional key/value javascript object where every key is optional. That's why it is called "options". great.

Here is what you can add into options :

  • debug : Boolean used to disable logs for production. See Debugging section for more. Default is true.
Clone this wiki locally