Skip to content
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

Combine HTML Widgets with DataTables #61

Closed
mansaluke opened this issue Nov 27, 2018 · 2 comments
Closed

Combine HTML Widgets with DataTables #61

mansaluke opened this issue Nov 27, 2018 · 2 comments

Comments

@mansaluke
Copy link

Hi all,

Firstly thanks to the developers for this package which is very useful. The issue I have found is that when using the package it does not seem to be possible to use DT datatables in the combine widgets command.

Is it possible to integrate the data table into a single view alongside other widgets using the combine widgets command? If so, how can this be done? And, if not, why not?

This is what i've tried but the data table does not show up:

library(manipulateWidget)
library(plotly)
library(DT)

if (require(plotly)) {
  data(iris)
  
  combineWidgets(title = "The iris data set: sepals", ncol = 2, colsize = c(2,1),
                 plot_ly(iris, x = ~Sepal.Length, y = ~Sepal.Width, type = "scatter",
                         mode = "markers", color = ~Species),
                 datatable(iris)
                 )
}

Thanks in advance. :)

@FrancoisGuillem
Copy link
Contributor

Hello,

This is a strange issue, because if I use your code in function manipulateWidget, the table appears correctly:

manipulateWidget({
combineWidgets(title = "The iris data set: sepals", ncol = 2, colsize = c(2,1),
               plot_ly(iris, x = ~Sepal.Length, y = ~Sepal.Width, type = "scatter",
                       mode = "markers", color = ~Species),
               datatable(iris))
}, select = mwSelect(1:3))

image

@mansaluke
Copy link
Author

Thanks that seems to have solved it. Although its a bit strange that the same code worked with other packages.

FrancoisGuillem added a commit to FrancoisGuillem/manipulateWidget that referenced this issue Mar 23, 2019
FrancoisGuillem added a commit to FrancoisGuillem/manipulateWidget that referenced this issue Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants