Selaa lähdekoodia

Add centered parameter to bulma_columns()

master
Garrick Aden-Buie 7 vuotta sitten
vanhempi
commit
734af042a1
2 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. +4
    -1
      R/columns.R
  2. +3
    -1
      man/bulma_columns.Rd

+ 4
- 1
R/columns.R Näytä tiedosto

#' @param gap Gap between colums, integer from 0 to 8 #' @param gap Gap between colums, integer from 0 to 8
#' @param multiline Should columns wrap to multiple lines (allows columns whose #' @param multiline Should columns wrap to multiple lines (allows columns whose
#' width or size add up to more than the screen width). #' width or size add up to more than the screen width).
#' @param centered Should columns be centered on the screen?
#' @param class Extra classes that should be applied to the `columns` container. #' @param class Extra classes that should be applied to the `columns` container.
#' @param style CSS styles applied to the `columns` container. #' @param style CSS styles applied to the `columns` container.
#' @param column_options Column options to be applied to each column. Use #' @param column_options Column options to be applied to each column. Use
breakpoint = "tablet", breakpoint = "tablet",
gap = NULL, gap = NULL,
multiline = TRUE, multiline = TRUE,
centered = FALSE,
class = NULL, class = NULL,
style = NULL, style = NULL,
column_options = NULL column_options = NULL
paste(unlist(class), collapse = " "), paste(unlist(class), collapse = " "),
breakpoint, breakpoint,
gap, if (length(gap)) "is-variable", gap, if (length(gap)) "is-variable",
if (multiline) "is-multiline"
if (multiline) "is-multiline",
if (centered) "is-centered"
) )


ret <- tag("div", list(class = str_trim(class), style = style, ret <- tag("div", list(class = str_trim(class), style = style,

+ 3
- 1
man/bulma_columns.Rd Näytä tiedosto

\title{Bulma Columns} \title{Bulma Columns}
\usage{ \usage{
bulma_columns(..., breakpoint = "tablet", gap = NULL, bulma_columns(..., breakpoint = "tablet", gap = NULL,
multiline = TRUE, class = NULL, style = NULL,
multiline = TRUE, centered = FALSE, class = NULL, style = NULL,
column_options = NULL) column_options = NULL)
} }
\arguments{ \arguments{
\item{multiline}{Should columns wrap to multiple lines (allows columns whose \item{multiline}{Should columns wrap to multiple lines (allows columns whose
width or size add up to more than the screen width).} width or size add up to more than the screen width).}


\item{centered}{Should columns be centered on the screen?}

\item{class}{Extra classes that should be applied to the \code{columns} container.} \item{class}{Extra classes that should be applied to the \code{columns} container.}


\item{style}{CSS styles applied to the \code{columns} container.} \item{style}{CSS styles applied to the \code{columns} container.}

Loading…
Peruuta
Tallenna