Directory

screen-env - Vaadin Add-on Directory

Differentiate screen types by size, touch ability, and more. screen-env - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/jifalops/screen-env](https://github.com//jifalops/screen-env/blob/0.3.0/README.md) on 2019-05-10 ]** [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jifalops/screen-env) # screen-env Differentiate screen types by size, touch ability, and more. ## Installation ``` bower install --save screen-env ``` ## Usage * Bind to the `screen-env` properties you are interested in. ## Demo ```html
Main abilities
narrowWidth[[narrowWidth]] Mobile/tablet+, (600px or less)
isTouch[[isTouch]] false: no browser support
null: browser support
true: touchstart has occurred
uaIsDesktop[[uaIsDesktop]] User requested desktop site
isMobile[[isMobile]] Material design + UA/media check
``` Full demo: [webcomponents.org](https://www.webcomponents.org/element/jifalops/screen-env/demo/demo/index.html) | [github](https://jifalops.github.io/screen-env/components/screen-env/demo/). API: [webcomponents.org](https://www.webcomponents.org/element/jifalops/screen-env/screen-env) | [github](https://jifalops.github.io/screen-env). ## Contributing 1. Fork it on Github. 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request ## License [MIT](https://opensource.org/licenses/MIT)
GitHub Homepage
View on GitHub
License
Issue tracker

screen-env version 0.1.0
### Dependencies polymer#^1.8.1 * iron-media-query#^1.0.8

screen-env version 0.1.1
### Dependencies polymer#^1.8.1 * iron-media-query#^1.0.8

screen-env version 0.2.0
### Dependencies polymer#^1.8.1 * iron-media-query#^1.0.8

screen-env version 0.2.1
### Dependencies polymer#^1.8.1 * iron-media-query#^1.0.8

screen-env version 0.2.2
### Dependencies polymer#^1.8.1 * iron-media-query#^1.0.8

screen-env version 0.3.0
### Dependencies polymer#^1.8.1 * iron-media-query#^1.0.8