Skip to content

Instantly share code, notes, and snippets.

@bkardell
Created November 13, 2014 23:26
Show Gist options
  • Save bkardell/5a0ae9cdcc12abe26670 to your computer and use it in GitHub Desktop.
Save bkardell/5a0ae9cdcc12abe26670 to your computer and use it in GitHub Desktop.
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