Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let pn.Param accept a list of objects. #6464

Open
Coderambling opened this issue Mar 8, 2024 · 7 comments
Open

Let pn.Param accept a list of objects. #6464

Coderambling opened this issue Mar 8, 2024 · 7 comments

Comments

@Coderambling
Copy link
Contributor

Coderambling commented Mar 8, 2024

Have pn.Param accept a list of objects to concatenate parameters from; right now it only accepts one object and lets you filter it (as @hoxbro showed), but presumably it would make sense to include parameters from wherever they happen to be living to build up a nice list of widgets for a user to display.

Would also increase uniformity? Because pn.Param(objects= would then work like in other Panel components that accept objects=

Issue created as a result of (and citing from) Discord discussion here.

It currently only accepts one object, with filtering, like below:

import panel as pn
pn.extension()
w = pn.widgets.Button(name='Click me')
pn.Param(w, parameters=["height", "visible"], show_name=False)
@Coderambling
Copy link
Contributor Author

Coderambling commented Mar 9, 2024

Related and solved: adds object= support to Flexbox. #6384

Related: Request to add object=support for 3 - 4 Listlike layouts that do not support it yet : #6389

@Coderambling
Copy link
Contributor Author

Coderambling commented Apr 12, 2024

Hi @philippjfr . Is there any chance of adding this to the 1.4.2 milestone? I have no idea how much would be involved to do this request.

@PhilippJR
Copy link

@Coderambling: I'm pretty sure you didn't mean to mention me...

@Coderambling
Copy link
Contributor Author

Coderambling commented Apr 15, 2024

Because this one has also been added to the 1.4.2 milestone... #6389

@ahuang11
Copy link
Contributor

ahuang11 commented Apr 15, 2024

I think philippjr is saying you tagged the wrong philippjfr

@Coderambling
Copy link
Contributor Author

Ah ok! Yes I meant @philippjfr !

@Coderambling
Copy link
Contributor Author

@Coderambling: I'm pretty sure you didn't mean to mention me...

Correct, thanks for the heads-up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants