Skip to content

Commit

Permalink
Ensure FloatPanel correctly exposes its children (#5433)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Aug 24, 2023
1 parent 3d32b67 commit b08976c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions panel/layout/float.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b08976c

Please sign in to comment.