flare.icons

Components for displaying icons.

Module Contents

Classes

SvgIcon

A raw, embedded SVG icon-component.

Icon

Icon component with first-letter fallback, normally shown as embedded SVG.

BadgeIcon

A badge icon is an icon-component with a little badge, e.g. a number of new messages or items in the cart or so.

class flare.icons.SvgIcon(value=None, fallbackIcon=None, title='')

Bases: flare.html5.svg.Svg

A raw, embedded SVG icon-component.

_leafTag = True
_setValue(value)
_setTitle(val)

Advisory information associated with the element.

Parameters:

val – str

getIcon()
replaceSVG(icondata)
requestFallBack(data, status)
class flare.icons.Icon(value=None, fallbackIcon=None, title='', classes=[])

Bases: flare.html5.I

Icon component with first-letter fallback, normally shown as embedded SVG.

_leafTag = True
_setValue(value)
_setTitle(val)

Advisory information associated with the element.

Parameters:

val – str

_setFallback(val)
onError()
class flare.icons.BadgeIcon(title='', value=None, fallbackIcon=None, badge=None)

Bases: Icon

A badge icon is an icon-component with a little badge, e.g. a number of new messages or items in the cart or so.

_setBadge(badge)
_getBadge()