From 4199c42e3b1624dada18c25ab20e425d3e233052 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 28 Jun 2017 12:56:51 +0200 Subject: [PATCH] combined components work --- tests/blur.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/blur.nim b/tests/blur.nim index 02a0de2..f40cb97 100644 --- a/tests/blur.nim +++ b/tests/blur.nim @@ -58,8 +58,12 @@ proc renderComb(self: VComponent): VNode = self.a self.b +proc changed(self: VComponent): bool = + let self = Combined(self) + result = self.a.changedImpl(self.a) or self.b.changedImpl(self.b) + proc newCombined*(style: VStyle = VStyle()): Combined = - result = newComponent(Combined, renderComb) + result = newComponent(Combined, renderComb, changed=changed) result.a = newTextInput(style, "AAA") result.b = newTextInput(style, "BBB")