Skip to content

Table System : Data Structure

elplatt edited this page Dec 11, 2012 · 1 revision

Tables follow the following structure:

array(
  id => 'css id',
  class => 'css class'
  columns => array(
    array(
      'title' => 'Header Title 1',
      'id' => 'css id'
      'class' => 'css class'
      ),
    array(
      'title' => 'Header Title 2',
      'id' => 'css id'
      'class' => 'css class'
      ),
    ...
    ),
  rows => array(
    array(
      'Row 1, Cell 1',
      'Row 1, Cell 2',
      ...
      ),
    array(
      'Row 2, Cell 1',
      'Row 2, Cell 2',
      ...
    ),
    ...
  )