DOMReplace
Direct Subclass:
Indirect Subclass:
DOM replacer that is mainly intended for DOM replace where some other components may need to know about the change to the DOM.
All the methods send out a signal via SignalHandlerSingleton when they make changes to the DOM.
Constructor Summary
Public Constructor | ||
public |
constructor(elementId: string) |
Member Summary
Public Members | ||
public |
The DOM element. |
|
public |
The element DOM ID. |
Method Summary
Public Methods | ||
public |
appendInnerHtml(htmlString: string) Append innerHTML to the element. |
|
public |
prependInnerHtml(htmlString: string) Prepend innerHTML to the element. |
|
public |
replaceInnerHtml(htmlString: string) Replace innerHTML of the element. |
Public Constructors
Public Members
Public Methods
public appendInnerHtml(htmlString: string) source
Append innerHTML to the element.
Sends a signal named ievv_jsbase.DOMReplace.appendInnerHtml
when the append is done. The signal is send with this object
as the data.
Params:
Name | Type | Attribute | Description |
htmlString | string | The HTML to append to the innerHTML of the element. |
public prependInnerHtml(htmlString: string) source
Prepend innerHTML to the element.
Sends a signal named ievv_jsbase.DOMReplace.prependInnerHtml
when the prepend is done. The signal is send with this object
as the data.
Params:
Name | Type | Attribute | Description |
htmlString | string | The HTML to prepend to the innerHTML of the element. |
public replaceInnerHtml(htmlString: string) source
Replace innerHTML of the element.
Sends a signal named ievv_jsbase.DOMReplace.replaceInnerHtml
when the replace is done. The signal is send with this object
as the data.
Params:
Name | Type | Attribute | Description |
htmlString | string | The HTML to set as innerHTML of the element. |