dash_mp_components.BibCard¶
- class dash_mp_components.BibCard(id: str | dict | None = None, className: str | None = None, title: str | None = None, author: str | None = None, year: Annotated[SupportsFloat | SupportsInt | SupportsComplex, _NumberSchema] | str | None = None, journal: str | None = None, doi: str | None = None, shortName: str | None = None, preventOpenAccessFetch: bool | None = None, openAccessUrl: str | None = None, **kwargs)[source]¶
Bases:
ComponentA BibCard component. Render bibliographic information in a formatted card view
Keyword arguments:
- id (string; optional):
The ID used to identify this component in Dash callbacks.
- author (string; optional):
Authors of the reference This string will render as is, so any formatting must be done beforehand.
- className (string; optional):
Class name(s) to append to the component’s default class (mpc-bib-card).
- doi (string; optional):
The DOI (Digital Object Identifier) of the reference This identifier is used to generate links to the reference’s online publication, open access PDF, and bibtex.
- journal (string; optional):
Name of the journal or publisher of the reference.
- openAccessUrl (string; optional):
Directly supply the URL to an accessible PDF of the reference If supplied, the component will not try to fetch an open access URL @default undefined.
- preventOpenAccessFetch (boolean; optional):
Set to True to prevent dynamically fetching a link to a free PDF of each reference (using the “doi” field for individual bib entry). NOTE: the open access URL can also be included in a bib entry in the “openAccessUrl” property. If set, the URL will not be fetched. @default False.
- shortName (string; optional):
Shortened title of the article.
- title (string; optional):
Title of the reference Will render as a link if doi is supplied.
- year (string | number; optional):
Year of the reference as either a string or number.
- __init__(id: str | dict | None = None, className: str | None = None, title: str | None = None, author: str | None = None, year: Annotated[SupportsFloat | SupportsInt | SupportsComplex, _NumberSchema] | str | None = None, journal: str | None = None, doi: str | None = None, shortName: str | None = None, preventOpenAccessFetch: bool | None = None, openAccessUrl: str | None = None, **kwargs)¶
Methods
__init__([id, className, title, author, ...])to_plotly_json()Attributes
REQUIREDUNDEFINEDavailable_wildcard_properties