# vim: sw=3 ts=3 ft=org

#+TITLE: Table Element Element
#+STYLE: <LINK href='../stylesheet.css' rel='stylesheet' type='text/css' />
#+AUTHOR: Rusty Klophaus (@rustyio)
#+OPTIONS:   H:2 num:1 toc:1 \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+EMAIL: 
#+TEXT: [[file:../index.org][Getting Started]] | [[file:../api.org][API]] | [[file:../elements.org][*Elements*]] | [[file:../actions.org][Actions]] | [[file:../validators.org][Validators]] | [[file:../handlers.org][Handlers]] | [[file:../config.org][Configuration Options]] | [[file:../about.org][About]]

* Table Element - #table {}

The table element allows you to build an HTML table in Nitrogen.

** Usage

#+BEGIN_SRC erlang

   #table { rows=[
     #tablerow { cells=[
       #tableheader { text="Name" },
       #tableheader { text="Location" }
     ]},
     #tablerow { cells=[
       #tablecell { text="Rusty" },
       #tablecell { text="USA" }
     ]},
     #tablerow { cells=[
       #tablecell { text="Jon" },
       #tablecell { text="Iceland" }
     ]},
     #tablerow { cells=[
       #tablecell { text="Martin" },
       #tablecell { text="Germany" }
     ]}	
   ]}
#+END_SRC

** Attributes

   + rows - (/One or more tablerow elements./) :: Set the rows to be rendered within the table element.

** See Also

   + [[./base.html][base element]]

   + [[./tablerow.html][tablerow element]]

   + [[./tableheader.html][tableheader element]]

   + [[./tablecell.html][tablecell element]]

   + [[./singlerow.html][singlerow element]]

 
