Webpart with parameters

LabKey Support Forum (Inactive)
Webpart with parameters Ben Bimber  2015-11-18 16:39
Status: Closed
 
hi will,

yes, that's exactly what it's for. here's an example from one of our modules:

https://hedgehog.fhcrc.org/tor/stedi/trunk/externalModules/labModules/laboratory/resources/views/begin.webpart.xml

which sets up a handler from another JS file. note: if your handler depends on a JS file or something else, be sure to declare the ClientDependency on that JS file. this page calls a more complex dependency, but you can reference individual scripts too:

https://hedgehog.fhcrc.org/tor/stedi/trunk/externalModules/labModules/laboratory/resources/views/begin.view.xml

and example of the JS code that we call in LDK.Utils.customizeWebpartTitle is here:

https://hedgehog.fhcrc.org/tor/stedi/trunk/externalModules/labModules/LDK/resources/web/LDK/Utils.js

that's a real quick listing, but i'd be happy to answer other questions.

-ben