diff --git a/NavigationButton/NavigationButton.cmp b/NavigationButton/NavigationButton.cmp
index b25035f..0400726 100644
--- a/NavigationButton/NavigationButton.cmp
+++ b/NavigationButton/NavigationButton.cmp
@@ -32,6 +32,9 @@
+
+
+
@@ -68,4 +71,4 @@
-
\ No newline at end of file
+
diff --git a/NavigationButton/NavigationButton.design b/NavigationButton/NavigationButton.design
index b81ae44..9c0b747 100644
--- a/NavigationButton/NavigationButton.design
+++ b/NavigationButton/NavigationButton.design
@@ -38,6 +38,9 @@
+
+
+
-
\ No newline at end of file
+
diff --git a/NavigationButton/NavigationButtonRenderer.js b/NavigationButton/NavigationButtonRenderer.js
index c223404..2775c57 100644
--- a/NavigationButton/NavigationButtonRenderer.js
+++ b/NavigationButton/NavigationButtonRenderer.js
@@ -5,18 +5,20 @@
var elements = document.querySelectorAll('[data-holder="NavButtonHolder"]');
//add after last element
- var lastElement = elements[elements.length-1 ];
- var newItem = document.createElement("div");
- newItem.setAttribute("style", "clear:both;display:block");
- newItem.setAttribute("special-type", "floatClear");
- lastElement.appendChild(newItem);
-
+ if(component.get("v.appendFloatClearDiv")) {
+ var lastElement = elements[elements.length-1 ];
+ var newItem = document.createElement("div");
+ newItem.setAttribute("style", "clear:both;display:block");
+ newItem.setAttribute("special-type", "floatClear");
+ lastElement.appendChild(newItem);
+ }
//Always ensure a button is clickable
- var newCSSstyle= document.createElement("style");
- newCSSstyle.innerHTML = '.slds-card {clear: both; min-height: 6.5REM;' ;
- lastElement.appendChild(newCSSstyle);
-
+ if(component.get("v.appendSldsCardStyle")) {
+ var newCSSstyle= document.createElement("style");
+ newCSSstyle.innerHTML = '.slds-card {clear: both; min-height: 6.5REM;' ;
+ lastElement.appendChild(newCSSstyle);
+ }
//STop weird alignment from
@@ -27,4 +29,4 @@
}
-})
\ No newline at end of file
+})