From dc5b209418d791a64dfd91808c3839731ec5f508 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Thu, 31 Aug 2023 21:36:23 +0200 Subject: [PATCH] show / hide footer --- haxe/ui/containers/Panel.hx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/haxe/ui/containers/Panel.hx b/haxe/ui/containers/Panel.hx index ccabd4c62..47021be5e 100644 --- a/haxe/ui/containers/Panel.hx +++ b/haxe/ui/containers/Panel.hx @@ -42,6 +42,14 @@ class Panel extends VBox { contentContainer.percentHeight = 100; return super.set_percentHeight(value); } + + public function showFooter() { + findComponent(PanelFooter, true).show(); + } + + public function hideFooter() { + findComponent(PanelFooter, true).hide(); + } } @:xml(' @@ -98,6 +106,9 @@ private class Builder extends CompositeBuilder { } return child; } else if ((child is Footer)) { + if (child.hidden) { + footer.hide(); + } for (c in child.childComponents) { footer.addComponent(c); }