You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/extending/custom-regions.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,7 @@ There's currently one example called *IfElse* to be found in the help browser un
148
148
It defines an interface called `IIfElsePatch` which acts as the patch inlay with two operations `Then` and `Else`.
149
149
On open it creates one patch inlay and from then on calls `Then` or `Else` on it based on the input condition.
150
150
The same example can also be found written in C# here: https://github.com/vvvv/VL.StandardLibs/blob/main/VL.TestNodes/src/IfElseRegion.cs
151
+
151
152
Another C# example is the [`ForEach (Key)` region](https://github.com/vvvv/VL.StandardLibs/blob/c4fb51ab5354cac01bf9dbcdac7efe749e47e0f3/VL.CoreLib/src/Control/Synchronize.cs#L345), it also shows that the patch inlay can have pins.
152
153
153
154
### Usage
@@ -178,3 +179,4 @@ While we consider the API in a rather good state (it emerged from serveral propo
178
179
* The interface used for the inlay must not interit from other interfaces.
179
180
* Type parameters on the interface (generic interface) have not been tested yet.
0 commit comments