-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.R
44 lines (42 loc) · 1.21 KB
/
config.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# DATATABLE CONFIGURATION
buttons <- list(
list(
extend = "copy",
text = '<i class="fa fa-files-o"> Copiar</i>',
titleAttr = "Copiar",
className = "btn btn-secondary"
),
list(
extend = "excel",
text = '<i class="fa fa-file-excel-o"> Excel</i>',
titleAttr = "Excel",
className = "btn btn-secondary"
),
list(
extend = "csv",
text = '<i class="fa fa-file-text-o"> CSV</i>',
titleAttr = "CSV",
className = "btn btn-secondary"
),
list(
extend = "pdf",
text = '<i class="fa fa-file-pdf-o"> PDF</i>',
titleAttr = "PDF",
className = "btn btn-secondary"
)
)
DT_extensions <- "Buttons"
DT_Class <- "compact row-border hover stripe"
DT_Options <- list(
lengthChange = FALSE,
pageLength = 50,
lengthMenu = list(c(20, 40, 60, 80, 100, -1), c("20", "40", "60", "80", "100", "Tudo")),
searching = FALSE,
ordering = FALSE,
dom = "Btp",
buttons = buttons,
scrollX = TRUE,
scrollY = TRUE,
columnDefs = list(list(className = "dt-center", targets = "_all")) # ,
# language = list(url = 'Portuguese_Brasil.json')
)