| #' | #' | ||||
| #' @inheritParams bulma_column | #' @inheritParams bulma_column | ||||
| #' @examples | #' @examples | ||||
| #' bulma_column_options(size = "one-half", offset = "one-quarter") | |||||
| #' bulma_column_options(size = "half", offset = "one-quarter") | |||||
| #' | #' | ||||
| #' @export | #' @export | ||||
| bulma_column_options <- function(size = NULL, width = NULL, offset = NULL, narrow = NULL, | bulma_column_options <- function(size = NULL, width = NULL, offset = NULL, narrow = NULL, |
| item = level_item, | item = level_item, | ||||
| header = level_item_header | header = level_item_header | ||||
| ) | ) | ||||
| tag_f <- tag_function(container_tag) | |||||
| tag_f <- tag_function(match.arg(container_tag)) | |||||
| x <- tag_f( | x <- tag_f( | ||||
| class = paste("level", if (is_mobile) "is-mobile"), | class = paste("level", if (is_mobile) "is-mobile"), | ||||
| level_side(left), | level_side(left), | ||||
| level_item_f(...), | level_item_f(...), | ||||
| level_side(right) | |||||
| level_side(right, "right") | |||||
| ) | ) | ||||
| x | x |
| Bulma Column Options | Bulma Column Options | ||||
| } | } | ||||
| \examples{ | \examples{ | ||||
| bulma_column_options(size = "one-half", offset = "one-quarter") | |||||
| bulma_column_options(size = "half", offset = "one-quarter") | |||||
| } | } |