We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2e000a + bf18bc4 commit 57f87e6Copy full SHA for 57f87e6
jkanban.js
@@ -176,6 +176,11 @@ var dragula = require("dragula");
176
if (typeof element.id !== "undefined" && element.id !== "") {
177
nodeItem.setAttribute("data-eid", element.id);
178
}
179
+ if(element.class && Array.isArray(element.class)) {
180
+ element.class.forEach( function(cl){
181
+ nodeItem.classList.add(cl);
182
+ })
183
+ }
184
nodeItem.innerHTML = element.title;
185
//add function
186
nodeItem.clickfn = element.click;
0 commit comments