Wyrzucenie init z konstruktora

This commit is contained in:
2026-01-15 08:50:19 +01:00
parent 75d64885b0
commit 5750163db7
2 changed files with 3 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ Warto gdzieś później zapisać nową nazwę klasy np w opisie komponentu, albo
### Przykłady UŻYCIA ###
##### Jedna ramka - obiekt ######
```
new IdmHotspot({
const hotspot = new IdmHotspot({
id: "idmTestHotspot1",
title: "tescik",
placement: {
@@ -78,6 +78,8 @@ new IdmHotspot({
callbackFn: (hotspot)=>{console.log(hotspot)},
}
});
hotspot.init();
```