Sha256: aa084557091ef95997da542d4563fcab472c3c0ba1dbbb5bdb64d60687100ea5
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
module Trestle class Form module Fields class TagSelect < Select def initialize(builder, template, name, options={}, html_options={}) super(builder, template, name, nil, options, html_options) end def default_html_options super.merge(multiple: true, class: "tag-select", data: { tags: true, select_on_close: true }) end end end end end Trestle::Form::Builder.register(:tag_select, Trestle::Form::Fields::TagSelect)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.6 | lib/trestle/form/fields/tag_select.rb |
trestle-0.8.5 | lib/trestle/form/fields/tag_select.rb |
trestle-0.8.4 | lib/trestle/form/fields/tag_select.rb |