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+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class CodeEditor : ComponentBase, 
	IDisposable
Inheritance
Object    ComponentBase    CodeEditor
Implements
IDisposable

Constructors

CodeEditorInitializes a new instance of the CodeEditor class

Properties

CodeLanguage Coding language we're currently working in.
Content Content for the editor.
ContentChanged Triggered when the content changes.
JsRuntime Dependency injected JS runtime interop
OnInput OnInput event handler, invoked when the user writes code.

Methods

Dispose Disposes of the object reference.
OnCodeEdited Invoked when the user enters code in the textarea.
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