Can I pass function to partial?

Hi, could I pass a function $.IsMenuCurrent via context(dict function) to partials? My menu’s partials relies on that function. I tried, but got an error:

 <$.IsMenuCurrent>: wrong number of args for IsMenuCurrent: want 2 got 0

It seems the function executed and then assigned to dict.

I don’t think that’s possible. I suspect your best bet is to pass the $ to the partial.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.