| <link rel="import" href="/libs/vendor/polymer/polymer/polymer.html"> |
| <link rel="import" href="/libs/vendor/polymer/core-toolbar/core-toolbar.html"> |
| <polymer-element name="p2b-pipes-tab-content" flex> |
| <link rel="stylesheet" href="component.css"> |
| <content select="p2b-pipes-tab-toolbar"></content> |
| <div class="tab-main" flex> |
| <div id="main" class="tab-main-content" flex> |
| Polymer('p2b-pipes-tab-content', { |
| * Replaces existing content of the tab with the new element |
| * @param {DOMElement} new element to replace existing content |
| replaceTabContent: function(newEl) { |
| //TODO(aghassemi) There must be a better way for these .innerHTML='', figure it out. |
| this.$.main.innerHTML = ''; |
| this.$.main.appendChild(newEl); |
| * Puts the tab content into fullscreen mode |
| var flag = Element.ALLOW_KEYBOARD_INPUT; |
| if (this.$.main.requestFullscreen) { |
| this.$.main.requestFullscreen(flag); |
| } else if( this.$.main.webkitRequestFullscreen ) { |
| this.$.main.webkitRequestFullscreen(flag); |