-
Notifications
You must be signed in to change notification settings - Fork 14
statusBar
property | type | default value | description |
---|---|---|---|
visible | Boolean | true |
status bar visibility |
lightText | Boolean |
false on iOS. true on Android |
text color can be dark or light. |
On android status bar color is black by default. It will automatically be darker than the color you specified in native bars or as backgroundColor
in cobalt.json. You can still change this color manually in your native app android styles by setting the [COMPLETE THIS]
style.
On iOS status bar color is white by default. Its background color will be the same than the color you specified in native bars or as backgroundColor
in cobalt.json.
You can set the status bar visibility straight from the cobalt.json
Quick exemple :
statusBar : {
visible : true,
lightText : true
}
You can change status bar visibility and text color like this :
cobalt.statusBar.set({ visible: true, lightText : false});
It can be set from navigation calls too for push, modal, adn replace.
cobalt.navigation.push({
page : 'myPage.html',
controller : 'myController',
statusBar: {visible: true, lightText : false}
});
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)