class documentation

class PanelRefData(PanelRefBase): (source)

Constructor: PanelRefData(ctx)

View In Hierarchy

Class representing the data of a panel.

Parameters
ctxan fiftyone.operators.executor.ExecutionContext
Method clear Clears the panel data.
Method get Gets a value from the dictionary.
Method set Sets some panel data.

Inherited from PanelRefBase:

Method __getattr__ Undocumented
Method __init__ Undocumented
Method __setattr__ Undocumented
Instance Variable _ctx Undocumented
Instance Variable _data Undocumented
def clear(self): (source)

Clears the panel data.

def get(self, key, default=None): (source)

Gets a value from the dictionary.

Parameters
keya key or "nested.key.path"
default:Nonea default value if the key is not found
Returns
the value
def set(self, key, value=None): (source)

Sets some panel data.

Parameters
keya key, "nested.key.path", or dict mapping multiple possibly-nested keys to values
value:Nonethe value, if key is a string