Skip to content

Document how to use with layout.param.objects.rx #1005

@ahuang11

Description

@ahuang11

I think the following should be documented in https://param.holoviz.org/user_guide/Reactive_Expressions.html

Instead of

self._coordinator.interface.param.objects.rx.bool().rx.not_()
    visible=self._coordinator.interface.param.objects.rx.bool().rx.not_()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'rx'

It should be:

self._coordinator.interface.param['objects'].rx.bool().rx.not_()

Because the param accessor works like a dataframe column accessors, if the parameter name clashes with an existing method the method takes precedence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions