Hi Dee, A very similar discussion was carried on recently about using ex:onshow for each item:
https://groups.google.com/group/simile-widgets/browse_thread/thread/2e5da86aa350764#msg_7fc6da2fc4feb375 Perhaps this would present a different possible solution other than overwriting external code (though I have done so with Exhibit in the past, too). On 6/25/11 8:53 PM, Dee wrote: > Ok this is what I did to get the task done. > 1) Open the file scripts/ui/views/tile-views.js > 2) called my custom function inside > Exhibit.TileView.prototype._reconstruct function > > Hopefully this will come handy to someone else. > > > On Jun 24, 2:48 pm, Dee <[email protected]> wrote: >> Hi there, >> First of all I would like to thank all the developers and contributors >> of exibit/simile applications, which are set of very powerful tools, >> lots of kudos. >> Now to my problem, I have been trying to find a way to call a custom >> function(which basically renders a map in a div for each record in the >> view) every time the viewPanel is updated in an exhibit application. I >> could call this function when a particular item in facet was selected/ >> un-selected by inserting the "custom" function call into >> "Exhibit.ListFacet.prototype.applyRestrictions" function(which resides >> in script/ui/facets/list-facet.js ) but I have no idea to how to >> integrate my function when the view is updated by other means such as >> when user clicks reset all filter, or does a sorting etc. >> Also is there a way to figure out which functions are getting called >> when an event is triggered in exhibit app? The only way I know to >> attach event in js in using the on* functions, and it seems like >> exhibit dynamically attaches event to its elements - if only someone >> could direct me where to look at, even that would be much appreciated. >> >> Regards, >> Dee > -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.
