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

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod021-card-mod-bootstrap/all/bootstrap/table.rb,
card/tmpsets/set/mod022-card-mod-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



103
104
105
# File 'card/tmpsets/set/mod021-card-mod-bootstrap/all/bootstrap/table.rb', line 103

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