Back to bricks list
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

RichTextView

Class rich text view. Useful to show note content.

The view model is:

{
    "type": "rich-text-view"
    "data": {'content': RichTextDTO}
}
Attributes
object_id: strobject_type: RichTextObjectType
Functions
__INIT__

Initialize self. See help(type(self)) for accurate signature.

Title : str
rich_text : RichText
object_type : RichTextObjectType
object_id : str
ADD_TECHNICAL_INFO

Add technical info

technical_info : TechnicalInfo
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