@lwc/engine-dom
Renders LWC components in a DOM environment.
Last updated 10 days ago by diervo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lwc/engine-dom 
SYNC missed versions from official npm registry.

@lwc/engine-dom

This package can be used to render LWC components as DOM elements in a DOM environment.

Supported APIs

This package supports the following APIs.

createElement()

This function creates an LWC component, given a tag name and an LWC constructor.

import { createElement } from 'lwc';
import LightningHello from 'lightning/hello';

const element = createElement('lightning-hello', { is: LightningHello });

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 LWC template.

Deprecated APIs

buildCustomElementConstructor() (deprecated as of v1.3.11)

This function can build a Web Component class that can be registered as a new element via customElements.define(), given an LWC constructor.

Deprecated in favor of using the CustomElementConstructor property of an LWC constructor.

import { LightningElement } from 'lwc';

class LightningHello extends LightningElement {}

// Don't do this.
customElements.define('lightning-hello', buildCustomElementConstructor(LightningHello));

// Do this instead.
customElements.define('lightning-hello', LightningHello.CustomElementConstructor);

Current Tags

  • 1.7.15-alpha3                                ...           canary (a month ago)
  • 1.8.6                                ...           latest (10 days ago)
  • 1.8.6-alpha.0                                ...           next (10 days ago)
  • 1.7.10-228.5                                ...           winter21 (a month ago)

41 Versions

  • 1.8.6-alpha.0                                ...           10 days ago
  • 1.8.6                                ...           10 days ago
  • 1.8.5                                ...           13 days ago
  • 1.8.4                                ...           21 days ago
  • 1.7.10-228.5                                ...           a month ago
  • 1.7.10-228.4                                ...           a month ago
  • 1.8.3                                ...           a month ago
  • 1.7.10-228.3                                ...           a month ago
  • 1.7.10-228.2                                ...           a month ago
  • 1.8.2                                ...           a month ago
  • 1.8.1                                ...           a month ago
  • 1.8.0                                ...           a month ago
  • 1.7.15-alpha3                                ...           a month ago
  • 1.7.15-alpha2                                ...           a month ago
  • 1.7.15-alpha1                                ...           a month ago
  • 1.7.14-alpha4                                ...           2 months ago
  • 1.7.14-alpha3                                ...           2 months ago
  • 1.7.14-alpha2                                ...           2 months ago
  • 1.7.14                                ...           2 months ago
  • 1.7.14-alpha1                                ...           2 months ago
  • 1.7.13                                ...           2 months ago
  • 1.7.13-alpha1                                ...           2 months ago
  • 1.7.12                                ...           2 months ago
  • 1.7.11                                ...           2 months ago
  • 1.7.11-locker-alpha1                                ...           2 months ago
  • 1.7.10-228.1                                ...           3 months ago
  • 1.7.10                                ...           3 months ago
  • 1.7.9                                ...           3 months ago
  • 1.7.9-alpha2                                ...           3 months ago
  • 1.7.9-alpha1                                ...           3 months ago
  • 1.7.8                                ...           3 months ago
  • 1.7.7                                ...           3 months ago
  • 1.7.6                                ...           3 months ago
  • 1.7.5                                ...           4 months ago
  • 1.7.5-alpha1                                ...           4 months ago
  • 1.7.4                                ...           4 months ago
  • 1.7.3-lockerpreview-alpha1                                ...           4 months ago
  • 1.7.3                                ...           4 months ago
  • 1.7.3-alpha4                                ...           4 months ago
  • 1.7.3-alpha1                                ...           4 months ago
  • 1.7.2                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 24
Last Day 0
Last Week 0
Last Month 160
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |