Create a Menu inside a Menu in flexdashboard - R - r

I'm creating a Dashboard in R with flexdashboard. I have a drop down menu (See Image 1). I want to create a menu inside the menu (See Image 2). It is possible with this library?

Unfortunately, there is no easy way to do this just with the regular flexdashboard commands. The only alternatives I see:
Shiny + Flexdashboard
You can combine Flexdashboard with Shiny in order to add this submenus (consider this possibility).
Tabsets
If you don't need to show so many charts/plots in this sub-submenu's pages, a possibility that might suit you is combining the dropdown menu option with tab-panels in the main page. Please check Flexdashboard Layout documentation (btw, it's also possible with shiny)
Editing Flexdashboard CSS/HTML code
I am not really sure about it but, as you can change the color or resize the text editing the CSS-HTML code, you should be able to do what it (remember you can add your own custom CSS file). Try to look for web page front-end solutions to what you are looking for and try to edit the code by your own. Maybe this would help you
Sorry for this poorly edited answer, this is my first answer in stackoverflow.

Related

Avia layout builder can't remove tabs from tab section

Hi ive just recently started using wordpress to edit my webpages for my job. I'm just trying to remove a single tab from the tab section. Howerver there isn't a x icon on the tabs i want to remove. Even thought i can edit the tab section there is not an option for removing child tabs. Only solution i have found was to create a whole new tab section and to manually create and copy the info by hand to the new tabs. It has over 12 tabs so i want to be faster and more efficient.
enter image description here
Hope you found an answer by now. There is a delete button--in a unintuitive location.
I'm having trouble with these tabs since I can't figure out where or how to add content. I see the box but can't enter any text or links from the tabs. I'll make a standalone post to see if someone can help explain what I'm doing wrong.

R Leaflet does not show legend when embedded in Shiny Dashboard

The map above renders perfectly fine in the following scenarios:
List item
RStudio Viewer
Shiny app
Shiny app using a minimal Shiny dashboard sceleton
When including the map in an existing, pretty complex Shiny dashboard, the looks as follows:
Obviously, the legend is missing. On top of that, the "reset view" action button has no effect.
Without posting the complete code of the complex shiny dashbboard, I would like make the following comments:
I have disabled all custom JS code and CSS
I use a bare "renderLeaflet" function without additional arguments
I have also tried to display the leaflet in a bare dashboard box without any further arguments
Any obvious culprit anyone could think of causing this issue? Anyone observed similar issues?
I wonder if you solved the issue. I noticed the legend of a raster layer disappears when using the function d3heatmap, for instance d3heatmap(mtcars, scale="column", colors="Blues"). When the line with the heatmap is commented out the dashboard knites just fine -even when the library d3heatmap is loaded. I used the code from this example. Oh I just noticed this has been addressed and solved in other questions, for example here.

Burger menu from wordpress template

I'm just starting my programming but I need help.
I built my site from wordpress template. Made a lot of customization on my own but I have trouble by creating BURGER MENU on mobile devices.
I'm not sure how I can rewrite chosen template navigation bar menu to burger. Let me know if anyone could help me.
You could do it a few different ways, but personally, it's easier to place it with javascript and hide it with css...
Usually, you would create an element with javascript and attach it to a location on your page. For the burger itself, you've got the option of using drop-shadows, three divs or the unicode character for it. You can read more about those options here: https://css-tricks.com/three-line-menu-navicon/
Finally, if you want to add animation to your menu items (for opening / closing ) here's something that you can read to understand how it's possible to achieve: https://jonsuh.com/hamburgers/

Customizing product slider, WooCommerce

Iam somewhat of a newbie when it comes to wordpress. so bear with me.
ive been trying to make a simple slider that will display 3 catagories.
- books
- Boardgames
- office supplies
iam making it for someone who dosnt want a web store but just wanting it to display items in a meaningfull and dynamik way.
what ive tried is installing the WooCommerce plugin to make all my products and then installing the product slider by pickplugins.
I like the way it looks and i want to make two more. but i see no option to choose between different catagories in the slider options, so if i make 2 more sliders it will just display the same items (all of them).
the site is: http://nordborgboghandel.dk/
and the slider i want is something like there is on the frontpage.
anybody fixed a similar problem??
-Thanks!
Yes, I was once stuck into a same situation, in which we had to customize the slider. Basically you will have to play with the CSS and JS of the slider plugin which you have used to create the slider.
You can start of by having a look at the js and the css used by the slider. Refer the documentation of the slider if available, I am sure if they have any documentation you can have it customized easily by modifying some values in it. If not then you will have to check the JS code and try to hack it yourself to fit your needs.

Altering The Sorting Arrows In an R Shiny tabPanel

I didn't see anything here or in http://shiny.rstudio.com/reference/shiny that seems to hit on this problem.
In an R Shiny tabPanel output, the sorting arrows align with the right side of the search fields at the bottom of the page.
Here's a pretty good example:
http://shiny.rstudio.com/gallery/datatables-options.html
Is there a way to make them align just to the right of the column name text up top?
Alternatively (or possibly both), is there a way to change the color of the arrows?
The default greyish doesn't really stand out. Bonus points to make the up and down arrows different colors.
Doing it directly in RShiny is best, but I could muddle my way through .js or .css if needed.
I'm trying to head off imminent support requests of "the column is sorting wrong" and "I can't see the arrows" before I push into production.
At the bottom of that shiny example you showed they show that you can pass in through the options parameter options to the rendering for the DataTable table, via the shiny::renderDataTable() function.
Hopefully the http://datatables.net/ site has documentation on what you want if it's indeed possible
If you look at Developer Tools on the http://shiny.rstudio.com/gallery/datatables-options.html page maybe you can see what element would need to be changed.

Resources