Last active
August 31, 2017 15:38
-
-
Save jecfish/8620d5b852e19c5b56e4f0e4248a323c 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
// top-bar.index.ts | |
import { Element as PolymerElement } from '@polymer/polymer/polymer-element'; | |
import { GestureEventListeners } from '@polymer/polymer/lib/mixins/gesture-event-listeners'; | |
import * as view from './top-bar.template.html'; | |
export class MyTopBar extends GestureEventListeners(PolymerElement) { | |
// Define a string template instead of a `<template>` element. | |
static get template() { | |
return view; | |
} | |
constructor() { | |
super(); | |
} | |
reset() { | |
(this as any).dispatchEvent(new CustomEvent('reset-clicked')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment