2017-11-19 4 views
0

"Show ... Entries"용어 레이블의 이름을 어떻게 바꿀 수 있습니까?format 데이터 테이블의 스타일 DT

는 여기

코드 내가 사용하는 감사 : 우리가

독일어

language <- list(
    sEmptyTable =  {if (is.null(emptyTable)) "Keine Daten in der Tabelle vorhanden" else emptyTable }, 
    sInfo =   "_START_ bis _END_ von _TOTAL_ Einträgen", 
    sInfoEmpty =  "0 bis 0 von 0 Einträgen", 
    sInfoFiltered = "(gefiltert von _MAX_ Einträgen)", 
    sInfoPostFix =  "", 
    sInfoThousands = ".", 
    sLengthMenu =  "_MENU_ Einträge anzeigen", 
    sLoadingRecords = "Wird geladen...", 
    sProcessing =  "Bitte warten...", 
    sSearch =   "<i class='fa fa-search'></i>", 
    sZeroRecords =  "Keine Einträge vorhanden.", 
    oPaginate = list(
     sFirst =  "Erste", 
     sPrevious = "Zurück", 
     sNext =  "Nächste", 
     sLast =  "Letzte" 
    ) 
에 ShinyApp에 대해 다음 설정을 사용했다

test.table <- data.frame(lapply(1:4, function(x) {1:50})) 
names(test.table) <- paste0('cp', 1:4) 

shinyServer(function(input,output){ 

output$table <- DT::renderDataTable({ 
DT::datatable(test.table, options = list(language = list(
    info = 'Title example...', 
    paginate = list(previous = 'Bot', `next` = 'Top') 
),formatStyle(test.table,'cp1', 
    backgroundColor = styleInterval(4, c('green', 
    'red')) 
    ),orderClasses = TRUE)) 

    }) 
+0

찾을 수 있습니다 - DT :: datatable (test.t (이전 = '선행', '다음'='자발적 ')))))))) %) %== 목록 = 언어 (목록 =정보 ='CpK 분석 분석법 계산 ', 페이지 번호 = %> % formatStyle ('cp2', backgroundColor = styleInterval (3.4, c) ','cp1 ', color = styleInterval (c (3.4, 3.8), c'회색 '파랑' ('녹색', '빨강'))) - 라벨을 바꾸는 법을 모른다. –

답변

0

sSearch이다 위해 당신이 찾고있는 것을 생각 및 sLengthMenu

관련 문제