ParamMethod#
ParamMethod panes wrap methods on parameterized classes and rerenders the plot when any of the method’s parameters change. By default ParamMethod will watch all parameters on the class owning the method or can be restricted to certain parameters by annotating the method using the param.depends decorator. The method may return any object which itself can be rendered as a Pane.
Use pn.ui.ParamMethod to create this component.
API#
.. py:class:: ParamMethod(object=None, **params) :module: panel.param
ParamMethod panes wrap methods on parameterized classes and rerenders the plot when any of the method’s parameters change. By default ParamMethod will watch all parameters on the class owning the method or can be restricted to certain parameters by annotating the method using the param.depends decorator. The method may return any object which itself can be rendered as a Pane.
.. rubric:: Methods
.. autosummary::
applies
======== ==========
eval
======== ==========
.. !! processed by numpydoc !!
Parameter Definitions
Parameters inherited from:
:class:`panel.viewable.Layoutable`: align, aspect_ratio, css_classes, design, height, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width, width_policy, height_policy, sizing_mode, visible
:class:`panel.viewable.Viewable`: loading
:class:`panel.pane.base.PaneBase`: margin, default_layout
:class:`panel.pane.base.ReplacementPane`: object, inplace, _pane
:class:`panel.param.ParamRef`: defer_load, generator_mode, lazy, loading_indicator
.. py:method:: ParamMethod.applies(object: ~typing.Any) -> float | bool | None :module: panel.param :classmethod:
Returns boolean or float indicating whether the Pane
can render the object.
If the priority of the pane is set to
`None`, this method may also be used to define a float priority
depending on the object being rendered.
..
!! processed by numpydoc !!