Skip to content

Commit

Permalink
show / hide footer
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Aug 31, 2023
1 parent cb5b216 commit dc5b209
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions haxe/ui/containers/Panel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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('
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit dc5b209

Please sign in to comment.