0.0.16 • Published 12 months ago

@claudebernard/side-effects-element v0.0.16

Weekly downloads
-
License
-
Repository
-
Last release
12 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

12 months ago

0.0.14

12 months ago

0.0.15

12 months ago

0.0.16

12 months ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago