Skip to content

Instantly share code, notes, and snippets.

const machine = Machine({
initial: 'Closed',
states: {
Closed: {
on: {
keydown: {
cond: 'isChar',
target: 'Open',
actions: 'focus'
}
const machine = Machine({
initial: 'Closed',
states: {
Closed: {
on: {
keydown: {
cond: 'isChar',
target: 'Open',
actions: 'focus'
}
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">