From d717d42d25e06f67b9ea14ed346c21f54cbb67e4 Mon Sep 17 00:00:00 2001 From: Lucas Weijers Date: Thu, 7 Sep 2017 10:13:47 +0200 Subject: [PATCH] Added example to show the icon only when it is set --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d6cd948..8ac27be 100644 --- a/README.md +++ b/README.md @@ -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