API#

icon#

django_icons.render_icon(name, *args, **kwargs)[source]#

Render an icon.

Parameters:

name

The name of the icon to be rendered.

title

The title attribute for the icon

default:

None (no title attribute rendered).

renderer

The renderer to use for the icon

default:

The default renderer as per settings.py, or ultimately IconRenderer.

tag

The tag to use for the icon

default:

Each renderer has a default tag set. This parameter overrides the renderer’s default tag.

Usage:

render_icon(name)

Example:

render_icon("pencil")
render_icon("trash", title="Delete")