Class MultiView. This is use to multiple view in the same page
The view model is:
{
"type": "multi-view"
"data":
"views": [
{
"view": {},
"colspan": colspan,
"rowspan": rowspan,
},
...
],
}
Functions
[summary]
Name | Type | Default value | Description |
---|---|---|---|
nb_of_columns | int | Total number of columns of the grid |
Add en empty block in the grid
Name | Type | Default value | Description |
---|---|---|---|
colspan | int | 1 | Nb of columns taken by the empty block, defaults to 1 , optional |
rowspan | int | 1 | Nb of rows taken by the empty block, defaults to 1 , optional |
Add technical info
Name | Type | Default value | Description |
---|---|---|---|
technical_info | TechnicalInfo |
Add a view to the multi view
:raises Exception: [description]
Name | Type | Default value | Description |
---|---|---|---|
view | View | View dict[str, any] | |
params | Dict | Values for the config of the view [str, any] | |
colspan | int | 1 | Nb of columns taken by the view in the grid, defaults to 1 , optional |
rowspan | int | 1 | Nb of rows taken by the view in the grid, defaults to 1 , optional |
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
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 |
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 |