UNPKG

ng2-bs-table

Version:
27 lines 802 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Render link. Route on link. */ var TableViewAction = (function () { function TableViewAction(name, label, link, glyphicon) { this.name = name; this.label = label; this.link = link; this.glyphicon = glyphicon; } TableViewAction.prototype.toRoute = function (router, data) { var query = []; query.push(this.link[0]); for (var i in this.link[1]) { query.push(data[this.link[1][i]]); } router.navigate(query); }; TableViewAction.prototype.visible = function (data) { return true; }; return TableViewAction; }()); exports.TableViewAction = TableViewAction; //# sourceMappingURL=table-view-action.js.map