From b9f52b99bc2b3cac9b16ead6715dde92615b758f Mon Sep 17 00:00:00 2001 From: Pat Myron Date: Tue, 28 May 2019 22:26:11 -0400 Subject: [PATCH] tabulator mutator to link to some columns' values --- security_tool_comparison.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/security_tool_comparison.html b/security_tool_comparison.html index ee613e5..a2e2cfd 100644 --- a/security_tool_comparison.html +++ b/security_tool_comparison.html @@ -66,6 +66,10 @@

AWS Security Auditing tools comparison

return cell.getValue(); }; +hyperlinkMutator = function (value) { + return "" + value + ""; +}; + var table = new Tabulator("#table", { layout:"fitColumns", layoutColumnsOnNewData:true, @@ -73,11 +77,11 @@

AWS Security Auditing tools comparison

columns:[ {title:"Rule", field:"rule", sorter:"string", width:200}, {title:"Type", field:"type", formatter:formatcolor, sorter:"string"}, - {title:"PacBot", field:"pacbot", formatter:formatcolor, sorter:"string"}, - {title:"Prowler", field:"prowler", formatter:formatcolor, sorter:"string"}, - {title:"Security Monkey", field:"security_monkey", formatter:formatcolor, sorter:"string"}, + {title:"PacBot", field:"pacbot", formatter:formatcolor, mutator:hyperlinkMutator, sorter:"string"}, + {title:"Prowler", field:"prowler", formatter:formatcolor, mutator:hyperlinkMutator, sorter:"string"}, + {title:"Security Monkey", field:"security_monkey", formatter:formatcolor, mutator:hyperlinkMutator, sorter:"string"}, {title:"Trusted Advisor", field:"trusted_advisor", formatter:formatcolor, sorter:"string"}, - {title:"AWS Config Rule", field:"config_rule", formatter:formatcolor, sorter:"string"}, + {title:"AWS Config Rule", field:"config_rule", formatter:formatcolor, mutator:hyperlinkMutator, sorter:"string"}, {title:"CloudMapper", field:"cloudmapper", formatter:formatcolor, sorter:"string"} ], });