Use this view to return a section of a Table and enable pagination to retrieve other section. This view embed config to enable pagination.
The view model is:
{
"type": "table"
"title": str,
"caption": str,
"data" List[List[float]],
"rows": List[Dict["name": str, tags: Dict[str, str]]],
"columns": List[Dict["name": str, tags: Dict[str, str]]],
"from_row": int,
"number_of_rows_per_page": int,
"from_column": int,
"number_of_columns_per_page": int,
"total_number_of_rows": int,
"total_number_of_columns": int,
}
Functions
Initialize self. See help(type(self)) for accurate signature.
Name | Type | Default value | Description |
---|---|---|---|
table | Table |
Add technical info
Name | Type | Default value | Description |
---|---|---|---|
technical_info | TechnicalInfo |
Name | Type | Default value | Description |
---|---|---|---|
column_names | Any |
Copy the view information from another view
Name | Type | Default value | Description |
---|---|---|---|
view | View | View to copy the information from |
Convert to dictionary
Name | Type | Default value | Description |
---|---|---|---|
params | ConfigParams |
dict |
Mark the view as not interactive, disable the pagination
Extract a new dataframe
Name | Type | Default value | Description |
---|---|---|---|
column_names | List[str] |
DataFrame |
Get a dataframe from a single range
Name | Type | Default value | Description |
---|---|---|---|
range | CellRange |
DataFrame |
List[Dict[str, str]] |
Name | Type | Default value | Description |
---|---|---|---|
ranges | List[CellRange] |
List[Dict[str, str]] |
Name | Type | Default value | Description |
---|---|---|---|
selection_range | TableSelection |
List[Dict[str, str]] |
Name | Type | Default value | Description |
---|---|---|---|
selection_range | TableSelection |
List[Dict[str, str]] |
Get style
TypingStyle |
Get technical info dict
Name | Type | Default value | Description |
---|---|---|---|
key | str |
TechnicalInfo |
Get technical info
TechnicalInfoDict |
Get title
Optional |
Get type
ViewType |
Get all the values of multiple column flattened
Name | Type | Default value | Description |
---|---|---|---|
column_names | List[str] |
List[Any] |
Get flattened values from a list of ranges
Name | Type | Default value | Description |
---|---|---|---|
ranges | List[CellRange] |
List[Any] |
Get table flattened value form a SelectionRange
Name | Type | Default value | Description |
---|---|---|---|
selection_range | TableSelection |
List[Any] |
Get the x tick labels from a serie list if possible, if all the series have the same rows selection
Name | Type | Default value | Description |
---|---|---|---|
serie_list | Serie1dList |
Optional[List[str]] |
Is favorite
bool |
Is interaction disabled
bool |
Set favorite
Name | Type | Default value | Description |
---|---|---|---|
favorite | bool |
Set typing style for this view instance. This overrides the style defines in the view decorator and the default style of the view type With this you can define a custom style for a specific view instance when you view is generic.
Name | Type | Default value | Description |
---|---|---|---|
style | TypingStyle |
Set technical info
Name | Type | Default value | Description |
---|---|---|---|
technical_info | TechnicalInfoDict |
Set title
Name | Type | Default value | Description |
---|---|---|---|
title | str |
Convert to DTO
Name | Type | Default value | Description |
---|---|---|---|
params | ConfigParams |
ViewDTO |
Generate range list like 0,1,2...length
Name | Type | Default value | Description |
---|---|---|---|
length | int |
List |
Dict |
Method that return true is the provided json is a json of a view
Name | Type | Default value | Description |
---|---|---|---|
json_ | Any |
bool |