Click to New Tab

Creates text with a link embedded

WARNING avoid special symbols such as (, ), [, ] and similar in the texts of this component because it could break the look&feel

Input variables:

title: str
background_url: str

And accepts the following input variable as optional:

href: Optional[str]

Example of use:

s.plt.html(
    order=0,
    html=s.html_components.button_click_to_new_tab(
        title='Churn prediction & Explainability',
        background_url='https://cutt.ly/qJANGcX'
    )
)

You can resize, change position and text at will, for example:

s.plt.html(
    order=0, cols_size=5, padding='1,0,0,6',
    html=s.html_components.button_click_to_new_tab(
        title='Churn prediction & Explainability',
        background_url='https://cutt.ly/qJANGcX'
    )
)

More on how to use the Grid.

Video demonstration

Last updated