1 import { Component, Input, OnChanges, TemplateRef, ViewChild } from '@angular/core';
3 import { CdTableSelection } from '../../../shared/models/cd-table-selection';
4 import { RbdFormModel } from '../rbd-form/rbd-form.model';
7 selector: 'cd-rbd-details',
8 templateUrl: './rbd-details.component.html',
9 styleUrls: ['./rbd-details.component.scss']
11 export class RbdDetailsComponent implements OnChanges {
13 selection: CdTableSelection;
14 selectedItem: RbdFormModel;
17 @ViewChild('poolConfigurationSourceTpl', { static: true })
18 poolConfigurationSourceTpl: TemplateRef<any>;
23 if (this.selection.hasSelection) {
24 this.selectedItem = this.selection.first();