Constructor
new VirtualDOMView(container, controller)
Initialize a new virtual DOM view.
Parameters:
Name | Type | Description |
---|---|---|
container |
HTMLElement | The HTML element that will contain this preview area. |
controller |
module:Controller.Controller | The controller that manages the current editor. |
- Source:
Extends
- EventEmitter
Members
container :HTMLElement
The HTML element that will contain this preview area.
Type:
- HTMLElement
- Source:
controller :module:Controller.Controller
The controller that manages the current editor.
Type:
- Source:
state :object
Form field values that need to be set after rendering.
Type:
- object
- Source:
Methods
render() → {VNode}
Render this view as a virtual DOM tree.
- Source:
Returns:
- A virtual DOM tree for this view.
- Type
- VNode
repaint()
Repaint this view.
This will render the current view using the result of render
.
- Source:
Listens to Events:
- event:resize
- module:Controller.event:repaint