@cehlers88/ceutils

utilities

Usage no npm install needed!

<script type="module">
  import cehlers88Ceutils from 'https://cdn.skypack.dev/@cehlers88/ceutils';
</script>

README

!Work in progress!

CEUTILS

ComponentStarter

Register service

service.js

import ComponentBaseService from "./ComponentBaseService";
export default class MyService extends ComponentBaseService {
...
    getName() {
        return "MyService";
    }
...
}

app.js

import ComponentStarter from "./src/service/ComponentStarter";
import MyService from "./service"

const componentStarter = new ComponentStarter();
componentStarter.registerComponent(MyService);

Start React-Component

import ComponentStarter from "./src/service/ComponentStarter";
const test = new ComponentStarter();
test.registerComponent()
...
    <script >
    
    </script>
...

Eventhandler

- addListener
- dispatch
- setErrorHandler
- on

Interfaces

  • IDataEntry
    • key:string
    • value:any