Jump to content

Adding Javascript to widget

Featured Replies

Posted

Ihave a widget that uses javascript as part of an app.

When I embed the widget on a module from my app I get the JS I included from the app.

How can I include JS to the widget on different pages in the suite?

 

\IPS\Output::i()->jsFiles = array_merge(\IPS\Output::i()->jsFiles, \IPS\Output::i()->js('location_section.js', 'app'));

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.