class Ezframe::TextareaType
Public Instance Methods
form(opts = {})
click to toggle source
# File lib/ezframe/column_type.rb, line 152 def form(opts = {}) return nil if no_edit? && !opts[:force] val = @value key = self.key key ="#{key}#{opts[:key_suffix]}" if opts[:key_suffix] h = Ht.textarea(name: key, label: @attribute[:label], child: val) h[:class] = @attribute[:class] if @attribute[:class] h[:after] = make_error_box(key) return h end
value=(val)
click to toggle source
# File lib/ezframe/column_type.rb, line 147 def value=(val) @value = normalize(val) @value = val end