dasf-class custom web component

The dasf-class web component is a the framework agnostic alternative to the ClassContainer react component.

Example

An example implementation would be

<dasf-class
  websocket-url="ws://<someserver>/ws"
  topic="sometopic"
  class-name="SomeClass"
></dasf-module>
<script type="module" src="/node_modules/@dasf/dasf-messaging/dist/wc/dasf.js"></script>

Properties

For documentation on the properties, please have a look at the ClassContainerOptions interface. Note that the type of the property determines how the parameter of the custom web component is interpreted. Furthermore note that camel case (such as websocketUrl) will be converted to kebab case (i.e. websocket-url).