node-red-node-ui-table
Advanced tools
Comparing version 0.4.1 to 0.4.3
21
node.js
@@ -75,4 +75,3 @@ /** | ||
return value; | ||
} | ||
); | ||
}); | ||
@@ -88,3 +87,3 @@ var mid = (dark) ? "_midnight" : ""; | ||
return html; | ||
}; | ||
} | ||
@@ -211,3 +210,7 @@ function TableNode(config) { | ||
if ((outputs > 0) && !opts.hasOwnProperty('cellClick')) { // default cellClick if not already defined by ui_control | ||
opts.cellClick = function(e, cell) { | ||
$scope.send({topic:cell.getField(), payload:cell.getData(), row:(cell.getRow()).getPosition()}); | ||
}; | ||
} | ||
//turn autoColumns off if opts.columns is array with length > 0 | ||
@@ -218,12 +221,6 @@ if (opts.columns && Array.isArray(opts.columns) && opts.columns.length>0) { | ||
// console.log("createTabulator",opts); | ||
if($scope.table !== undefined) { | ||
if ($scope.table !== undefined) { | ||
$scope.table.destroy(); | ||
} | ||
$scope.table = new Tabulator(basediv, opts); | ||
if ((outputs > 0) && !opts.hasOwnProperty('cellClick')) { // default cellClick if not already defined by ui_control | ||
$scope.table.on("cellClick", function(e, cell) { | ||
$scope.send({topic:cell.getField(), payload:cell.getData(), row:(cell.getRow()).getPosition()}); | ||
}); | ||
} | ||
}; | ||
@@ -255,3 +252,3 @@ $scope.init = function (config) { | ||
var match = funcReg.exec(this.replace(/\n/g, ' ')); | ||
if(match) { | ||
if (match) { | ||
return new Function(match[1].split(','), match[2]); | ||
@@ -258,0 +255,0 @@ } |
{ | ||
"name": "node-red-node-ui-table", | ||
"version": "0.4.1", | ||
"version": "0.4.3", | ||
"description": "Table UI widget node for Node-RED Dashboard", | ||
@@ -5,0 +5,0 @@ "author": "Kazuhito Yokoi", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
1195878
22
19762