From 7428ff0cebbf89d6ad8dd9c8b77a5e0103e13c68 Mon Sep 17 00:00:00 2001 From: AdwinTrave Date: Wed, 4 Jun 2014 17:44:17 -0500 Subject: Updating table template prototype id documentation Updating template prototype in documentation to reflect the actual template prototype in the table library. --- user_guide_src/source/libraries/table.rst | 36 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'user_guide_src') diff --git a/user_guide_src/source/libraries/table.rst b/user_guide_src/source/libraries/table.rst index 9d95eddfc..bb001e84c 100644 --- a/user_guide_src/source/libraries/table.rst +++ b/user_guide_src/source/libraries/table.rst @@ -95,24 +95,30 @@ The Table Class permits you to set a table template with which you can specify the design of your layout. Here is the template prototype:: $template = array( - 'table_open' => '', + 'table_open' => '
', - 'heading_row_start' => '', - 'heading_row_end' => '', - 'heading_cell_start' => '', + 'thead_open' => '', + 'thead_close' => '', - 'row_start' => '', - 'row_end' => '', - 'cell_start' => '', + 'heading_row_start' => '', + 'heading_row_end' => '', + 'heading_cell_start' => '', - 'row_alt_start' => '', - 'row_alt_end' => '', - 'cell_alt_start' => '', + 'tbody_open' => '', + 'tbody_close' => '', - 'table_close' => '
', - 'heading_cell_end' => '
', - 'cell_end' => '
', + 'heading_cell_end' => '
', - 'cell_alt_end' => '
' + 'row_start' => '', + 'row_end' => '', + 'cell_start' => '', + 'cell_end' => '', + + 'row_alt_start' => '', + 'row_alt_end' => '', + 'cell_alt_start' => '', + 'cell_alt_end' => '', + + 'table_close' => '' ); $this->table->set_template($template); @@ -288,4 +294,4 @@ Class Reference $this->table->add_row('Mary', 'Monday', 'Air'); $this->table->add_row('John', 'Saturday', 'Overnight'); - echo $this->table->generate(); \ No newline at end of file + echo $this->table->generate(); -- cgit v1.2.3-24-g4f1b