I have a Windows 8 app with a template that contains a div I want to show or hide based on the value of a property inside a data-win-control="WinJS.Binding.Template"
. I have tried the following without luck:
<div data-win-bind="visible: isMore"> ..content... </div>
where isMore
is a boolean property of the databound item.
How can I do that? I guess the visible property does not exist?
span
elements too. – Nixie