File

src/smart-developer-tools/abl-dojo/abl-dojo-input/abl-editor/abl-editor.component.ts

Implements

OnInit AfterViewInit

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(developerToolsService: SmartDeveloperToolsService)
Parameters :
Name Type Optional
developerToolsService SmartDeveloperToolsService No

Inputs

ablSource
Type : any

Outputs

ctrlXPressed
Type : EventEmitter

Methods

Public getEditorValue
getEditorValue()
Returns : string
Public resize
resize()
Returns : void
writeValue
writeValue(str: string)
Parameters :
Name Type Optional
str string No
Returns : void

Properties

openedgeOptions
Type : any

Accessors

ablSource
getablSource()
setablSource(value: any)
Parameters :
Name Type Optional
value any No
Returns : void
codeEditor
getcodeEditor()
setcodeEditor(editor: CodemirrorComponent)
Parameters :
Name Type Optional
editor CodemirrorComponent No
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;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""