From 84b3c3411d09e0bc37e9d191be42475e23e0dd54 Mon Sep 17 00:00:00 2001 From: Francis Poirier Date: Mon, 2 Feb 2015 22:53:21 -0500 Subject: [PATCH] Added custom classes to list component --- components/ionList/ionList.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/ionList/ionList.js b/components/ionList/ionList.js index 87d47e2..6abd6e7 100644 --- a/components/ionList/ionList.js +++ b/components/ionList/ionList.js @@ -1,7 +1,14 @@ Template.ionList.helpers({ classes: function () { var classes = ['list']; - + + if (this.class) { + var customClasses = this.class.split(' '); + _(customClasses).each(function (customClass) { + classes.push(customClass); + }); + } + return classes.join(' '); } });