from epyk.core.Page import Report
rptObj = Report()
rptObj.ui.title("Title")
rptObj.ui.title("Title", level=1)
rptObj.ui.title("Title", level=2)
rptObj.ui.title("Title", level=3)
rptObj.ui.title("Title", level=4)
rptObj.outs.jupyter()
from epyk.core.Page import Report
rptObj = Report()
rptObj.ui.titles.head("Test")
rptObj.outs.jupyter()
from epyk.core.Page import Report
rptObj = Report()
rptObj.ui.titles.headline("Test")
rptObj.outs.jupyter()
from epyk.core.Page import Report
rptObj = Report()
rptObj.ui.titles.rubric("Test")
rptObj.ui.text("Test")
rptObj.outs.jupyter()
from epyk.core.Page import Report
rptObj = Report()
rptObj.ui.titles.head("Test")
rptObj.ui.titles.headline("Test")
rptObj.ui.titles.rubric("Test")
rptObj.ui.titles.underline("Test")
rptObj.ui.titles.caption("Test")
rptObj.ui.text("Test")
rptObj.outs.jupyter()
In the same way than all the other components, it is possible to change the style or add events on titles. The CSS styles can be changed using the style.css property.
from epyk.core.Page import Report
rptObj = Report()
title = rptObj.ui.title("Title")
title.style.css.color = 'green'
title.click([
rptObj.js.alert("This is a click")
])
rptObj.outs.jupyter()
By using the title and the various level, this will be automatically added to a fixed content table on the top left side of your dashboard.
from epyk.core.Page import Report
rptObj = Report()
contents = rptObj.ui.contents()
contents.style.css.top = "100px"
rptObj.ui.title("Title", level=1)
rptObj.ui.title("Sub itle 1", level=2)
rptObj.ui.title("Sub itle 2", level=2)
rptObj.outs.jupyter()
Also any help is more than welcome !