-
Notifications
You must be signed in to change notification settings - Fork 15
cobalt.init
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.
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.
Cobalt is an Open-Source Hybrid Mobile Framework. Read more about it on the home page or in the documentation
- Introduction to Cobalt navigation
- The cobalt.json file
- native navigation bars
- Handling the Android back button
- Introduction to Cobalt messages
- Publish/Subscribe on the Web side
- Publish/Subscribe on Android
- Publish/Subscribe on iOS
- Web Lifecycle messages
- Pull-To-Refresh and Infinite Scroll
- Custom alerts and Toasts
- LocalStorage
- OpenExternalUrl
- PlatformInfos
- Ajax
- Removing the top bar
- Adding Cobalt to an existing project
- Customizing your hybrid views
- Handle multiple Cobalt webviews on the same screen (TODO)