|
|
## Helpers fonctions
|
|
|
|
|
|
| Function | Parameters | Description |
|
|
|
| -------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
|
| `uniqID` | | create an uniq ID, used for example to associate input with label |
|
|
|
| `stringToDom` | `html` | parse html string and return DOM fragment |
|
|
|
| `evalTemplateString` | `str, variables = {}` | eval a string as an es6 template string. example: `evalTemplateString('name: ${first} ${last}', {first: 'John', last: 'Doe'})` |
|
|
|
| `importCSS` | `[...stylesheets]` | add style in document if not present | |
|
|
\ No newline at end of file |