ng2-bs-table
Version:
Boostrap table view for angular 2.
27 lines • 802 B
JavaScript
;
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