C:/GoDev/src/TCSTK-Angular/projects/tibco-tcstk/tc-core-lib/src/lib/components/tibco-cloud-setting-menu-entry/tibco-cloud-setting-menu-entry.component.ts
Renders the menu options for each config menu
<tc-tibco-cloud-setting-menu-entry></tc-tibco-cloud-setting-menu-entry>
selector | tc-tibco-cloud-setting-menu-entry |
styleUrls | ./tibco-cloud-setting-menu-entry.component.css |
templateUrl | ./tibco-cloud-setting-menu-entry.component.html |
Methods |
Inputs |
Outputs |
constructor()
|
icon | |
Type : string
|
|
icon name (svg key - needs to be registered) |
options | |
Type : string[]
|
|
RenderedFormComponent: (options from third party API). TibcoCloudSettingMenuEntryComponent -Check with MC - not sure we need to document this. |
title | |
Type : string
|
|
page title comes from config resolver |
configureOption | |
Type : EventEmitter<string>
|
|
~event configureOption : Option Clicked ~payload string : emits Id of option selected in config main page (options) |
ngOnInit |
ngOnInit()
|
Returns :
void
|
viewButtonClick | ||||
viewButtonClick(id)
|
||||
Parameters :
Returns :
void
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
/**
* Renders the menu options for each config menu
*
* 
*
*@example <tc-tibco-cloud-setting-menu-entry></tc-tibco-cloud-setting-menu-entry>
*/
@Component({
selector: 'tc-tibco-cloud-setting-menu-entry',
templateUrl: './tibco-cloud-setting-menu-entry.component.html',
styleUrls: ['./tibco-cloud-setting-menu-entry.component.css']
})
export class TibcoCloudSettingMenuEntryComponent implements OnInit {
/**
* icon name (svg key - needs to be registered)
*/
@Input() icon: string;
/**
* page title comes from config resolver
*/
@Input() title: string;
/**
* RenderedFormComponent: (options from third party API). TibcoCloudSettingMenuEntryComponent -Check with MC - not sure we need to document this.
*/
@Input() options: string[];
/**
* ~event configureOption : Option Clicked
* ~payload string : emits Id of option selected in config main page (options)
*/
@Output() configureOption: EventEmitter<string> = new EventEmitter<string>();
constructor() { }
viewButtonClick(id) {
this.configureOption.emit(id);
}
ngOnInit() {
}
}
<div fxLayout="row" fxLayoutAlign="start start">
<div class="padding-icon">
<mat-icon svgIcon="{{icon}}"></mat-icon>
</div>
<div fxLayout="column" fxLayoutAlign="start start">
<div class="underlying-capability-text">{{title}}</div>
<div class="starters-custom-layout-box-option" *ngFor="let option of options" (click)="viewButtonClick(title + ' ' + option)">
<span class="underlying-capability-link">{{option}}</span>
</div>
</div>
</div>
./tibco-cloud-setting-menu-entry.component.css
.starters-custom-layout-box-option:hover {
cursor: pointer;
}
.underlying-capability-text {
font-size: 14px;
font-weight: 600;
font-style: normal;
font-stretch: normal;
line-height: normal;
letter-spacing: 0.3px;
color: #062e79;
}
.underlying-capability-link {
font-size: 12px;
font-weight: normal;
font-style: normal;
font-stretch: normal;
line-height: normal;
letter-spacing: 0.3px;
color: #0081cb;
padding-bottom: 20px;
}
:host ::ng-deep .padding-icon{
padding-right: 15px;
}