Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

PlotlyRField

R field to serialize and deserialize plotly figures

Attributes
include_in_dict_view: boolstorage: RFieldStorage
Functions
__init__

Initialize a BaseRField with storage and default value configuration.

deserialize

Convert a stored value into the field's runtime representation.

Called when loading a field value from storage. Override this method in subclasses to implement custom deserialization logic.

r_field_value : Any
The raw value retrieved from storage
Return type : Figure
get_default_value

Get the default value for this field.

If the default value is a Type or Callable, it will be called to generate a new default value. Otherwise, the default value is returned directly.

This ensures that mutable defaults (like lists or dicts) are not shared between Resource instances.

Return type : Any
serialize

Convert the field's runtime value into a storable representation.

Called when saving a field value to storage. Override this method in subclasses to implement custom serialization logic.

r_field_value : Figure
The current field value in the Resource
Return type : Any
figure_from_dict @staticmethod
figure_dict : dict
Return type : Figure
figure_to_dict @staticmethod
figure : Figure
Return type : dict
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.