Text component creation in Epyk will be using the function text from the ui property.
the ui entry point will give you access to all the registered components. Different flavour of buttons are available in the framework.
There are multiple flaviour of text in the framework but the default one added as a shortcut to ui is a component using div as underlying. Div is the generic container on the HTML space.
from epyk.core.Page import Report
rptObj = Report()
text = rptObj.ui.text("This is a text")
rptObj.outs.jupyter()
Same way than all the other component it is possible to add style or Javascript event to this component.
Some shortcut functions are also available for the common style changes. In a proper IDE they should appear with a proper documentation.
from epyk.core.Page import Report
rptObj = Report()
text = rptObj.ui.text("This is a text")
text.style.css.bold()
text.style.css.shadow_text()
text.click([
rptObj.js.alert("This is an alert")
])
rptObj.outs.jupyter()
Other flavours of texts are available from the property texts.
from epyk.core.Page import Report
rptObj = Report()
rptObj.ui.texts.label("Test")
rptObj.ui.texts.span("Test")
rptObj.ui.texts.highlights("Test content", title="Test", icon="fab fa-angellist")
rptObj.ui.title("Test")
rptObj.outs.jupyter()
Also any help is more than welcome !