Open amd-9 opened 7 years ago
Hi! Now every content contains method Hide(). You can write something like this:
var content = new Content(new FieldContent("Test", "test").Hide(/*here comes your predicate*/));
The closest behavior to desired I get vianew RepeatContent("hider")
and new RepeatContent("hider").AddItem(....)
.
It's would be nice to have functionality that allows to display templates based on condition. For example if property of FieldContent equals true display one block of templates and another one in case of false.