File

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

Description

Renders the menu options for each config menu

alt-text

Implements

OnInit

Example

<tc-tibco-cloud-setting-menu-entry></tc-tibco-cloud-setting-menu-entry>

Metadata

selector tc-tibco-cloud-setting-menu-entry
styleUrls ./tibco-cloud-setting-menu-entry.component.css
templateUrl ./tibco-cloud-setting-menu-entry.component.html

Index

Methods
Inputs
Outputs

Constructor

constructor()

Inputs

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

Outputs

configureOption
Type : EventEmitter<string>

~event configureOption : Option Clicked ~payload string : emits Id of option selected in config main page (options)

Methods

ngOnInit
ngOnInit()
Returns : void
viewButtonClick
viewButtonClick(id)
Parameters :
Name Optional
id No
Returns : void
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';


/**
 * Renders the menu options for each config menu
 *
 * ![alt-text](../tibco-cloud-setting-menu-entry.png "Image")
 *
 *@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;
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""