renderTo method
Renders this component on an element with ID parentId
.
You can override this method for example to add animations and other things. Just make sure to call
super.renderTo to really render the component to the DOM.
Will throw ComponentNoParentException if parentId
cannot be found in the DOM.
Implementation
@nonVirtual
Future<void> renderTo(Element parentNode) async {
var parent = parentNode;
await preRender();
parent.innerHTML = ''.toJS;
parent.appendChild(baseInnerElement!);
await postRender();
}