Sha256: 497241d170f0204d46977fecf7a80cbb3dca2655c8e4a2e16ba34fa024e43c26

Contents?: true

Size: 410 Bytes

Versions: 17

Compression:

Stored size: 410 Bytes

Contents

module MotionPrime
  class BaseHeaderSection < Section
    include CellSectionMixin
    DEFAULT_HEADER_HEIGHT = 20

    element :title, text: proc { @options[:title] }
    element :hint, text: proc { @options[:hint] }

    before_initialize :prepare_header_options

    def prepare_header_options
      @cell_type = :header
    end

    def render_element?(name)
      @options[name].present?
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
motion-prime-0.8.4 motion-prime/sections/form/base_header_section.rb
motion-prime-0.8.3 motion-prime/sections/form/base_header_section.rb
motion-prime-0.8.2 motion-prime/sections/form/base_header_section.rb
motion-prime-0.8.1 motion-prime/sections/form/base_header_section.rb
motion-prime-0.8.0 motion-prime/sections/form/base_header_section.rb
motion-prime-0.7.2 motion-prime/sections/form/base_header_section.rb
motion-prime-0.7.1 motion-prime/sections/form/base_header_section.rb
motion-prime-0.7.0 motion-prime/sections/form/base_header_section.rb
motion-prime-0.6.0 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.7 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.6 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.5 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.4 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.3 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.2 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.1 motion-prime/sections/form/base_header_section.rb
motion-prime-0.5.0 motion-prime/sections/form/base_header_section.rb