Skip to contents

Version 0.4.2 focuses on reliable navigation, reliable filters and native-bound form controls. Existing behavior remains the default. This guide describes the 0.4.2 release; check packageVersion("glasstabs") before using new arguments if your installed package may be an earlier version.

Modern workspaces

Workspace tabs with drag handles
Workspace tabs with drag handles
glassTabsUI("workspace",
  glassTabPanel("edit", "Edit", shiny::textInput("title", "Title")),
  glassTabPanel("preview", "Preview", shiny::p("Preview"), closable = TRUE),
  style = "segmented", indicator = "solid", transition = "none",
  reorderable = TRUE, persist_order = "session", touch_reorder = TRUE,
  equal_width = TRUE, glass_strength = 0.25, theme = "auto")

Desktop, keyboard and touch handles share the reorder controller. -tab_order reports the order; -close_request asks the server to remove a tab. See the tabs guide for storage precedence and closure authorization.

Select dimensions and surfaces

glassSelect("month", month.abb, width = "130px", size = "sm",
            glass_strength = 0.25, theme = "auto")
glassMultiSelect("region", c("North", "South"), width = "100%",
                 dropdown_max_height = "18rem", size = "sm")

The original 160px width remains the default. Narrow fields respect their parent. Panels respond to visible viewport changes and use a scrolling fallback in very tight space.

Native-bound form controls

Switch, radio, and checkbox controls
Switch, radio, and checkbox controls
glassSwitch("enabled", "Enable filters", TRUE)
glassRadioGroup("mode", "Mode", c("Edit", "Preview"))
glassCheckboxGroup("columns", "Columns", c("Name", "County"))

Use ordinary Shiny server input values and update functions. See the component gallery for examples and the cheatsheet for a compact reference.

Reliability improvements

Dropdowns respect modal focus boundaries, dismiss when their pane goes inactive, and scroll options without moving the page. Nested widgets own their shape and theme. Appended panes load dependencies and bind before their links are committed. Failed/cancelled appends clean up their pending operation.

Try 0.4.2

runGlassExample("modernization")
runGlassExample("final-features")

Review the changelog, troubleshooting and deployment guide for more examples. Physical mobile and third-party widget integration can be checked in the interactive examples.