
If the objects are not already Panel components they will each be converted to one using the pn.panel conversion method.


Header_background (str): The background color of the header.įor further layout and styling-related parameters see the customization user guide.Īn Accordion layout can either be instantiated as empty and populated after the fact, or by using a list of objects provided on instantiation as positional arguments. Header_color (str): The color of the header text. Toggle (bool): Whether to toggle between the available cards, activating only one at a time (if True), or (if False) whether to allow multiple cards to be expanded simultaneously.Īctive_header_background (str): The background color of the header when the Card is expanded. Should not generally be modified directly except when replaced in its entirety. Objects (list): The list of objects to display in the Column. Updates when a card is expanded or collapsed and may also be set to programmatically control which cards are shown. Parameters: #Īctive (list, default=): The indexes of the currently displayed cards. Like Column and Row, Tabs has a list-like API that allows interactively updating and modifying the cards using methods append, extend, clear, insert, pop, remove and _setitem_ (to replace the contents). The labels for each card may be defined explicitly as part of a tuple, and otherwise default to the name parameter of the card’s contents.

Accordion layouts are a type of Card layout that allows switching between multiple objects by clicking on the corresponding card header.
