Jump to content

Edit History

Vexx00

Vexx00

I'm also looking for this.

 

However I could not even emit new events, because I don't know how to access the EventEmitter offered by prestashop directly.

 

I'm looking to instantiate Grid javascript functionalities from the global 'prestashop' object, which are only available after a while.

I'd need to instantiate Grid components after this event is triggered:
 

EventEmitter.on('PSComponentsInitiated', () => {
  [...]
})

 

but I need the EventEmitter js library in my code.

I wish I could access EventEmitter directly from prestashop like so:
 

window.prestashop.component.EventEmitter

 

but it's not possible, since the very same EventEmitter is loaded along with the other js components...

 

Bummer, I guess I'll need to load EventEmitter by my own..

Vexx00

Vexx00

I'm also looking for this.

 

However I could not even emit new events, because I don't know how to access the EventEmitter offered by prestashop directly.

 

I'm looking to instantiate Grid javascript functionalities from the global 'prestashop' object, which are only available after a while.

I'd need to instantiate Grid components after this event is triggered:
 

EventEmitter.on('PSComponentsInitiated', () => {
  [...]
})

 

but I need the EventEmitter js library in my code.

I wish I could access EventEmitter directly from prestashop like so:
 

window.prestashop.component.EventEmitter

 

but it's not possible, since the very same EventEmitter is loaded after a while.

 

Bummer, I'll need to load EventEmitter by my own..

Vexx00

Vexx00

I'm also looking for this.

 

However I could not even emit new events, because I don't know how to access the EventEmitter offered by prestashop directly.

 

I'm looking to instantiate Grid javascript functionalities from the global 'prestashop' object, which are only available after a while.

I could subscribe to this event:
 

EventEmitter.on('PSComponentsInitiated', () => {
  [...]
})

 

but I need the EventEmitter js library in my code.

I wish I could access EventEmitter directly from prestashop like so:
 

window.prestashop.component.EventEmitter

 

but it's not possible, since the very same EventEmitter is loaded after a while.

 

Bummer, I'll need to load EventEmitter by my own..

Vexx00

Vexx00

I'm also looking for this.

 

I'm looking to instantiate Grid javascript functionalities from the global 'prestashop' object, which are only available after a while.

I could subscribe to this event:
 

EventEmitter.on('PSComponentsInitiated', () => {
  [...]
})

 

but I need to EventEmitter js library in my code.

I wish I could access EventEmitter directly from prestashop like so:
 

window.prestashop.component.EventEmitter

 

but it's not possible, since the very same EventEmitter is loaded after a while.

 

Bummer, I'll need to load EventEmitter by my own..

Vexx00

Vexx00

I'm also looking for this, it's a shame it's not yet documented!

×
×
  • Create New...