Skip to contents

[Experimental]
Designed to group panel_item elements. Used to handle shiny inputs in the encoding panel.

Usage

panel_group(..., id = NULL)

Arguments

...

(shiny.tag)
panels created by panel_group()

id

optional, (character)

Value

(shiny.tag)

Examples


library(shiny)
panel_group(
  panel_item(
    title = "Display",
    collapsed = FALSE,
    checkboxGroupInput(
      "check",
      "Tables display",
      choices = LETTERS[1:3],
      selected = LETTERS[1]
    ),
    radioButtons(
      "radio",
      label = "Plot type",
      choices = letters[1:2],
      selected = letters[1]
    )
  ),
  panel_item(
    title = "Pre-processing",
    radioButtons(
      "filtering",
      "What to filter",
      choices = LETTERS[1:4],
      selected = LETTERS[1]
    ),
    radioButtons(
      "na_action",
      "NA action",
      choices = letters[1:3],
      selected = letters[1]
    )
  )
)
#> <div class="panel-group">
#>   <div>
#>     <div id="_div" class="panel panel-default">
#>       <div class="panel-heading " data-toggle="collapse" href="#_panel_body_9286" aria-expanded="true">
#>         <i class="fas fa-angle-down dropdown-icon" role="presentation" aria-label="angle-down icon"></i>
#>         <label class="panel-title inline">Display</label>
#>       </div>
#>       <div class="panel-collapse collapse in" id="_panel_body_9286">
#>         <div class="panel-body">
#>           <div id="check" class="form-group shiny-input-checkboxgroup shiny-input-container" role="group" aria-labelledby="check-label">
#>             <label class="control-label" id="check-label" for="check">Tables display</label>
#>             <div class="shiny-options-group">
#>               <div class="checkbox">
#>                 <label>
#>                   <input type="checkbox" name="check" value="A" checked="checked"/>
#>                   <span>A</span>
#>                 </label>
#>               </div>
#>               <div class="checkbox">
#>                 <label>
#>                   <input type="checkbox" name="check" value="B"/>
#>                   <span>B</span>
#>                 </label>
#>               </div>
#>               <div class="checkbox">
#>                 <label>
#>                   <input type="checkbox" name="check" value="C"/>
#>                   <span>C</span>
#>                 </label>
#>               </div>
#>             </div>
#>           </div>
#>           <div id="radio" class="form-group shiny-input-radiogroup shiny-input-container" role="radiogroup" aria-labelledby="radio-label">
#>             <label class="control-label" id="radio-label" for="radio">Plot type</label>
#>             <div class="shiny-options-group">
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="radio" value="a" checked="checked"/>
#>                   <span>a</span>
#>                 </label>
#>               </div>
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="radio" value="b"/>
#>                   <span>b</span>
#>                 </label>
#>               </div>
#>             </div>
#>           </div>
#>         </div>
#>       </div>
#>     </div>
#>   </div>
#>   <div>
#>     <div id="_div" class="panel panel-default">
#>       <div class="panel-heading collapsed" data-toggle="collapse" href="#_panel_body_6294" aria-expanded="false">
#>         <i class="fas fa-angle-right dropdown-icon" role="presentation" aria-label="angle-right icon"></i>
#>         <label class="panel-title inline">Pre-processing</label>
#>       </div>
#>       <div class="panel-collapse collapse " id="_panel_body_6294">
#>         <div class="panel-body">
#>           <div id="filtering" class="form-group shiny-input-radiogroup shiny-input-container" role="radiogroup" aria-labelledby="filtering-label">
#>             <label class="control-label" id="filtering-label" for="filtering">What to filter</label>
#>             <div class="shiny-options-group">
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="filtering" value="A" checked="checked"/>
#>                   <span>A</span>
#>                 </label>
#>               </div>
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="filtering" value="B"/>
#>                   <span>B</span>
#>                 </label>
#>               </div>
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="filtering" value="C"/>
#>                   <span>C</span>
#>                 </label>
#>               </div>
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="filtering" value="D"/>
#>                   <span>D</span>
#>                 </label>
#>               </div>
#>             </div>
#>           </div>
#>           <div id="na_action" class="form-group shiny-input-radiogroup shiny-input-container" role="radiogroup" aria-labelledby="na_action-label">
#>             <label class="control-label" id="na_action-label" for="na_action">NA action</label>
#>             <div class="shiny-options-group">
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="na_action" value="a" checked="checked"/>
#>                   <span>a</span>
#>                 </label>
#>               </div>
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="na_action" value="b"/>
#>                   <span>b</span>
#>                 </label>
#>               </div>
#>               <div class="radio">
#>                 <label>
#>                   <input type="radio" name="na_action" value="c"/>
#>                   <span>c</span>
#>                 </label>
#>               </div>
#>             </div>
#>           </div>
#>         </div>
#>       </div>
#>     </div>
#>   </div>
#> </div>