Sha256: 26b4abe3fdcf1eae2d4de4dd2ff0b7d46c19c50c341fe840952da38e7fb1a3aa
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
require_relative "select" 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", disabled: readonly?, data: { tags: true }) end end end end end Trestle::Form::Builder.register(:tag_select, Trestle::Form::Fields::TagSelect)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.9.3 | lib/trestle/form/fields/tag_select.rb |