module KolorPicker::Helper
Public Instance Methods
colorpicker_options(options, html_options)
click to toggle source
# File lib/kolor-picker/helper.rb, line 3 def colorpicker_options(options, html_options) html_options.deep_merge({ :data => { :"widget-kolor-picker" => options.to_json } }) end
colorpicker_tag(name, value = nil, options = {}, html_options = {})
click to toggle source
# File lib/kolor-picker/helper.rb, line 11 def colorpicker_tag(name, value = nil, options = {}, html_options = {}) text_field_tag(name, value, colorpicker_options(options, html_options)) end