EditorRenderSource class
Content source part of a SkawaEditor Component. It works in tandem with EditorRenderTarget directive.
Properties:
value: String
-- sets or gets the value of the editor element
Events:
update: String
-- emitted when value is changed (onInput), at most once every 500ms
Methods:
revertAllUpdates(): void
-- revert all updates since directiv e was createdrevertLastUpdate(): void
-- revert last update
Example:
<input editorRenderSource value="someInitialValue" >
- Annotations
-
- @Directive(selector: '[editorRenderSource]', exportAs: 'editorRenderSource')
Constructors
- EditorRenderSource(HtmlElement _htmlElement, @Optional() Duration updateDelay)
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- initialValue ↔ String
-
@Input()read / write
-
onUpdated
↔ Stream<
String> -
@Output('update')read / write
- previousValue → String
-
Gets the previous or initial value
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- value ↔ String
-
Sets the value of editor
read / write
Methods
-
contentChanged(
Event ev) → void -
@HostListener('input')
-
ngAfterViewInit(
) → void -
override
-
ngOnDestroy(
) → void -
Executed before the directive is removed from the DOM and destroyed.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
revertAllUpdates(
) → void -
revertLastUpdate(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited