Created
November 13, 2014 23:26
-
-
Save bkardell/5a0ae9cdcc12abe26670 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PreferredDisplayMap.associate({ | |
| selector: "x-panel-set#foo", | |
| mediaQuery: "screen and (max-width: 767px)", | |
| value: "accordion" | |
| }); | |
| /* | |
| Causes this element to set the preferred-display attribute to 'accordion' and wind up as follows | |
| when the media query is truthy... | |
| <x-panel-set id="foo" preferred-display="accordion"> | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment