Module reahl.web.bootstrap.ui
This module houses stylised versions of very basic user interface
elements – user interface elements that have a one-to-one
correspondence to HTML elements (or are of similar simplicity).
Widgets for constructing a page
Slot
-
class reahl.web.bootstrap.ui.Slot(view, name)
A Slot is a placeholder area on a page into which different Views can plug different Widgets on the fly.
Using Slots, one can create a single HTML5page which can be
re-used by different Views instead of having to create
similar-looking HTML5Pages for each View in an application.
A Slot is added to an HTML5Page to represent an area that will be
populated later by a View. When a View is served up the framework
can then populate this empty area with Widgets specific to the
current View.
- Parameters:
-
RunningOnBadge
-
class reahl.web.bootstrap.ui.RunningOnBadge(view)
A visual badge proclaiming that a website is “Running on Reahl”. Using it on your site
is a bit of advertising for Reahl!
Styling
Renders as an HTML <a class=”runningon”> containing an <img>
- Parameters:
view – (See reahl.web.fw.Widget
)