pixano.features.schemas.views.text
Text(created_at=None, updated_at=None, **data)
Bases: View
Text view.
Attributes:
Name | Type | Description |
---|---|---|
content |
str
|
The text content. |
Source code in pixano/features/schemas/base_schema.py
create_text(content, id='', item_ref=ItemRef.none(), parent_ref=ViewRef.none())
Create a Text
instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content
|
str
|
The text content. |
required |
id
|
str
|
Text ID. |
''
|
item_ref
|
ItemRef
|
Item reference. |
none()
|
parent_ref
|
ViewRef
|
Parent view reference. |
none()
|
Returns:
Type | Description |
---|---|
Text
|
The created |