Skip to content

Commit

Permalink
Attempt to fix responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ctokheim committed Aug 30, 2018
1 parent e89e763 commit b68f8e0
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions docs/_includes/_footer_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,21 +239,33 @@
ajaxURL: "{{ site.baseurl }}/assets/data/data.json",
columns:[
{title:"Analysis", field:"analysis", sorter:"string", width:150},
{title:"Gene", field:"Hugo_Symbol", sorter:"string", width:150, headerFilter:true, headerFilterFunc:"=", bottomCalc:geneCountCalc},
{title:"Transcript", field:"Transcript_ID", sorter:"number", align:"left"},
{title:"Mutation", field:"HGVSp_Short", sorter:"string", sortable:false, headerFilter:true, headerFilterFunc:"like", bottomCalc:mutCountCalc},
{title:"Score", field:"gwCHASMplus score", sorter:"number", align:"center", bottomCalc:scoreCalc, headerFilter:"number", headerFilterPlaceholder:"at least...", headerFilterFunc:">="},
{title:"Cancer type", field:"cancer type", sorter:"string", align:"center", headerFilter:"select", headerFilterFunc:"=",
{title:"Gene", field:"Hugo_Symbol", sorter:"string", width:150, minWidth: 100,
headerFilter:true, headerFilterFunc:"=", bottomCalc:geneCountCalc,
responsive: 0},
{title:"Transcript", field:"Transcript_ID", sorter:"number",
align:"left", responsive: 10, minWidth: 100},
{title:"Mutation", field:"HGVSp_Short", sorter:"string", sortable:false,
headerFilter:true, headerFilterFunc:"like", bottomCalc:mutCountCalc,
responsive: 0, minWidth: 50},
{title:"Score", field:"gwCHASMplus score", sorter:"number", align:"center",
bottomCalc:scoreCalc, headerFilter:"number", headerFilterPlaceholder:"at least...",
headerFilterFunc:">=", responsive: 2, minWidth: 50},
{title:"Cancer type", field:"cancer type", sorter:"string", align:"center",
responsive: 1, minWidth: 50, headerFilter:"select", headerFilterFunc:"=",
headerFilterParams:{"": "All types", "ACC": "ACC", "BRCA": "BRCA", "CESC": "CESC", "CHOL": "CHOL",
"COAD": "COAD", "DLBC": "DLBC", "ESCA": "ESCA", "GBM": "GBM", "HNSC": "HNSC",
"KICH": "KICH", "KIRC": "KIRC", "KIRP": "KIRP", "LAML": "LAML", "LGG": "LGG",
"LIHC": "LIHC", "LUAD": "LUAD", "LUSC": "LUSC", "MESO": "MESO", "OV": "OV",
"PAAD": "PAAD", "PCPG": "PCPG", "PRAD": "PRAD", "READ": "READ", "SARC": "SARC",
"STAD": "STAD", "TGCT": "TGCT", "THCA": "THCA", "THYM": "THYM", "UCEC": "UCEC",
"UCS": "UCS", "UVM": "UVM", "BLCA": "BLCA"}},
{title:"Number of mutations", field:"number of mutations", sorter:"number", align:"center"},
{title:"Frequency", field:"frequency category", sorter:"string", align:"center", headerFilter:"select", headerFilterParams:{"":"All", "common":"common", "intermediate":"intermediate", "rare":"rare"}, bottomCalc:freqCountCalc},
{title:"Detailed info", field:"url", sorter:"string", align:"center", formatter:"link", formatterParams:{label: "More details"}},
{title:"Number of mutations", field:"number of mutations", sorter:"number",
align:"center", responsive: 3, minWidth: 40},
{title:"Frequency", field:"frequency category", sorter:"string", align:"center",
headerFilter:"select", headerFilterParams:{"":"All", "common":"common", "intermediate":"intermediate", "rare":"rare"},
bottomCalc:freqCountCalc, responsive: 2, minWidth: 100},
{title:"Detailed info", field:"url", sorter:"string", align:"center",
formatter:"link", formatterParams:{label: "More details"}, responsive: 2, minWidth: 75},
],
});
$("#example-table").tabulator("hideColumn", "analysis");
Expand Down

0 comments on commit b68f8e0

Please sign in to comment.