Title_2
Display a title for your dataApp.
dp.title
dp.title(text, code=False, delete=False, disabled=False, italic=False,
level=1, mark=False, role=None, underline=False)
Parameters
Parameter | Description |
---|---|
text (str) | Markdown text |
code (bool) | Code style |
delete (bool) | Deleted line style |
disabled (bool) | Disabled content |
italic (bool) | Italic style |
level (int) | Set content importance. Equivalent to HTML tags h1, h2, h3, h4, h5 |
mark (bool) | Marked style |
role (Optional[TextRole]) | Content type. Can be either secondary , success , warning or danger |
underline (bool) | Underlined type |
Example
The example below shows how to create a dataApp title.
import shapelets.datapanel as dp
# Set up a dataApp
app = dp.dataApp()
app.title(text='Simple demo')
# Publish dataApp
dp.serve(app)
Titles can be further customized:
import shapelets.datapanel as dp
# Set up a dataApp
app = dp.dataApp()
app.title(text='Simple demo', code=True)
# Publish dataApp
dp.serve(app)
import shapelets.datapanel as dp
# Set up a dataApp
app = dp.dataApp()
app.title(text='Simple demo', disabled=True)
# Publish dataApp
dp.serve(app)
import shapelets.datapanel as dp
# Set up a dataApp
app = dp.dataApp()
app.title(text='Simple demo', mark=True)
# Publish dataApp
dp.serve(app)