From fefc7b75b1732aabf2f4b61d9fa6c563ff6b35e8 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 24 Aug 2023 16:27:32 +0200 Subject: [PATCH] Ensure FloatPanel correctly exposes its children --- panel/layout/float.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/panel/layout/float.py b/panel/layout/float.py index 7aefb8478c..017425d7b9 100644 --- a/panel/layout/float.py +++ b/panel/layout/float.py @@ -189,3 +189,23 @@ def __css__(cls): def __init__(self, *objects, name='', **params): super().__init__(objects=list(objects), name=name, **params) + + def select(self, selector=None): + """ + Iterates over the Viewable and any potential children in the + applying the Selector. + + Arguments + --------- + selector: type or callable or None + The selector allows selecting a subset of Viewables by + declaring a type or callable function to filter by. + + Returns + ------- + viewables: list(Viewable) + """ + objects = super().select(selector) + for obj in self: + objects += obj.select(selector) + return objects