In [13]:
from IPython.html import widgets
from ipbs.widgets import (
Button,
ButtonGroup
)
import ipbs.bootstrap as bs
In [14]:
group = ButtonGroup(children=[Button(description=x) for x in ["foo", "bar", "baz"]])
Display the widget:
In [15]:
group
In [16]:
group.size = bs.Size.large
In [17]:
group.orientation = bs.Orientation.vertical
Justified button groups are not supported yet in the Bootstrap used by IPython.
In [18]:
group.justification = bs.Justification.justified