Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.8k views
in Technique[技术] by (71.8m points)

r - Rmarkdown HTML based on CSV filter options

I have the following dataset that is already outputted in Rmarkdown HTML but I am unable to disable search for certain columns

enter image description here

What I would like to do is the for the have contingent filter so if Group AAA is selected only display ID record for that AAA. Currently, it shows me everything

datatable(head(Group),
        options = list(columnDefs = 
                        list(list(className = 'dt-center', 
                                    targets = "_all")),
        initComplete = JS(
"function(settings, json) {",
"$(this.api().table().header()).css({'background-color': '#9bcb51', 'color': '#000'});",
"}")))

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...