Sha256: f7ae4e6e03e06f077626ca38eeaebfa9fca4e1fe5d7a03177520df69bd5b2f58
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
module Druid module Elements class SelectList < Element def self.finders super + [:value, :text] end def [](idx) Druid::Elements::Option.new(options[idx]) end def options element.options end # # Select a value from the list # def select(value) element.select(value) end end Druid::Elements.tag_to_class[:select] = Druid::Elements::SelectList end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.1.1 | lib/druid/elements/select_list.rb |
druid-ts-1.1.0 | lib/druid/elements/select_list.rb |