Label

This is primarily so that one can embed text along with more complex widgets... but there are also some nice formatting things.


In [29]:
from IPython.html import widgets
from ipbs.widgets import Label
import ipbs.bootstrap as bs

In [30]:
label = Label("Such lovely, static text.")



In [31]:
label

In [32]:
label.html = True

In [33]:
label.lead = True

In [34]:
label.context = bs.Context.danger

In [35]:
label.transform = bs.Transformation.capitalize

In [28]:
label.align = bs.Alignment.right