-
Notifications
You must be signed in to change notification settings - Fork 14
Samples list
Here is a list of samples hosted on the Cobaltians Samples Repository
This sample contains only one page with a simple Cobalt pullToRefresh enabled.
Name | Plugins enabled | iOS repository | Android repository | Web repository |
---|---|---|---|---|
HelloWorld | none | Samples-HelloWorld-iOS | Samples-HelloWorld-Android | Samples-HelloWorld-Web |
This sample contains a developper demonstration of all features and plugins available in Cobaltians Plugins repository.
Name | Plugins enabled | iOS repository | Android repository | Web repository |
---|---|---|---|---|
Catalog | none | Samples-Catalog-iOS | Samples-Catalog-Android | Samples-Catalog-Web |
This one can also be downloaded on the stores :
This sample can be used as a starting block for an app with a side menu on the left.
Name | Plugins enabled | iOS repository | Android repository | Web repository |
---|---|---|---|---|
SideMenu | none | Samples-SideMenu-iOS | Samples-SideMenu-Android | Samples-SideMenu-Web |
Use Git to try a sample from its Android or iOS repository url from the tables above (the Web folder is just if you wan to see the common web content) :
git clone https://github.com/Cobaltians-Samples/Samples-HelloWorld-Android.git
//or
git clone https://github.com/Cobaltians-Samples/Samples-HelloWorld-iOS.git
Then go to the created folder and don't forget to init git submodules :
git submodule update --init
Then, open the project with XCode or Android Studio
- Xcode : double click on the xcworkspace file if present or the xcodeproj otherwise
- Android Studio : select "Import project (Eclipse ADT, Gradle, etc.)" and select the project folder.
And click the play button.
We have more samples in our backlog including a Side Menu Sample, A kitten gallery sample.
Want another sample ? Contact us !
You have done a great sample and want to share it to the community for reviews, glory and enhancements?
Get in touch to submit yours on this list! As Cobalt is an Open Source framework under MIT license, keep in mind that your sample must be in MIT Licence or compatible!
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)