@kdcloudjs/kwc-engine-dom
v1.0.1
Published
Renders KWC components in a DOM environment.
Maintainers
Keywords
Readme
@kdcloudjs/kwc-engine-dom
This package can be used to render KWC components as DOM elements in a DOM environment.
Supported APIs
This package supports the following APIs.
createElement()
This function creates an KWC component, given a tag name and an KWC constructor.
import { createElement } from '@kdcloudjs/kwc';
import KingdeeHello from 'kingdee/hello';
const element = createElement('kingdee-hello', { is: KingdeeHello });
document.body.appendChild(element);Experimental APIs
Experimental APIs are subject to change, may be removed at any time, and should be used at your own risk!
getComponentConstructor()
This experimental API provides access to the component constructor, given an HTMLElement.
isNodeFromTemplate()
This experimental API enables the detection of whether a node was rendered from an KWC template.
