Code Monkey home page Code Monkey logo

Comments (3)

FrancoisGuillem avatar FrancoisGuillem commented on June 12, 2024

For point 2, have you tried to put the filter_slider in the header parameter ?

combineWidgets(header = filter_slider(...), ...)

Parameters header, footer, leftCol and rightCol can be used to insert arbitrary html elements around the charts.

from manipulatewidget.

dmurdoch avatar dmurdoch commented on June 12, 2024

I haven't tried that. It would probably display nicely, but I'm hoping for a fairly general solution, e.g. allowing the filter_slider to be w2() in my original example.

I guess appendWidget could work by setting the footer or rightCol elements in a new object, e.g. appendWidget(w3(), c12) could be done as combineWidget(c12, footer = w3()). This strikes me as ending up with a more complicated result, but maybe it would work better. I'll do some experiments.

from manipulatewidget.

dmurdoch avatar dmurdoch commented on June 12, 2024

After a little bit of experimentation:

  1. I can use the filter_slider as a header or footer, but only with a new patch to the code in combineWidgets to get its dependencies. (The new patch is part of PR#47 now.) The spacing looks fine.

  2. I can't put an htmlwidget into the header or footer, only HTML tags or text. filter_slider works because it isn't a widget, but something like

    library(leaflet)
    library(manipulateWidget)
    combineWidgets(leaflet(), footer = leaflet())

produces this image in the RStudio viewer:

screen shot

i.e. the second widget is displayed as text.

from manipulatewidget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.