pixelandtonic / garnishjs

UI toolkit by Pixel & Tonic
MIT License
39 stars 5 forks source link

How call/listen onAfterAction from BaseElementIndex #5

Closed andrelopez closed 6 years ago

andrelopez commented 6 years ago

Hi folks!

I'm trying to call/listen onAfterAction from my class that extends Garnish.Base.extend({ ...

If that possible? I just need to call: Craft.elementIndex.updateElements(); after an custom element action is finished.

Thanks in advance.

FYI: Craft3 environment

andrelopez commented 6 years ago

I have solved the issue listening the afterAction function

Craft.elementIndex.on('afterAction', this.manageAfter);

brandonkelly commented 6 years ago

Glad you figured it out!