Comments (9)
I want to add should have way to start box with box collapsed. Is this possible in the current code?
from shinydashboard.
from shinydashboard.
It looks like this might require replacing the $.AdminLTE.tree
function from app.js so that the expanded treeviews don't have the active
class, but something else. Also it'll require some CSS to display the treeviews without the active
class.
from shinydashboard.
Good news! Thanks!
from shinydashboard.
It would also be useful to show and highlight the newly active menuItem or menuSubItem when using
updateTabItems
from shinydashboard.
The menuItem expanded/collapsed state should also be bookmarkable.
from shinydashboard.
@wch I guess this means that we should also allow bookmarking of the expanded/collapsed state of the whole sidebar, right? (this may affect #186)
from shinydashboard.
Note for future stumblers on this issue:
Once #199 is merged, the way to start with a "childfull" menuItem()
expanded will to use the startExpanded
argument. For example, in the app below, the last menuItem
("Charts"
) starts expanded and it's first child ("Sub-item 1"
) starts selected:
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(
sidebarMenu(
# Setting id makes input$tabs give the tabName of currently-selected tab
id = "tabs",
menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")),
menuItem("Widgets", icon = icon("th"), tabName = "widgets", badgeLabel = "new"),
menuItem("Charts", icon = icon("bar-chart-o"), startExpanded = TRUE,
menuSubItem("Sub-item 1", tabName = "subitem1", selected = TRUE),
menuSubItem("Sub-item 2", tabName = "subitem2")
)
)
),
dashboardBody(),
title = "Dashboard example"
),
server = function(input, output) { }
)
from shinydashboard.
Closed in #199
from shinydashboard.
Related Issues (20)
- messageItem() with timestamp produces warning
- When changing the button theme, its color is still gray / black. HOT 1
- Update to new version bootstrap? implement bslib?
- leafletProxy not working HOT 2
- language dropdownMenu HOT 1
- When using startExpanded = TRUE the arrow icon isn't pointing downwards HOT 1
- Maximizing tabBox with a sidebar will add a horizontal Scrollbar to the box HOT 3
- Dashboard sidebar starts uncollapsed HOT 2
- SidebarMenu menuItem href elements contain the aria-selected tag HOT 1
- can not see my second tabitem after clicking action button HOT 1
- Error with publication of a Shiny App with R
- [Update request] The default icon for menuSubItem() "angle-double-right" is now "angles-right" in Font Awesome 6.0.0 HOT 5
- dynamic footer HOT 6
- FYI copyright on the shinydashboard website HOT 1
- dashboardPage shouldn't create <title> HTML tags if title = NULL HOT 1
- dashboardBody not showing when conditionalPanel is used HOT 1
- Toggling boxes to collapse has unexpected results with nested boxes HOT 1
- ShinyDash fails to render since R4.3 added to computer. HOT 3
- `shinydashboard::updateTabItems` not matching `shiny::updateTabsetPanel` HOT 2
- Why use unsecure AdminLTE? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shinydashboard.