flexdashboard icon indicating copy to clipboard operation
flexdashboard copied to clipboard

does tabset not work at the h4 level?

Open DataStrategist opened this issue 2 years ago • 1 comments

Perhaps related to this issue, but I think different enough to merit a new issue:

I'm struggling to add a tabset at the h4 granularity. Take a look at this code:

    ---
    title: "report x"
    output: 
      flexdashboard::flex_dashboard:
        orientation: rows
        vertical_layout: fill
    ---
    
    
    ```{r setup, include=FALSE}
    suppressPackageStartupMessages(library(flexdashboard))
    library(htmltools)
    ```
    
    # page1
    
    ```
    
    ## Row 2
    
    ### Chart 4 {.tabset .tabset-fade}
    
    ```{r}
    ```
    
    #### Subchart 4.1
    
    ```{r}
    ```   
     
    #### Subchart 4.2
        
    ```{r}
    ```
    
    ## Row 3 {.tabset .tabset-fade}
    
    ### Chart 5
    
    ```{r}
    ```
    
    ### Chart 6
    
    ```{r}
    ```

Which creates the following (Note Figure 4 isn't obeying the tabset):

image

Here, you can see that even though Figure 4 is allowed to consume the entire row (as is the case w/ the h3 around it), the tabset still doesn't work. In trying to figure out the limitations around tabset, is it the case that h4 entities will never work with the tabset?

DataStrategist avatar Feb 08 '23 11:02 DataStrategist

Another example from #392:

Is there a way to get Tabsets in Commentary just like this: example

gadenbuie avatar Feb 24 '23 19:02 gadenbuie