User Tools

Site Tools


lit-it-up

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
lit-it-up [2026/04/04 11:38] adminlit-it-up [2026/04/04 12:05] (current) admin
Line 47: Line 47:
  
 customElements.define('typo3-surfcamp', Typo3Surfcamp); customElements.define('typo3-surfcamp', Typo3Surfcamp);
 +</code>
 +
 +====== Load the WebComponent ======
 +
 +
 +Load a single component:
 +
 +<code php>
 +$this->pageRenderer->loadJavaScriptModule('@ochorocho/lit-demo/component/typo3-surfcamp.js');
 +</code>
 +
 +Load multiple components with a single entry point:
 +<code php>
 +$this->pageRenderer->loadJavaScriptModule('@ochorocho/lit-demo/app.js');
 </code> </code>
  
lit-it-up.txt · Last modified: by admin