Get ids of element in gridlayout object

get_element_ids(x)

Arguments

x

Object of class "gridlayout".

Value

Character vector of ids of all elements in layout

See also

Examples


grid_obj <- md_to_gridlayout(
  layout_table = "
        |      |120px   |1fr    |1fr    |
        |------|--------|-------|-------|
        |100px |header  |header |header |
        |1fr   |sidebar |plot_a |plot_a |
        |1fr   |sidebar |plot_b |plot_c |"
 )

get_element_ids(grid_obj)
#> [1] "header"  "sidebar" "plot_a"  "plot_b"  "plot_c"