You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the JavaScript code in Dev UI is written using Lit, so look for the available operations in the Lit documentation. For instance, for each cycle can be done like this:
384
+
385
+
[source,javascript]
386
+
----
387
+
render() {
388
+
return html`
389
+
<ul>
390
+
${this.colors.map((color) =>
391
+
html`<li style="color: ${color}">${color}</li>`
392
+
)}
393
+
</ul>
394
+
`;
395
+
}
396
+
----
397
+
383
398
===== Basic structure of a Web component page
384
399
385
400
A Web component page is just a JavaScript Class that creates a new HTML Element:
In certain cases you might need to execute methods and/or get data against the deployment classpath. This also happens over JsonRPC communication, but in this case you do not create a JsonRPC Service in the runtime module,
0 commit comments