Raw HTML

An HTML component is used for inserting images, messages, links and texts on the page, to help document business processes or applications.

The method to use

The method is s.plt.html()

It must contain the following input variables:

html: str
order: int

And accepts the following input variables as optional:

rows_size: Optional[int]
cols_size: Optional[int]
padding: Optional[List[int]]

Examples

1. Default Configuration

s.plt.html(
    order=0,
    html=(
        "<p style='background-color: #daf4f0';>"
        "Comparing the results of predictions that happened in previous "
        "periods vs reality, so that you can measure the accuracy of our predictor."
        "</p>"
    ) 
)

2. Title for HTML, changing data, size and padding

Note the space before the component using padding='0,0,0,2', and size with cols_size=8.

3. Adding graphic HTML component

Warning: We do not recommend to abuse on this technique since it can remarkably reduce the performance of your Data App, if possible use Shimoku components.

This component is done using:

The code for background color is #13bfa8.

Last updated

Was this helpful?