Sha256: d6f17b09e961fd8d50fbaa38e80639af5801bbc18792deddfe86db9385cb3c44

Contents?: true

Size: 565 Bytes

Versions: 5

Compression:

Stored size: 565 Bytes

Contents

module MasterView
  module Directives

    class TextArea < MasterView::DirectiveBase

      metadata :priority => :default,
        :category => 'form',
        :description => 'Replaces the element with a textarea input element using the Rails text_area helper.',
        :element_usage => 'textarea'

      attr_arg :obj, :quote => true
      attr_arg :method, :quote => true
      attr_arg :options, :append_element_attrs => [:common_html]

      event :element do
        render erb_content( 'text_area', :obj, :method, :options )
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masterview-0.3.0 lib/masterview/directives/text_area.rb
masterview-0.3.4 lib/masterview/directives/text_area.rb
masterview-0.3.1 lib/masterview/directives/text_area.rb
masterview-0.3.2 lib/masterview/directives/text_area.rb
masterview-0.3.3 lib/masterview/directives/text_area.rb