A segmented control used in modGallery to switch the baseline for deltas/percentiles between the artist's body of work and the collection.

cmp_scope_toggle_ui(id = "cmp_scope", selected = "artist")

Arguments

id

Input id (default: "cmp_scope")

selected

Default selection: "artist" or "collection"

Value

HTML tags for the toggle

Examples

cmp_scope_toggle_ui()
#> <div class="cmp-toggle">
#>   <div class="form-group shiny-input-container">
#>     <input id="cmp_scope" type="checkbox" class="sw-switchInput" data-input-id="cmp_scope" data-on-text="Artist" data-off-text="Collection" data-label-text="Compare vs" data-label-width="auto" data-handle-width="auto" data-size="mini" checked="checked"/>
#>   </div>
#> </div>