From f93a1f6c6daef09948cc7c0cd2cc4ef030b68957 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 20 Feb 2019 20:28:22 +0530 Subject: Editor component Added editor component to modify module Issue-ID: CCSDK-975 Change-Id: Iee1f9f54e78af199f8e0d6b5133f7a278b900cf9 Signed-off-by: Arundathi Patil --- .../modify-template/modify-template.component.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts index a02bb97fa..1efdefce6 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts @@ -28,9 +28,29 @@ import { Component, OnInit } from '@angular/core'; }) export class ModifyTemplateComponent implements OnInit { + designerMode: boolean = true; + editorMode: boolean = false; + viewText: string = "Editor View"; + constructor() { } ngOnInit() { } + viewNodeDetails(nodeTemplate) { + console.log(nodeTemplate); + } + + changeView() { + if(this.viewText == 'Editor View') { + this.editorMode = true; + this.designerMode = false; + this.viewText = 'Designer View' + } else { + this.editorMode = false; + this.designerMode = true; + this.viewText = 'Editor View' + } + } + } -- cgit 1.2.3-korg