CodeEditor Class

Creates a textarea and pre-code overlap, with PrismJS, to allow the user to edit code.

Definition

Namespace: MobileTrack.Web.Components.Components
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public sealed class CodeEditor : ComponentBase, 
	IDisposable
Inheritance
Object    ComponentBase    CodeEditor
Implements
IDisposable

Constructors

CodeEditorInitializes a new instance of the CodeEditor class

Properties

Content Content for the editor.
ContentChanged Triggered when the content changes.
JsRuntime Dependency injected JS runtime interop

Methods

Dispose Disposes of the object reference.
HandleInputChange Invoked by the browser when the user changes the code.
SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

See Also