Class: Shoelace::Rails::Ui::FormHelper::ShoelaceColorPicker

Inherits:
ActionView::Helpers::Tags::ColorField
  • Object
show all
Defined in:
app/helpers/shoelace/rails/ui/form_helper.rb

Overview

:nodoc:

Constant Summary collapse

RGB_VALUE_REGEX =
/#[0-9a-fA-F]{6}/

Instance Method Summary collapse

Instance Method Details

#field_typeObject



56
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 56

def field_type; nil; end

#tag(tag_name, *args, &block) ⇒ Object



58
59
60
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 58

def tag(tag_name, *args, &block)
  tag_name.to_s == 'input' ? ('sl-color-picker', '', *args, &block) : super
end