Module: Card::Set::All::Bootstrap::Table::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
tmpsets/set/mod026-bootstrap/all/bootstrap/table.rb

Defined Under Namespace

Classes: TableHelper

Instance Method Summary collapse

Instance Method Details

#table(content, opts = {}) ⇒ HTML

strings or arrays for each row. value of this option if it is a string

Parameters:

  • content (Array<Array,String>)

    the content for the table. Accepts

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • :header (String, Array)

    use first row of content as header or

Returns:

  • (HTML)

    bootstrap table



95
96
97
# File 'tmpsets/set/mod026-bootstrap/all/bootstrap/table.rb', line 95

def table content, opts={}
  TableHelper.new(self, content, opts).render
end