-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not work in static
mode
#1
Comments
Dear Kenton, thanks for all your nice comments, very helpful indeed. I agree that static mode would be good to have. Actually I could make good I've included jquery as first step, but there are at least two problems:
I will look into this soon. Thanks again Thomas On Sun, Mar 1, 2015 at 10:47 PM, timelyportfolio notifications@github.com
|
Please check latest version. Many things in static mode seem to work now. saveWidget(... selfcontained = TRUE) fails for me with pandoc errors in this example: ����
library(magrittr)
library(htmlwidgets)
library(D3TableFilter)
tableProps <- list(
btn_reset = TRUE,
sort = TRUE,
sort_config = list(
# alphabetic sorting for the row names column, numeric for all other columns
sort_types = c("String", rep("Number", ncol(mtcars)))
)
);
mtcars %>% d3tf(tableProps = tableProps,
showRowNames = TRUE,
tableStyle = "table table-bordered") %>%
saveWidget(file = "test.html", selfcontained = TRUE)
|
Now D3 related functions work in static mode too, including D3 magic when editing a table. There is a demo script in examples: staticTableWithD3AndTableFilter.R |
Maybe I'm confused, but I thought
d3tf
should work in bothstatic
andshiny
modes.static
currently does not work sincejQuery
is not available in this line.I did confirm that
static
sort of works when thejQuery
depedency is added. Here is an example. Of course, you'll want to addjQuery
in theyaml
if you want to pursue this.Please sort of disregard if
static
is not an option. However, I would strongly encourage that a widget work in all contexts.The text was updated successfully, but these errors were encountered: