mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
29 lines
827 B
Markdown
29 lines
827 B
Markdown
|
|
<!---
|
|
|
|
This README is automatically generated from the comments in these files:
|
|
iron-media-query.html
|
|
|
|
Edit those files, and our readme bot will duplicate them over here!
|
|
Edit this file, and the bot will squash your changes :)
|
|
|
|
-->
|
|
|
|
[](https://travis-ci.org/PolymerElements/iron-media-query)
|
|
|
|
_[Demo and API Docs](https://elements.polymer-project.org/elements/iron-media-query)_
|
|
|
|
|
|
##<iron-media-query>
|
|
|
|
|
|
`iron-media-query` can be used to data bind to a CSS media query.
|
|
The `query` property is a bare CSS media query.
|
|
The `query-matches` property is a boolean representing whether the page matches that media query.
|
|
|
|
Example:
|
|
|
|
<iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches}}"></iron-media-query>
|
|
|
|
|