Sha256: e4dfb27ffc5bc3aab89c366706e912cdb38dabc3a66e0ed9df86a47fc3d6bad3

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

module Druid
  module Elements
    class TextField < Element

      def self.finders
        super + [:text, :title, :label]
      end

      #
      # Set the value of the TextField
      #
      def value=(new_value)
        element.set(new_value)
      end

      def append text
        element.append text
      end
    end

    Druid::Elements.type_to_class[:text] = Druid::Elements::TextField
    Druid::Elements.type_to_class[:password] = Druid::Elements::TextField

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.2.2 lib/druid/elements/text_field.rb
druid-ts-1.2.1 lib/druid/elements/text_field.rb