View
Functions
Initialize self. See help(type(self)) for accurate signature.
Add technical info
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
technical_info | TechnicalInfo |
Copy the view information from another view
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
view | View | View to copy the information from |
Convert to dictionary
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
params | ConfigParams |
Return type:
dict |
Mark the view as not interactive, disable the pagination
Get style
Return type:
TypingStyle |
Get technical info dict
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
key | str |
Return type:
TechnicalInfo |
Get technical info
Return type:
TechnicalInfoDict |
Get title
Return type:
Optional |
Get type
Return type:
ViewType |
Is favorite
Return type:
bool |
Is interaction disabled
Return type:
bool |
Set favorite
Parameters:
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.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
style | TypingStyle |
Set technical info
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
technical_info | TechnicalInfoDict |
Set title
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
title | str |
Convert to DTO
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
params | ConfigParams |
Return type:
ViewDTO |
Generate range list like 0,1,2...length
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
length | int |
Return type:
List |
Return type:
Dict |
Method that return true is the provided json is a json of a view
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
json_ | Any |
Return type:
bool |