| <!doctype html> |
| <html class="no-js" lang=""> |
| <head> |
| <meta charset="utf-8"> |
| <meta http-equiv="x-ua-compatible" content="ie=edge"> |
| <title>helix-front documentation</title> |
| <meta name="description" content=""> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| |
| <link rel="icon" type="image/x-icon" href="../images/favicon.ico"> |
| <link rel="stylesheet" href="../styles/style.css"> |
| <link rel="stylesheet" href="../styles/dark.css"> |
| </head> |
| <body> |
| |
| <div class="navbar navbar-default navbar-fixed-top visible-xs"> |
| <a href="../" class="navbar-brand">helix-front documentation</a> |
| <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button> |
| </div> |
| |
| <div class="xs-menu menu" id="mobile-menu"> |
| <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu> |
| </div> |
| |
| <div class="container-fluid main"> |
| <div class="row main"> |
| <div class="hidden-xs menu"> |
| <compodoc-menu mode="normal"></compodoc-menu> |
| </div> |
| <!-- START CONTENT --> |
| <div class="content component"> |
| <div class="content-data"> |
| |
| |
| |
| |
| <ol class="breadcrumb"> |
| <li>Components</li> |
| <li |
| > |
| KeyValuePairsComponent</li> |
| </ol> |
| |
| <ul class="nav nav-tabs" role="tablist"> |
| <li class="active"> |
| <a href="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a> |
| </li> |
| <li > |
| <a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a> |
| </li> |
| <li > |
| <a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a> |
| </li> |
| <li > |
| <a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a> |
| </li> |
| <li > |
| <a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a> |
| </li> |
| </ul> |
| |
| <div class="tab-content"> |
| <div class="tab-pane fade active in" id="c-info"><p class="comment"> |
| <h3>File</h3> |
| </p> |
| <p class="comment"> |
| <code>src/app/shared/key-value-pairs/key-value-pairs.component.ts</code> |
| </p> |
| |
| |
| |
| |
| |
| |
| <section> |
| <h3>Metadata</h3> |
| <table class="table table-sm table-hover metadata"> |
| <tbody> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <tr> |
| <td class="col-md-3">selector</td> |
| <td class="col-md-9"><code>hi-key-value-pairs</code></td> |
| </tr> |
| |
| <tr> |
| <td class="col-md-3">styleUrls</td> |
| <td class="col-md-9"><code>./key-value-pairs.component.scss</code></td> |
| </tr> |
| |
| |
| |
| <tr> |
| <td class="col-md-3">templateUrl</td> |
| <td class="col-md-9"><code>./key-value-pairs.component.html</code></td> |
| </tr> |
| |
| |
| |
| |
| |
| |
| |
| |
| </tbody> |
| </table> |
| </section> |
| |
| <section> |
| <h3 id="index">Index</h3> |
| <table class="table table-sm table-bordered index-table"> |
| <tbody> |
| <tr> |
| <td class="col-md-4"> |
| <h6><b>Properties</b></h6> |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <ul class="index-list"> |
| <li> |
| <a href="#getProp" >getProp</a> |
| </li> |
| <li> |
| <a href="#pairs" >pairs</a> |
| </li> |
| </ul> |
| </td> |
| </tr> |
| |
| |
| <tr> |
| <td class="col-md-4"> |
| <h6><b>Inputs</b></h6> |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <ul class="index-list"> |
| <li> |
| <a href="#obj" >obj</a> |
| </li> |
| </ul> |
| </td> |
| </tr> |
| |
| |
| |
| |
| </tbody> |
| </table> |
| </section> |
| |
| |
| <section> |
| <h3 id="inputs">Inputs</h3> |
| <table class="table table-sm table-bordered"> |
| <tbody> |
| <tr> |
| <td class="col-md-4"> |
| <a name="obj"></a> |
| <b>obj</b> |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-2" colspan="2"> |
| <div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/app/shared/key-value-pairs/key-value-pairs.component.ts:30</a></div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </section> |
| |
| |
| |
| |
| <section> |
| |
| <h3 id="inputs"> |
| Properties |
| </h3> |
| <table class="table table-sm table-bordered"> |
| <tbody> |
| <tr> |
| <td class="col-md-4"> |
| <a name="getProp"></a> |
| <span class="name"> |
| <span ><b>getProp</b></span> |
| <a href="#getProp"><span class="icon ion-ios-link"></span></a> |
| </span> |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <i>Default value : </i><code>_.get</code> |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/app/shared/key-value-pairs/key-value-pairs.component.ts:25</a></div> |
| </td> |
| </tr> |
| |
| |
| </tbody> |
| </table> |
| <table class="table table-sm table-bordered"> |
| <tbody> |
| <tr> |
| <td class="col-md-4"> |
| <a name="pairs"></a> |
| <span class="name"> |
| <span ><b>pairs</b></span> |
| <a href="#pairs"><span class="icon ion-ios-link"></span></a> |
| </span> |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <i>Type : </i> <code><a href="../directives/KeyValuePairDirective.html" target="_self" >QueryList<KeyValuePairDirective></a></code> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <b>Decorators : </b> |
| <br /> |
| <code> |
| @ContentChildren(KeyValuePairDirective)<br /> |
| </code> |
| </td> |
| </tr> |
| <tr> |
| <td class="col-md-4"> |
| <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/app/shared/key-value-pairs/key-value-pairs.component.ts:28</a></div> |
| </td> |
| </tr> |
| |
| |
| </tbody> |
| </table> |
| </section> |
| |
| </div> |
| |
| |
| <div class="tab-pane fade tab-source-code" id="c-source"> |
| <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { |
| Component, |
| ContentChildren, |
| Directive, |
| Input, |
| QueryList, |
| } from '@angular/core'; |
| |
| import * as _ from 'lodash'; |
| |
| // good doc: https://angular.io/docs/ts/latest/api/core/index/ContentChildren-decorator.html |
| |
| @Directive({ selector: 'hi-key-value-pair' }) |
| export class KeyValuePairDirective { |
| @Input() name: string; |
| @Input() prop: string; |
| } |
| |
| @Component({ |
| selector: 'hi-key-value-pairs', |
| templateUrl: './key-value-pairs.component.html', |
| styleUrls: ['./key-value-pairs.component.scss'], |
| }) |
| export class KeyValuePairsComponent { |
| getProp = _.get; |
| |
| @ContentChildren(KeyValuePairDirective) |
| pairs: QueryList<KeyValuePairDirective>; |
| |
| @Input() obj: any; |
| } |
| </code></pre> |
| </div> |
| |
| <div class="tab-pane fade " id="c-templateData"> |
| <pre class="line-numbers"><code class="language-html"><!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you 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. |
| --> |
| |
| <section class="groups" fxLayout="row"> |
| <section class="column" *ngFor="let pair of pairs"> |
| <div class="name">{{ pair.name }}</div> |
| <div class="value" *ngIf="obj != null && getProp(obj, pair.prop) != null"> |
| {{ getProp(obj, pair.prop) }} |
| </div> |
| <div class="value" *ngIf="obj == null || getProp(obj, pair.prop) == null"> |
| N/A |
| </div> |
| </section> |
| </section> |
| </code></pre> |
| </div> |
| |
| <div class="tab-pane fade " id="c-styleData"> |
| <p class="comment"> |
| <code>./key-value-pairs.component.scss</code> |
| </p> |
| <pre class="line-numbers"><code class="language-scss">.groups { |
| font-size: 14px; |
| line-height: 14px; |
| |
| .column { |
| padding-left: 40px; |
| } |
| |
| .name { |
| font-size: 12px; |
| line-height: 12px; |
| color: rgba(0, 0, 0, 0.54); |
| } |
| } |
| </code></pre> |
| </div> |
| |
| <div class="tab-pane fade " id="c-tree"> |
| <div id="tree-container"></div> |
| <div class="tree-legend"> |
| <div class="title"> |
| <b>Legend</b> |
| </div> |
| <div> |
| <div class="color htmlelement"></div><span>Html element</span> |
| </div> |
| <div> |
| <div class="color component"></div><span>Component</span> |
| </div> |
| <div> |
| <div class="color directive"></div><span>Html element with directive</span> |
| </div> |
| </div> |
| </div> |
| |
| |
| </div> |
| |
| <script src="../js/libs/vis.min.js"></script> |
| <script src="../js/libs/htmlparser.js"></script> |
| <script src="../js/libs/deep-iterator.js"></script> |
| <script> |
| var COMPONENT_TEMPLATE = '<div><!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you 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. --><section class="groups" fxLayout="row"> <section class="column" *ngFor="let pair of pairs"> <div class="name">{{ pair.name }}</div> <div class="value" *ngIf="obj != null && getProp(obj, pair.prop) != null"> {{ getProp(obj, pair.prop) }} </div> <div class="value" *ngIf="obj == null || getProp(obj, pair.prop) == null"> N/A </div> </section></section></div>' |
| var COMPONENTS = [{'name': 'AlertDialogComponent', 'selector': 'hi-alert-dialog'},{'name': 'AppComponent', 'selector': 'hi-root'},{'name': 'ClusterComponent', 'selector': 'hi-cluster'},{'name': 'ClusterDetailComponent', 'selector': 'hi-cluster-detail'},{'name': 'ClusterListComponent', 'selector': 'hi-cluster-list'},{'name': 'ConfigDetailComponent', 'selector': 'hi-config-detail'},{'name': 'ConfirmDialogComponent', 'selector': 'hi-confirm-dialog'},{'name': 'ConfirmDialogTestComponent', 'selector': 'hi-confirm-dialog-test'},{'name': 'ControllerDetailComponent', 'selector': 'hi-controller-detail'},{'name': 'DashboardComponent', 'selector': 'hi-dashboard'},{'name': 'DataTableComponent', 'selector': 'hi-data-table'},{'name': 'DetailHeaderComponent', 'selector': 'hi-detail-header'},{'name': 'DisabledLabelComponent', 'selector': 'hi-disabled-label'},{'name': 'HelixListComponent', 'selector': 'hi-helix-list'},{'name': 'HistoryListComponent', 'selector': 'hi-history-list'},{'name': 'InputDialogComponent', 'selector': 'hi-input-dialog'},{'name': 'InputInlineComponent', 'selector': 'hi-input-inline'},{'name': 'InstanceDetailComponent', 'selector': 'hi-instance-detail'},{'name': 'InstanceListComponent', 'selector': 'hi-instance-list'},{'name': 'JobDetailComponent', 'selector': 'hi-job-detail'},{'name': 'JobListComponent', 'selector': 'hi-job-list'},{'name': 'JsonViewerComponent', 'selector': 'hi-json-viewer'},{'name': 'KeyValuePairsComponent', 'selector': 'hi-key-value-pairs'},{'name': 'NodeViewerComponent', 'selector': 'hi-node-viewer'},{'name': 'PartitionDetailComponent', 'selector': 'hi-partition-detail'},{'name': 'PartitionListComponent', 'selector': 'hi-partition-list'},{'name': 'ResourceDetailComponent', 'selector': 'hi-resource-detail'},{'name': 'ResourceDetailForInstanceComponent', 'selector': 'hi-resource-detail-for-instance'},{'name': 'ResourceListComponent', 'selector': 'hi-resource-list'},{'name': 'ResourceNodeViewerComponent', 'selector': 'hi-resource-node-viewer'},{'name': 'StateLabelComponent', 'selector': 'hi-state-label'},{'name': 'WorkflowDagComponent', 'selector': 'hi-workflow-dag'},{'name': 'WorkflowDetailComponent', 'selector': 'hi-workflow-detail'},{'name': 'WorkflowListComponent', 'selector': 'hi-workflow-list'}]; |
| var DIRECTIVES = [{'name': 'KeyValuePairDirective', 'selector': 'hi-key-value-pair'}]; |
| var ACTUAL_COMPONENT = {'name': 'KeyValuePairsComponent'}; |
| </script> |
| <script src="../js/tree.js"></script> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| </div><div class="search-results"> |
| <div class="has-results"> |
| <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> |
| <ul class="search-results-list"></ul> |
| </div> |
| <div class="no-results"> |
| <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> |
| </div> |
| </div> |
| </div> |
| <!-- END CONTENT --> |
| </div> |
| </div> |
| |
| <label class="dark-mode-switch"> |
| <input type="checkbox"> |
| <span class="slider"> |
| <svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg"> |
| <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path> |
| </svg> |
| </span> |
| </label> |
| |
| <script> |
| var COMPODOC_CURRENT_PAGE_DEPTH = 1; |
| var COMPODOC_CURRENT_PAGE_CONTEXT = 'component'; |
| var COMPODOC_CURRENT_PAGE_URL = 'KeyValuePairsComponent.html'; |
| var MAX_SEARCH_RESULTS = 15; |
| </script> |
| |
| <script src="../js/libs/custom-elements.min.js"></script> |
| <script src="../js/libs/lit-html.js"></script> |
| |
| <script src="../js/menu-wc.js" defer></script> |
| <script nomodule src="../js/menu-wc_es5.js" defer></script> |
| |
| <script src="../js/libs/bootstrap-native.js"></script> |
| |
| <script src="../js/libs/es6-shim.min.js"></script> |
| <script src="../js/libs/EventDispatcher.js"></script> |
| <script src="../js/libs/promise.min.js"></script> |
| <script src="../js/libs/zepto.min.js"></script> |
| |
| <script src="../js/compodoc.js"></script> |
| |
| <script src="../js/tabs.js"></script> |
| <script src="../js/menu.js"></script> |
| <script src="../js/libs/clipboard.min.js"></script> |
| <script src="../js/libs/prism.js"></script> |
| <script src="../js/sourceCode.js"></script> |
| <script src="../js/search/search.js"></script> |
| <script src="../js/search/lunr.min.js"></script> |
| <script src="../js/search/search-lunr.js"></script> |
| <script src="../js/search/search_index.js"></script> |
| <script src="../js/lazy-load-graphs.js"></script> |
| |
| |
| </body> |
| </html> |