UNPKG

api-console-assets

Version:

This repo only exists to publish api console components to npm

67 lines (62 loc) 2.64 kB
<!doctype html> <!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <html> <head> <title>arc-demo-snippet demo</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes"> <script src="../../webcomponentsjs/webcomponents-lite.js"></script> <link rel="import" href="../../iron-flex-layout/iron-flex-layout.html"> <link rel="import" href="../../arc-demo-helpers/raml-demo-page.html"> <link rel="import" href="../docs-parameters-table.html"> <style> html, body { margin: 0; padding: 0; font-family: 'Roboto', 'Noto', sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 14px; font-weight: 400; line-height: 20px; } docs-parameters-table { max-width: 700px; } </style> </head> <body unresolved> <template is="dom-bind" id="app"> <raml-demo-page selected-object="{{selected}}" is-method="{{isMethod}}" narrow="{{narrow}}"> <paper-item data-url$="[[testRaml]]">Test case</paper-item> <h1>The docs-parameters-table element</h1> <div main> <template is="dom-if" if="[[isMethod]]" restamp="true"> <docs-parameters-table hidden$="[[!hasParameters]]" uri-parameters="[[selected.allUriParameters]]" query-parameters="[[selected.queryParameters]]" has-parameters="{{hasParameters}}" auto-hide narrow="[[narrow]]"></docs-parameters-table> <p hidden$="[[hasParameters]]">Selected method does not have nither the <b>allUriParameters</b> and <b>queryParameters</b> property.</p> </template> <p hidden$="[[isMethod]]">Select a method</p> </div> </raml-demo-page> <script> (function(scope) { var path = location.pathname; if (~path.indexOf('.html')) { path = path.substr(0, path.lastIndexOf('/') + 1); } scope.testRaml = location.protocol + '//' + location.host + path + 'docs-parameters-table.raml'; })(document.getElementById('app')); </script> </template> </body> </html>