angular-xml-editor
Version:
XML editor component for Angular
27 lines (26 loc) • 1.2 kB
TypeScript
import { AfterViewInit, OnChanges, OnDestroy } from '@angular/core';
import { XmlRuleElement } from '../../code/xml-rules-check/xmlRuleElement.class';
import { XmlCursorPos } from '../../code/cursor/xmlCursorPos.class';
import { AngularXmlEditorService } from '../../angular-xml-editor.service';
import { Subscription } from 'rxjs';
import { XmlEditorConfig } from '../../code/xmlEditorConfig';
export declare class XmlEditorToolbarComponent implements AfterViewInit, OnChanges, OnDestroy {
private editorService;
private editorContext;
readonly config: XmlEditorConfig;
editorContextId: string;
elementGroups: ToolbarElementGroup[];
actualCursorPosChangedSubscription: Subscription;
/** inserts an element at the actual cursor pos */
insertElement(element: XmlRuleElement): void;
constructor(editorService: AngularXmlEditorService);
ngAfterViewInit(): void;
ngOnChanges(): void;
ngOnDestroy(): void;
GetElementGroupsForCursorPos(pos: XmlCursorPos): ToolbarElementGroup[];
GetAllElementGroups(): ToolbarElementGroup[];
}
export interface ToolbarElementGroup {
title: string;
elements: XmlRuleElement[];
}