Sha256: 18c13dd083e3ed88b63f563e7e9e38ac6ff3f56b144cdbd229560ebad9a21589
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
motion_require '../table/base_cell_section' module MotionPrime class BaseHeaderSection < BaseCellSection include CellSection DEFAULT_HEADER_HEIGHT = 20 element :title, text: proc { @options[:title] } def initialize(options = {}) @cell_type = :header super end def section_styles table.cell_styles(self) end def container_height container_options[:height] || DEFAULT_HEADER_HEIGHT end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.3.2 | motion-prime/sections/form/base_header_section.rb |
motion-prime-0.3.1 | motion-prime/sections/form/base_header_section.rb |