Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabulator mutator to link to some columns' values #12

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions security_tool_comparison.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,22 @@ <h1>AWS Security Auditing tools comparison</h1>
return cell.getValue();
};

hyperlinkMutator = function (value) {
return "<a href='" + value + "'>" + value + "</a>";
};

var table = new Tabulator("#table", {
layout:"fitColumns",
layoutColumnsOnNewData:true,
placeholder:"No Data Set",
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"}
],
});
Expand Down