panel icon indicating copy to clipboard operation
panel copied to clipboard

Let pn.Param accept a list of objects.

Open Coderambling opened this issue 1 year ago • 7 comments

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 avatar Mar 08 '24 17:03 Coderambling

Related and solved: adds object= support to Flexbox. https://github.com/holoviz/panel/issues/6384

Related: Request to add object=support for 3 - 4 Listlike layouts that do not support it yet : https://github.com/holoviz/panel/issues/6389

Coderambling avatar Mar 09 '24 08:03 Coderambling

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.

Coderambling avatar Apr 12 '24 13:04 Coderambling

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

PhilippJR avatar Apr 15 '24 07:04 PhilippJR

Because this one has also been added to the 1.4.2 milestone... https://github.com/holoviz/panel/issues/6389

Coderambling avatar Apr 15 '24 18:04 Coderambling

I think philippjr is saying you tagged the wrong philippjfr

ahuang11 avatar Apr 15 '24 19:04 ahuang11

Ah ok! Yes I meant @philippjfr !

Coderambling avatar Apr 15 '24 21:04 Coderambling

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

Correct, thanks for the heads-up!

Coderambling avatar Apr 15 '24 21:04 Coderambling