TableView
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,
}
Initialize self. See help(type(self)) for accurate signature.
TableAdd technical info
TechnicalInfoAnyCopy the view information from another view
ViewConvert to dictionary
ConfigParamsdictMark the view as not interactive, disable the pagination
Get the technical information and raise if the key does not exist
strTechnicalInfoExtract a new dataframe
list[str]DataFrameGet a dataframe from a single range
CellRangeDataFramelist[dict[str, str]]list[CellRange]list[dict[str, str]]TableSelectionlist[dict[str, str]]TableSelectionlist[dict[str, str]]Get style
gws_core.model.typing_style.TypingStyle | NoneGet the technical information, or None if the key does not exist
strgws_core.resource.technical_info.TechnicalInfo | NoneGet technical info
TechnicalInfoDictGet title
str | NoneGet type
ViewTypeGet all the values of multiple column flattened
list[str]list[Any]Get flattened values from a list of ranges
list[CellRange]list[Any]Get table flattened value form a SelectionRange
TableSelectionlist[Any]Get the x tick labels from a serie list if possible, if all the series have the same rows selection
Serie1dListlist[str] | NoneIs favorite
boolIs interaction disabled
boolSet favorite
boolSet 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.
TypingStyleSet technical info
TechnicalInfoDictSet title
strConvert to DTO
ConfigParamsViewDTOGenerate range list like 0,1,2...length
intlistConfigSpecsMethod that return true is the provided json is a json of a view
Anybool