Sha256: c0ff3eeae805119217acdffd70796693c5e468d47eedd91c56c7194301cb2c93

Contents?: true

Size: 460 Bytes

Versions: 10

Compression:

Stored size: 460 Bytes

Contents

require "formalist/element"
require "formalist/elements"
require "formalist/types"

module Formalist
  class Elements
    class TextArea < Field
      attribute :text_size, Types::String.enum("xsmall", "small", "normal", "large", "xlarge"), default: "normal"
      attribute :box_size, Types::String.enum("single", "small", "normal", "large", "xlarge"), default: "normal"
      attribute :code, Types::Bool
    end

    register :text_area, TextArea
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
formalist-0.5.4 lib/formalist/elements/standard/text_area.rb
formalist-0.5.3 lib/formalist/elements/standard/text_area.rb
formalist-0.5.2 lib/formalist/elements/standard/text_area.rb
formalist-0.5.1 lib/formalist/elements/standard/text_area.rb
formalist-0.5.0 lib/formalist/elements/standard/text_area.rb
formalist-0.4.2 lib/formalist/elements/standard/text_area.rb
formalist-0.4.1 lib/formalist/elements/standard/text_area.rb
formalist-0.4.0 lib/formalist/elements/standard/text_area.rb
formalist-0.3.0 lib/formalist/elements/standard/text_area.rb
formalist-0.2.3 lib/formalist/elements/standard/text_area.rb