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

Add support for passing objects reference for all ListLike Panel layouts that do not support it yet, to achieve consistent behaviour for all ListLike layouts #6389

Open
Coderambling opened this issue Feb 26, 2024 · 2 comments
Labels
type: enhancement Minor feature or improvement to an existing feature
Milestone

Comments

@Coderambling
Copy link
Contributor

Coderambling commented Feb 26, 2024

Reference to earlier issue for Flexbox layout: #6387

@philippjfr , as discussed. The remaining Listlike layouts that do not support it yet are:

Accordion (did not test that one). Update: tested it, Accordion does not support this.
FloatPanel
WidgetBox
Tabs
Is Card also ListLike?

Reference and text of the Discord message below:

Discord channel: https://discord.com/channels/1075331058024861767/1088157184489164831

Looking throught the API reference now for the ListLike layouts. Column, Row, and FlexBox now accept objects. So that leaves FloatPanel, WidgetBox and Tabs as the other ListLike layouts?

Update: Tested it: FloatPanel gives same error as Flexbox did before. WidgetBox supports objects=

Tabs gives error: TypeError: 'List' object is not iterable with pn.Tab(objects=widgetlist.param.value). Tab(objects=widgetlist.value) works.

@Coderambling
Copy link
Contributor Author

For reference: PR for the other layouts with the same issue is here #6389

@philippjfr philippjfr added the type: enhancement Minor feature or improvement to an existing feature label Mar 9, 2024
@philippjfr philippjfr added this to the v1.4.0 milestone Mar 9, 2024
@philippjfr philippjfr modified the milestones: v1.4.0, v1.4.1 Mar 27, 2024
@philippjfr philippjfr modified the milestones: v1.4.1, v1.4.2 Apr 10, 2024
@philippjfr philippjfr modified the milestones: v1.4.2, v1.4.3 Apr 23, 2024
@philippjfr philippjfr modified the milestones: v1.4.3, v1.4.4 May 30, 2024
@philippjfr philippjfr modified the milestones: v1.4.4, v1.4.x Jun 7, 2024
@Coderambling
Copy link
Contributor Author

Update: when testing, this seems to work for Card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants