class UiBibz::Ui::Core::Forms::Buttons::ButtonGroupSplitDropdown

Create a button choice

This element is an extend of UiBibz::Ui::Core::Forms::Buttons::Button

Attributes

Options

You can add HTML attributes using the html_options. You can pass arguments in options attribute:

Signatures

UiBibz::Ui::Core::Forms::Buttons::Choice.new(content, options = nil, html_options = nil)

UiBibz::Ui::Core::Forms::Buttons::Choice.new(options = nil, html_options = nil) do
  content
end

Examples

UiBibz::Ui::Core::Forms::Buttons::Choice.new('test', state: :active)

UiBibz::Ui::Core::Forms::Buttons::Choice.new({id: 'state', input_html_options: { class: 'state'}}, { class: 'lable-class'}) do
  test
end.render

Helper

choice(content, options = {}, html_options = {})

choice(options = {}, html_options = {}) do
  content
end

Private Instance Methods

component_html_classes() click to toggle source

See UiBibz::Ui::Core::Forms::Buttons::Button.initialize

# File lib/ui_bibz/ui/core/forms/buttons/components/button_group_split_dropdown.rb, line 64
def component_html_classes
  super << 'btn-group'
end