@delon/form
Version:
Angular form generation based on JSON-Schema.
19 lines (18 loc) • 610 B
TypeScript
import type { NuMonacoEditorEvent, NuMonacoEditorModel } from '@ng-util/monaco-editor';
import type { SFUISchemaItem } from '@delon/form';
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
export interface MonacoEditorWidgetSchema extends SFUISchemaItem {
options?: NzSafeAny;
delay?: number;
change?: (value: string) => void;
model?: NuMonacoEditorModel;
/**
* Height of monaco editor, default: `200px`
*/
height?: string;
/**
* Whether to automatically format the document
*/
autoFormat?: boolean;
event?: (ev: NuMonacoEditorEvent) => void;
}