gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

MultiViews

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
__init__

[summary]

nb_of_columns : int
total number of columns of the grid
add_empty_block

Add en empty block in the grid

colspan : int - 1
Nb of columns taken by the empty block
rowspan : int - 1
Nb of rows taken by the empty block
add_technical_info

Add technical info

technical_info : TechnicalInfo
add_view

Add a view to the multi view

view : View
view
params : Dict
values for the config of the view
colspan : int - 1
Nb of columns taken by the view in the grid
rowspan : int - 1
Nb of rows taken by the view in the grid
copy_info

Copy the view information from another view

view : View
view to copy the information from
data_to_dict

Convert to dictionary

params : ConfigParams
Return type : dict
disable_pagination

Mark the view as not interactive, disable the pagination

get_style

Get style

Return type : TypingStyle
get_technical_info

Get technical info dict

key : str
Return type : TechnicalInfo
get_technical_info_dict

Get technical info

Return type : TechnicalInfoDict
get_title

Get title

Return type : Optional
get_type

Get type

Return type : ViewType
is_favorite

Is favorite

Return type : bool
is_pagination_disabled

Is interaction disabled

Return type : bool
set_favorite

Set favorite

favorite : bool
set_style

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.

style : TypingStyle
set_technical_info_dict

Set technical info

technical_info : TechnicalInfoDict
set_title

Set title

title : str
to_dto

Convert to DTO

params : ConfigParams
Return type : ViewDTO
generate_range @classmethod

Generate range list like 0,1,2...length

length : int
Return type : List
get_specs @classmethod
Return type : Dict
json_is_from_view @classmethod

Method that return true is the provided json is a json of a view

json_ : Any
Return type : bool