Class: Dima::Html::IconField

Inherits:
SimpleField show all
Defined in:
lib/dima/html/field.rb

Instance Attribute Summary

Attributes inherited from SimpleField

#height, #klass, #lambda, #model, #name, #readonly, #width

Attributes inherited from Field

#after, #align, #before, #edit, #form, #has_errors, #hint, #label, #required, #tooltip, #url

Instance Method Summary collapse

Methods inherited from SimpleField

#<<, #>>, #empty?, #main_content_node, #readonly?

Methods inherited from Field

#after_node, #before_node, #edit?, #empty_node, #label_node, #options, #to_n, #url_node, #val, #val=, #validate, #value_node

Methods included from Init

#initialize

Methods inherited from Element

#id, #id=

Instance Method Details

#simple_value_nodeObject



401
402
403
# File 'lib/dima/html/field.rb', line 401

def simple_value_node
  Node.new(tag: 'img', attributes: { class: 'dim-main-content dim-icon', src: self.val })
end