⚠️ migration du projet vers https://github.com/GIP-RECIA/recia-webcomponents/tree/main/packages/wisemapping
Wisemapping WebComponent
- Installation via npm :
npm install @gip-recia/wisemapping-webcomponent- Importation du composant :
Dans un module JavaScript :
import '@gip-recia/wisemapping-webcomponent';Dans une page HTML :
<script src="./path/to/wisemapping-webcomponent.min.js"></script>- Ajout du composant sur une page HTML :
const wisemappingEditor = document.createElement('wisemapping-editor');
document.body.appendChild(wisemappingEditor);| Nom | Type | Requis | Default | Description |
|---|---|---|---|---|
persistance-api-url |
string |
true |
URL du fichier (GET & PUT) | |
file-id |
string |
true |
Identifiant du fichier | |
token |
string |
token ou user-info-api-url | Token utilisateur | |
user-info-api-url |
string |
token ou user-info-api-url | URL des informations utilisateurs | |
mode |
viewonly | edition-owner | edition-editor | edition-viewer | showcase | edition-locked |
true |
Mode de rendu de l'éditeur |
<wisemapping-editor persistance-api-url="" file-id="" token="" user-info-api-url="" mode="" />