bulma_form: Bulma Forms

Description Usage Arguments Functions See Also

View source: R/bulma-form.R

Description

Forms exist everywhere user input is needed. These are the general containers that comprise forms.

Form

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
bulma_form(..., tag = tags$form)

bulma_form_field(
  ...,
  attach = FALSE,
  attach_align = c("left", "centered", "right"),
  grouped = FALSE,
  grouped_align = c("left", "centered", "right"),
  grouped_multiline = FALSE,
  tag = tags$div
)

bulma_form_horizontal_field(..., tag = tags$div)

bulma_form_horizontal_field_label(
  ...,
  size = c("small", "medium", "large"),
  outer_tag = tags$div,
  inner_tag = tags$label
)

bulma_form_horizontal_field_body(..., tag = tags$div)

bulma_form_fieldset(..., disabled = FALSE, tag = tags$fieldset)

bulma_form_control(
  ...,
  icons = NULL,
  expanded = FALSE,
  loading = FALSE,
  tag = htmltools::tags$div
)

bulma_form_label(..., tag = tags$label)

bulma_form_help(
  ...,
  color = c("primary", "link", "info", "success", "warning", "danger"),
  tag = tags$p
)

bulma_form_icon(
  icon,
  ...,
  align = c("left", "right"),
  size = c("small", "normal", "medium", "large"),
  color = c("primary", "link", "info", "success", "warning", "danger", "white",
    "black", "light", "dark", "black-bis", "black-ter", "grey-darker", "grey-dark",
    "grey-light", "grey-lighter", "white-ter", "white-bis"),
  tag = tags$span
)

Arguments

...

(tags) content

tag

(fn) default HTML content

attach

(flag) whether the controls here are attached to each other.

attach_align

(string) if attached, then alignment of the controls

grouped

(flag) controls are grouped in some way

grouped_align

(string) if grouped, alignment of the group

grouped_multiline

(flag) whether the group can wrap around; ideal for long lists of controls.

outer_tag, inner_tag

(fun) functions for the outer and inner tag.

disabled

(flag) disabled all the fields in this fieldset

icons

(str) if there are any bulma_form_icon()s, the alignment

expanded

(flg) whether the control stretches fully

loading

(flg) whether the elements are loading

icon

icon class for the icon set

align, size, color

styling parameters

Functions

See Also

Other Bulma Form Components: bulma_form_button(), bulma_form_checkbox(), bulma_form_file(), bulma_form_input(), bulma_form_radio(), bulma_form_select(), bulma_form_textarea()


tjpalanca/bulma.R documentation built on Dec. 23, 2021, 10:58 a.m.