Permalink
Browse files

roxygenize

  • Loading branch information...
1 parent 1ecec24 commit 82a1dad22aa27395e51a06c8a11b9301edc97417 @yihui yihui committed Feb 25, 2014
Showing with 7 additions and 2 deletions.
  1. +7 −2 man/renderDataTable.Rd
View
@@ -4,7 +4,7 @@
\title{Table output with the JavaScript library DataTables}
\usage{
renderDataTable(expr, options = NULL, searchDelay = 500,
- env = parent.frame(), quoted = FALSE)
+ callback = "function(oTable) {}", env = parent.frame(), quoted = FALSE)
}
\arguments{
\item{expr}{An expression that returns a data frame or a
@@ -17,6 +17,11 @@ renderDataTable(expr, options = NULL, searchDelay = 500,
\item{searchDelay}{The delay for searching, in
milliseconds (to avoid too frequent search requests).}
+ \item{callback}{A JavaScript function to be applied to
+ the DataTable object. This is useful for DataTables
+ plug-ins, which often require the DataTable instance to
+ be available (\url{http://datatables.net/extras/}).}
+
\item{env}{The environment in which to evaluate
\code{expr}.}
@@ -42,7 +47,7 @@ character string.
renderDataTable(iris,
options = list(
iDisplayLength = 5,
- fnInitComplete = I("(function(oSettings, json) {alert('Done.');})")
+ fnInitComplete = I("function(oSettings, json) {alert('Done.');}")
)
)
}

0 comments on commit 82a1dad

Please sign in to comment.