Documentation versions

Module reahl.web.bootstrap.navs

New in version 3.2.

A Bootstrap “Nav” is a navigation menu: a list of items that are links to other Views. Navs can also have a second level so that if you click on an item, a dropdown list of vertically stacked options appear.

This module contains the necessary Widgets and Layouts to create and style Bootstrap Navs.

PillLayout

class reahl.web.bootstrap.navs.PillLayout(stacked=False, justified=False)

This Layout makes a Nav appear as horizontally or vertically arranged pills (buttons).

Parameters:
  • stacked – If True, the pills are stacked vertically.
  • justified – If True, the pills are widened to fill all available space.

TabLayout

class reahl.web.bootstrap.navs.TabLayout(justified=False)

This Layout makes a Nav appear as horizontal tabs.

Parameters:justified – If True, the tabs are widened to fill all available space.

Documentation versions