UNPKG

api-console-assets

Version:

This repo only exists to publish api console components to npm

56 lines (52 loc) 1.83 kB
<!-- @license Copyright 2016 The Advanced REST client authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <link rel="import" href="../polymer/polymer.html"> <link rel="import" href="docs-parameters-table-shared-styles.html"> <link rel="import" href="docs-parameters-behavior.html"> <link rel="import" href="raml-type-property-description.html"> <!-- A property row in the description table. --> <dom-module id="docs-parameters-table-row"> <template> <style include="docs-parameters-table-shared-styles"></style> <div class="td param-name"> <span class="name">[[item.name]]</span> <template is="dom-if" if="[[item.required]]"> <span class="required-label">(required)</span> </template> </div> <div class="td param-type"> <span class="type">[[item.type]]</span> <template is="dom-if" if="[[hasValue(item.enum)]]"> <span class="enum-label">(enum)</span> </template> </div> <div class="td param-desc"> <raml-type-property-description item="[[item]]"></raml-type-property-description> </div> </template> <script> Polymer({ is: 'docs-parameters-table-row', behaviors: [RamlBehaviors.DocsParametersBehavior], properties: { /** * A property to display information about. */ item: Object, } }); </script> </dom-module>