| a11y_column | R Documentation |
A wrapper for shiny::column() with optional ARIA attributes according to
BITV 2.0 and custom CSS class. Ensures responsive layout by validating that
columns have appropriate widths.
a11y_column(width, ..., offset = NULL, id = NULL, aria_label = NULL)
width |
Column width (as in |
... |
Content for column |
offset |
(optional) Column offset (as in |
id |
(optional) Column ID |
aria_label |
(optional) |
HTML <div> tag with classes for grid and a11y
# Simple column
a11y_column(6, htmltools::p("Half width content"))
# Column with offset and aria-label
a11y_column(4,
offset = 2,
aria_label = "Sidebar",
htmltools::p("Offset column")
)
# Column with a descriptive aria-label for a form section
a11y_column(4,
aria_label = "Histogram settings",
htmltools::p("Configuration controls go here")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.