Wyrzucenie init z konstruktora
This commit is contained in:
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user