Module: UiBibz::Helpers::Ui::Core::FormsHelper

Included in:
UiBibz::Helpers::Ui::CoreHelper
Defined in:
lib/ui_bibz/helpers/ui/core/forms_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_auto_complete_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Auto Complete Field Component

options (Hash) html_options (Hash)



137
138
139
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 137

def ui_auto_complete_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Texts::AutoCompleteField.new(content, options, html_options, &block).render
end

#ui_box_switch_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Box Switch Field Component

options (Hash) html_options (Hash)



89
90
91
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 89

def ui_box_switch_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Choices::BoxSwitchField.new(content, options, html_options, &block).render
end

#ui_button(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Button Component

options (Hash) html_options (Hash)



8
9
10
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 8

def ui_button(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Buttons::Button.new(content, options, html_options, &block).render
end

#ui_button_group(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Button Group Component

options (Hash) html_options (Hash)



24
25
26
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 24

def ui_button_group(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Buttons::ButtonGroup.new(content, options, html_options).tap(&block).render
end

Button Link Component

options (Hash) html_options (Hash)



32
33
34
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 32

def ui_button_link(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Buttons::ButtonLink.new(content, options, html_options, &block).render
end

#ui_checkbox_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Checkbox Field Component

options (Hash) html_options (Hash)



105
106
107
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 105

def ui_checkbox_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Choices::CheckboxField.new(content, options, html_options, &block).render
end

#ui_choice_group(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Choice group Component

options (Hash) html_options (Hash)



16
17
18
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 16

def ui_choice_group(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Choices::ChoiceGroup.new(content, options, html_options).tap(&block).render
end

#ui_date_picker_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Date Picker Field Component

options (Hash) html_options (Hash)



40
41
42
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 40

def ui_date_picker_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Dates::DatePickerField.new(content, options, html_options, &block).render
end

#ui_dropdown(name, options = nil, html_options = nil, &block) ⇒ Object

Dropdown Component

name (String) [Required] options (Hash) html_options (Hash)



154
155
156
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 154

def ui_dropdown(name, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Dropdowns::Dropdown.new(name, options, html_options).tap(&block).render
end

#ui_dropdown_select_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Dropdown Select Field Component

options (Hash) html_options (Hash)



129
130
131
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 129

def ui_dropdown_select_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Selects::DropdownSelectField.new(content, options, html_options, &block).render
end

#ui_file_field(name, options = nil, html_options = nil, &block) ⇒ Object

File Component

name (String) [Required] options (Hash) html_options (Hash)



208
209
210
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 208

def ui_file_field(name, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Files::FileField.new(name, options, html_options, &block).render
end

#ui_formula_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Formula Field Component

options (Hash) html_options (Hash)



73
74
75
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 73

def ui_formula_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Numbers::FormulaField.new(content, options, html_options, &block).render
end

#ui_markdown_editor_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Markdown Editor Field Component

options (Hash) html_options (Hash)



48
49
50
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 48

def ui_markdown_editor_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Textareas::MarkdownEditorField.new(content, options, html_options, &block).render
end

#ui_multi_column_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Multi Column Field Component

options (Hash) html_options (Hash)



56
57
58
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 56

def ui_multi_column_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Selects::MultiColumnField.new(content, options, html_options, &block).render
end

#ui_multi_select_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Multi Select Field Component

options (Hash) html_options (Hash)



64
65
66
67
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 64

def ui_multi_select_field(content = nil, options = nil, html_options = nil, &block)
  options = (options || {}).merge(multiple: true)
  UiBibz::Ui::Core::Forms::Selects::DropdownSelectField.new(content, options, html_options, &block).render
end

#ui_number_field(name, options = nil, html_options = nil, &block) ⇒ Object

Number Component

name (String) [Required] options (Hash) html_options (Hash)



172
173
174
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 172

def ui_number_field(name, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Numbers::NumberField.new(name, options, html_options, &block).render
end

#ui_radio_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Radio Field Component

options (Hash) html_options (Hash)



113
114
115
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 113

def ui_radio_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Choices::RadioField.new(content, options, html_options, &block).render
end

#ui_range_field(name, options = nil, html_options = nil, &block) ⇒ Object

Range Component

name (String) [Required] options (Hash) html_options (Hash)



181
182
183
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 181

def ui_range_field(name, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Numbers::RangeField.new(name, options, html_options, &block).render
end

#ui_select_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Select Field Component

options (Hash) html_options (Hash)



121
122
123
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 121

def ui_select_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Selects::SelectField.new(content, options, html_options, &block).render
end

#ui_slider_field(name, options = nil, html_options = nil, &block) ⇒ Object

Slider Component

name (String) [Required] options (Hash) html_options (Hash)



190
191
192
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 190

def ui_slider_field(name, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Numbers::SliderField.new(name, options, html_options, &block).render
end

#ui_slider_header(options, html_options = nil, &block) ⇒ Object

Slider Header Component

name (String) [Required] options (Hash) html_options (Hash)



199
200
201
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 199

def ui_slider_header(options, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Numbers::SliderHeader.new(nil, options, html_options, &block).render
end

#ui_split_dropdown(name, options = nil, html_options = nil, &block) ⇒ Object

Split Dropdown Component

name (String) [Required] options (Hash) html_options (Hash)



163
164
165
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 163

def ui_split_dropdown(name, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Dropdowns::SplitDropdown.new(name, options, html_options).tap(&block).render
end

#ui_surround_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Surround Field Component

options (Hash) html_options (Hash)



145
146
147
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 145

def ui_surround_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Surrounds::SurroundField.new(content, options, html_options).tap(&block).render
end

#ui_switch_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Switch Field Component

options (Hash) html_options (Hash)



97
98
99
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 97

def ui_switch_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Choices::SwitchField.new(content, options, html_options, &block).render
end

#ui_text_field(content = nil, options = nil, html_options = nil, &block) ⇒ Object

String Field Component

options (Hash) html_options (Hash)



81
82
83
# File 'lib/ui_bibz/helpers/ui/core/forms_helper.rb', line 81

def ui_text_field(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Forms::Texts::TextField.new(content, options, html_options, &block).render
end