Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: TLS-2551

...

For live previews and code examples see the Flex Icons page in the Element Library (Site Administration > Appearance > Themes > Element Library).

Info

From Totara 13 the flex icons are replaced by SVG icons

Backwards compatibility

The API is designed to be backwards compatible with the Pix icon API previously used to output icons. Existing calls to output pix icons (e.g. $OUTPUT->pix_icon('edit')) check whether a new Flexible icon is available for the pix component / path and if found, output the new HTML instead. If a font icon equivalent is not found they will fall back to displaying the original image. Therefore there should be no need to update any existing third party code unless you want to make use of font based icons.

...