Board Logo

Event Hanlder function Question
kenster - 11/1/2004 at 04:52 AM

So far I can associate a function with an event handler. For example: {'hs':'myfunction'}. The only param for myfunction is either item or tree. How can I pass a different param through this function. How do i call this funtion if it has an additional param?


rock - 11/1/2004 at 11:29 AM

You could assign this parameter in the item scope settings. E.g.:
So when you get tree item object in the handler function you can access the parameter value via o_item.a_config[2]['hs_param1']

Back to forum: