The Text
component is used to add text to the report. The text can be formatted
with either HTML or Markdown.
Below is an example of the schema required to define a Text
component:
{
"type": "Text",
"options": {
"text": "Lorem ipsum dolor sit amet",
"width": "2/3"
}
}
Key | Description |
---|---|
text |
The text to add, either as Markdown or HTML |
width |
Optional. The width of the component, when inside a Section or Row component with their columns option set to null . |
The width
key supports defining the width using a fraction specified as a
string e.g. 1/3
. The values for the denominator supported are 2, 3, 4, 5, 6
and 12, whilst the numerator can be any value up to the value of the denominator.
If the width
key is set to null
, then the component will attempt to fill
all the available horizontal space.
Hybiscus is continuously improving and adding new features. If you think we are missing a critical feature, please do not hesitate to contact us and offer your feedback at info@hybiscus.dev