Whether focus on the editor after init.
Don't support change dynamically!
Event emitted when the editor has lost focus.
Event emitted when the editor's value changes.
Event emitted when a {{query:"..."}} composition token is clicked in SQL mode
Reference to the editor content container
Event emitted when focus on the editor.
An array of language descriptions for known language-data.
Don't support change dynamically!
If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.
OptionalrootEditorView's root.
Don't support change dynamically!
Toolbar configuration. Defaults to disabled. Set enabled: true to show the toolbar.
Event emitted when a toolbar button is clicked
OptionalviewThe instance of EditorView.
StaticɵdirStaticɵfacCustom extension factories that can be provided by the parent component. These functions will be called when initializing the editor to get the extensions.
Whether the editor is disabled.
It will be appended to the root extensions.
Whether highlight the whitespace.
Should be a string consisting either entirely of the same whitespace character.
Whether indent with Tab key.
The editor's language. You should set the languages prop at first.
Whether the editor wraps lines.
The editor's placeholder.
Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
Whether the editor is readonly.
Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified
Returns either the default RunReport provider or the one specified in the Provider property, if it was specified
Returns either the default RunView provider or the one specified in the Provider property, if it was specified
Get toolbar groups for rendering
The editor's value.
Check if a group is the last one (for separator logic)
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
The callback function to register
Registers a callback function that is called when the control's value changes in the UI.
This method is called by the forms API on initialization to update the form model when values propagate from the view to the model.
When implementing the registerOnChange method in your own value accessor,
save the given function so your class calls it at the appropriate time.
The following example stores the provided function as an internal method.
registerOnChange(fn: (_: any) => void): void {
this._onChange = fn;
}
When the value changes in the UI, call the registered function to allow the forms API to update itself:
host: {
'(change)': '_onChange($event.target.value)'
}
The callback function to register
Registers a callback function that is called by the forms API on initialization to update the form model on blur.
When implementing registerOnTouched in your own value accessor, save the given
function so your class calls it when the control should be considered
blurred or "touched".
The following example stores the provided function as an internal method.
registerOnTouched(fn: any): void {
this._onTouched = fn;
}
On blur (or equivalent), your class should call the registered function to allow the forms API to update itself:
host: {
'(blur)': '_onTouched()'
}
Sets editor's editable state.
Sets the root extensions of the editor.
Sets editor's highlightWhitespace.
Sets editor's indentUnit.
Sets editor' indentWithTab.
Sets editor's language dynamically.
Sets editor's lineWrapping.
Sets editor's placeholder.
Sets editor's readonly state.
Sets editor's value.
Base class for all Angular components in the MemberJunction system.