Template Canvas Binding Parameters

Hello,

I’m creating a collapsible navigation menu using the template canvas. I’ve created two templates, Leaf and Node. The Leaf’s visibility is tied to a custom parameter via scripting as pictured below.

The Leaf’s visibility is determined by the boolean parameter “Expanded” belonging to the Node template. My question is how to I reference that Node’s custom parameter within the canvas template? Everytime I enter it in the field and click Apply it disappears. I’ve been playing around with customizing the template canvas’s dataset but alas still have no success. Any help will be appreciated, thanks.

It wouldn’t really be visibility you’d need to manipulate, but rather that the hidden leaf nodes would be excluded from your canvas dataset entirely. If any non-leaf node changes it’s expanded property, you should call up the chain to a custom method that regenerates the dataset.