Skip to content

Commit

Permalink
Allow initializing NamedListPanel title dict as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 5, 2024
1 parent 1a2f145 commit 1a731a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/layout/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,9 @@ def __init__(self, *items: list[Any | tuple[str, Any]], **params: Any):
'as positional arguments or as a keyword, not both.'
)
items = params.pop('objects')
params['objects'], self._names = self._to_objects_and_names(items)
params['objects'], names = self._to_objects_and_names(items)
super().__init__(**params)
self._names = names
self._panels = defaultdict(dict)
self.param.watch(self._update_names, 'objects')
# ALERT: Ensure that name update happens first, should be
Expand Down

0 comments on commit 1a731a1

Please sign in to comment.