Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Added example to show the icon only when it is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Weijers committed Sep 7, 2017
1 parent ad33bf1 commit d717d42
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,15 @@ Display an icon with a custom class:

{{ entry.fieldName.iconClass }}

7. fe Get the icon name
7. Get the icon name

{{ entry.fieldName.iconName }}

8. Conditional example of showing icon only when it is set

{% if entry.fieldName.icon %}
{{ entry.fieldName.iconSpan|raw }}
{% endif %}


### Contributors & Developers
Expand Down

0 comments on commit d717d42

Please sign in to comment.