0.0.16 • Published 9 months ago

@claudebernard/side-effects-element v0.0.16

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

\ element

An element providing some custom stuff.

Installation

npm install --save @claudebernard/my-custom-element

Usage

Script

Import as ES modules:

import '@claudebernard/my-custom-element';

With a script tag:

<script type="module" src="node_modules/@claudebernard/my-custom-element/dist/my-custom.js"></script>

HTML

<bcb-my-custom apiurl="https://api.claudebernard.fr"></bcb-my-custom>

Attributes

NameTypeDefaultDescription
apiurlURLhttps://api.claudebernard.frAPI base URL to call to do some stuff
langStringfr-FRUI display locale. Available : - French (France) : fr-FR - English: en

Events

NameTypeFormatDescription
new-cat-factCatFactEvent{ fact: { fact: string, length: int } }User got a fact about cats

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Custom element checklist

  • Public documentation (docs portal)
  • Functional on Angular, React, Vue
  • Unit tested
  • Code quality
  • Changelog with semantic release
  • Available in offline mode
  • Best practices compliant
  • Validated by QA
  • Publicly available
  • Based on FHIR
  • Example on storybook
  • Available demo
  • i18n
  • Browser support section
  • EOL section

License

Copyright of Cegedim. See LICENSE for details.

0.0.13

9 months ago

0.0.14

9 months ago

0.0.15

9 months ago

0.0.16

9 months ago

0.0.12

10 months ago

0.0.11

11 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago