Class: Shoelace::Rails::Ui::FormHelper::ShoelaceColorPicker
- Inherits:
-
ActionView::Helpers::Tags::ColorField
- Object
- ActionView::Helpers::Tags::ColorField
- Shoelace::Rails::Ui::FormHelper::ShoelaceColorPicker
- 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_type ⇒ Object
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' ? content_tag('sl-color-picker', '', *args, &block) : super end |