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); }