Sha256: b3247d5306a965ca7fa66bc7e192d46ad8e04a63de32cd5f229c632ae89de808

Contents?: true

Size: 490 Bytes

Versions: 35

Compression:

Stored size: 490 Bytes

Contents

class CustomRenderer < Tabulous::DefaultRenderer

  def tabs_html
    <<-HTML.strip_heredoc
      <div class="tabs" class="from_custom_renderer">
        <ul>
          #{ tab_list_html }
        </ul>
      </div>
    HTML
  end

  def subtabs_html
    <<-HTML.strip_heredoc
      <div class="subtabs" class="from_custom_renderer">
        <ul>
          #{ subtab_list_html }
        </ul>
      </div>
    HTML
  end

protected

  def tab_html(tab)
    return '<li>stub</li>'
  end

end

Version data entries

35 entries across 6 versions & 1 rubygems

Version Path
tabulous-2.1.4 spec/applications/custom_renderer/rails_5-0-0/app/tabs/custom_renderer.rb
tabulous-2.1.4 spec/applications/custom_renderer/rails_4-2-0/app/tabs/custom_renderer.rb
tabulous-2.1.4 spec/applications/custom_renderer/rails_4-1-1/app/tabs/custom_renderer.rb
tabulous-2.1.4 spec/applications/custom_renderer/rails_4-0-5/app/tabs/custom_renderer.rb
tabulous-2.1.4 spec/applications/custom_renderer/shared/app/tabs/custom_renderer.rb
tabulous-2.1.3 spec/applications/custom_renderer/rails_3-2-13/app/tabs/custom_renderer.rb
tabulous-2.1.3 spec/applications/custom_renderer/rails_3-0-20/app/tabs/custom_renderer.rb
tabulous-2.1.3 spec/applications/custom_renderer/rails_3-1-12/app/tabs/custom_renderer.rb
tabulous-2.1.3 spec/applications/custom_renderer/shared/app/tabs/custom_renderer.rb
tabulous-2.1.3 spec/applications/custom_renderer/rails_4-2-0/app/tabs/custom_renderer.rb
tabulous-2.1.3 spec/applications/custom_renderer/rails_4-1-1/app/tabs/custom_renderer.rb
tabulous-2.1.3 spec/applications/custom_renderer/rails_4-0-5/app/tabs/custom_renderer.rb
tabulous-2.1.2 spec/applications/custom_renderer/rails_3-1-12/app/tabs/custom_renderer.rb
tabulous-2.1.2 spec/applications/custom_renderer/rails_3-0-20/app/tabs/custom_renderer.rb
tabulous-2.1.2 spec/applications/custom_renderer/rails_3-2-13/app/tabs/custom_renderer.rb
tabulous-2.1.2 spec/applications/custom_renderer/rails_4-0-5/app/tabs/custom_renderer.rb
tabulous-2.1.2 spec/applications/custom_renderer/rails_4-1-1/app/tabs/custom_renderer.rb
tabulous-2.1.2 spec/applications/custom_renderer/rails_4-2-0/app/tabs/custom_renderer.rb
tabulous-2.1.2 spec/applications/custom_renderer/shared/app/tabs/custom_renderer.rb
tabulous-2.1.1 spec/applications/custom_renderer/rails_3-0-20/app/tabs/custom_renderer.rb