On 24 Feb 2015, at 5:38 am, Poggenpohl, Daniel <daniel.poggenp...@isst.fraunhofer.de> wrote:
> Hello everyone, > > I'm trying to add some functionality to a grid: > > Every grid row should be an area where you can click to go to the details > page of the row object. > > But enough of that, even a simple javascript like alert on click doesn't seem > to work. > > The js is added via jss.addScript(), which is deprecated in 5.4 . Doing it > this way doesn't seem to work. What happens is I apply the script via a > @MixinAfter mixin in an afterRender-method and the page containing the grid > displays the loading spinner....for eternity. > > The javadoc says I should use modules and RequireJS. Is there an existing > example how to do this? Some examples: http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/javascript http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/reusable http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/robust http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/mixin HTH, Geoff > > The project uses jquery as the provider. > > Regards, > Daniel Poggenpohl