diff options
author | ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com> | 2020-02-13 12:09:13 +0200 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2020-02-13 20:24:36 +0000 |
commit | 0a907ab983596975d1d03507adf2b23a1ec26975 (patch) | |
tree | 75f5e85ce6e605c0308af326425e789bac6a6811 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab | |
parent | e7e6a525ed0371bf4c3b67ec6221c823b6f9617f (diff) |
updating source-editor changes
Issue-ID: CCSDK-2070
Signed-off-by: ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I203f89eb81ea9685ca69226b108c121a8be5f193
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab')
2 files changed, 12 insertions, 4 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.html index dde21297a..6fb1dcfd8 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.html @@ -1 +1,5 @@ -<ace-editor [(text)]="dslDefinition.content" [mode]="lang" #editor style="height:150px;"></ace-editor> +<ace-editor [(text)]="dslDefinition.content" [mode]="'javascript'" [autoUpdateContent]="true" + [durationBeforeCallback]="1000" [theme]="'tomorrow_night_bright'" #editor style="height:300px;"> +</ace-editor> + +<!-- <app-source-editor [lang]="'javascript'" (textChanged)="textChanged($event)" [(text)]="dslDefinition.content"></app-source-editor> -->
\ No newline at end of file diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts index 032ba0b7f..7171e730e 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts @@ -1,6 +1,6 @@ -import {Component, OnInit} from '@angular/core'; -import {DslDefinition} from '../mapping-models/CBAPacakge.model'; -import {PackageCreationStore} from '../package-creation.store'; +import { Component, OnInit } from '@angular/core'; +import { DslDefinition } from '../mapping-models/CBAPacakge.model'; +import { PackageCreationStore } from '../package-creation.store'; @Component({ selector: 'app-dsl-definitions-tab', @@ -19,4 +19,8 @@ export class DslDefinitionsTabComponent implements OnInit { this.packageCreationStore.changeDslDefinition(this.dslDefinition); } + + textChanged(event) { + console.log('event changed'); + } } |