src/smart-developer-tools/abl-dojo/abl-dojo-input/abl-editor/abl-editor.component.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | abl-editor-codemirror |
| styleUrls | ./abl-editor-codemirror.component.css |
| templateUrl | ./abl-editor-codemirror.component.html |
Properties |
Methods |
|
Inputs |
Outputs |
Accessors |
constructor(developerToolsService: SmartDeveloperToolsService)
|
||||||
|
Parameters :
|
| ablSource |
Type : any
|
| ctrlXPressed |
Type : EventEmitter
|
| Public getEditorValue |
getEditorValue()
|
|
Returns :
string
|
| Public resize |
resize()
|
|
Returns :
void
|
| writeValue | ||||||
writeValue(str: string)
|
||||||
|
Parameters :
Returns :
void
|
| openedgeOptions |
Type : any
|
| ablSource | ||||||
getablSource()
|
||||||
setablSource(value: any)
|
||||||
|
Parameters :
Returns :
void
|
| codeEditor | ||||||
getcodeEditor()
|
||||||
setcodeEditor(editor: CodemirrorComponent)
|
||||||
|
Parameters :
Returns :
void
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : abl-editor-codemirror.component.html
Purpose : Template for abl editor codemirror.
Author(s) : Oana Sucigan
Created : Nov 03, 2023
--------------------------------------------------------------------------
-->
<ngx-codemirror
#editor
[options]="openedgeOptions"
[autoFocus]="true"
></ngx-codemirror>
<kendo-resize-sensor (resize)="resize()"></kendo-resize-sensor>
./abl-editor-codemirror.component.css
/**********************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**********************************************************************/
/*------------------------------------------------------------------------
File : abl-editor-codemirror.component.css
Purpose : Styles for abl editor codemirror.
Author(s) : Radu Nicoara
Created : Sep 26, 2018
----------------------------------------------------------------------*/
::ng-deep span.cm-comment {
color: #969696 !important;
}
::ng-deep span.cm-string {
color: #ad2222 !important;
}
::ng-deep span.cm-number {
color: #39a639 !important;
}
::ng-deep span.cm-atom {
color: #39a639 !important;
}
::ng-deep span.cm-variable {
color: #000000 !important;
}
::ng-deep span.cm-keyword {
color: #2264aa !important;
}
::ng-deep ngx-codemirror {
height: 100% !important;
display: block;
overflow: auto;
}
::ng-deep .CodeMirror {
height: 100%;
}
::ng-deep .CodeMirror-scroll {
overflow-x: auto !important;
}
::ng-deep .CodeMirror-hscrollbar {
overflow-x: auto !important;
}