open-index/open-npm huggingface dataset:
npm package: @ionic-decorator/status-bar-style
Description: Allows you to declare the StatusBar style of your Ionic Page
Latest version: 0.0.7
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# StatusBarStyle

[![CircleCI](https://img.shields.io/circleci/project/github/vknabel/status-bar-style.svg?style=flat-square)](https://circleci.com/gh/vknabel/status-bar-style)
[![Codecov](https://img.shields.io/codecov/c/github/vknabel/status-bar-style.svg?style=flat-square)](https://codecov.io/gh/vknabel/status-bar-style)
[![npm (scoped)](https://img.shields.io/npm/v/@ionic-decorator/status-bar-style.svg?style=flat-square)](https://www.npmjs.com/package/@ionic-decorator/status-bar-style)

The `@StatusBarStyle`-Decorator automatically adjusts the style of the StatusBar for your page.
It uses Ionic Native's `StatusBar` and applies your requested style when the page will be presented.

```typescript
@StatusBarStyle('lightContent')
@IonicPage()
@Component({
    templateUrl: './your.page.html'
})
export class YourPage {
    constructor(
        public readonly statusBar: StatusBar
    ) { }
}
```

## Limitations

Currently `@StatusBarStyle` won't reset the status bar style when a page will leave,
so all your pages should declare `@StatusBarStyle` if the styles differ from page to page.

Additionally the status bar style should not be manipulated manually in order to avoid inconsistencies.

## Installation

```bash
$ npm install --save @ionic-decorator/status-bar-style @ionic-native/core @ionic-native/status-bar
$ ionic plugin add --save cordova-plugin-statusbar
```

## Author

Valentin Knabel, [@vknabel](https://twitter.com/vknabel), dev@vknabel.com

## License

@ionic-decorator/status-bar-style is available under the [MIT](LICENSE) license.