Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: dashboard/dashboard/elements/overlay-message-bar.html

Issue 1767183003: Sample of making global Polymer element. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: add overlay-message-bar Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | dashboard/dashboard/elements/report-page.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7
8 <polymer-element name="overlay-message-bar"
9 extends="overlay-message"
10 attributes="text autoCloseDisabled transition duration opened
11 maxWidth delay">
12
13 <script>
14 'use strict';
15
16 (function() {
17 var globalMessageBar = null;
18
19 Polymer('overlay-message-bar', {
20 created: function() {
21 if (!globalMessageBar) {
22 globalMessageBar = this;
23 }
24 },
25
26 updateContent: function(content, config) {
27 globalMessageBar.super([content, config]);
28 },
29 });
30 })();
31 </script>
32 </polymer-element>
OLDNEW
« no previous file with comments | « no previous file | dashboard/dashboard/elements/report-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698