A reference to the base (container) element of this widget.
A reference to the base (container) element of this widget.
The widget variable of this widget instance.
If it exists, calls the behavior with the given name.
Name of the behavior.
Additional arguments for the behavior.
Destroys this widget. Called by the PrimeFaces framework.
The HTML container element holding the editor. It exists even if the editor was not created yet.
The hidden textarea holding the value of the editor (eg. the code being edited, this is also the value that is sent when the form is submitted).
A reference to the base (container) element of this widget.
Gets the value of this editor. May be called as soon as this widget is accessible, even when the monaco editor was not loaded or initialized yet.
A promise with the current value of this editor.
Name of the behavior to check.
Whether any handlers are registered for the given behavior.
Initializes this widget. Called by the PrimeFaces framework.
Configuration as set on the server-side.
Invokes the given method on the monaco editor instance in the iframe, and returns the result. As the
communication with the iframes is done via postMessage
, the result is returned asynchronously.
A method of the monaco editor instance to invoke.
Arguments that are passed to the method.
A promise that resolves with the value returned by the given method.
Invokes the given script on the monaco editor instance in the iframe, and returns the result. As the
communication with the iframes is done via postMessage
, the result is returned asynchronously. Note that the
script if converted to a string, send to the framed editor and executed. Closing over variables in the lambda
is NOT supported. Explicitly specify those variables as the arguments, they will be passed to the iframe.
Arguments that are passed to the method.
A promise that resolves with the value returned by the given method.
Whether this widget is attached to the DOM currently.
true
when the editor was already loaded and initialized and can be interacted with via
getMonaco()
, false
otherwise.
Refreshes this widget with the given configuration.
New configuration for this widget.
Client ID of the script element to remove.
Sets the value of this editor. May be called as soon as this widget is accessible, even when monaco editor was not loaded or initialized yet. The value will be set on the editor once it becomes ready.
The new value to set.
A promise that resolves once the value was set.
A promise that is resolved once the editor has finished loading and was created successfully.
Generated using TypeDoc
The widget-specific configuration of this widget instance.