ParamFunction#

ParamFunction panes wrap functions decorated with the param.depends decorator and rerenders the output when any of the function’s dependencies change. This allows building reactive components into a Panel which depend on other parameters, e.g. tying the value of a widget to some other output.

Use pn.ui.ParamFunction to create this component.

API#

.. py:class:: ParamFunction(object=None, **params) :module: panel.param

ParamFunction panes wrap functions decorated with the param.depends decorator and rerenders the output when any of the function’s dependencies change. This allows building reactive components into a Panel which depend on other parameters, e.g. tying the value of a widget to some other output.

.. 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:: ParamFunction.applies(object: ~typing.Any, **kwargs) -> 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 !!