summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-10-28 13:42:49 +0200
committerGitHub <noreply@github.com>2016-10-28 13:42:49 +0200
commit1c535c492e59965a73b606e93a3d3b4fc1212a3d (patch)
tree84457221017ab3ba149871a32c417276b9ae5232 /user_guide_src/source/libraries
parent015c9a03447a7367ab1e5a2357ad7aac2b2e581f (diff)
parent6b33b232aa21f4db38ead696321287768751cfd1 (diff)
Merge pull request #4826 from gxgpet/develop2
Make CI_Table::clear() reset captions
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r--user_guide_src/source/libraries/table.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/user_guide_src/source/libraries/table.rst b/user_guide_src/source/libraries/table.rst
index 91ae1ae8d..3cd120f95 100644
--- a/user_guide_src/source/libraries/table.rst
+++ b/user_guide_src/source/libraries/table.rst
@@ -275,11 +275,12 @@ Class Reference
:returns: CI_Table instance (method chaining)
:rtype: CI_Table
- Lets you clear the table heading and row data. If you need to show multiple tables with different data you should to call this method
+ Lets you clear the table heading, row data and the caption. If you need to show multiple tables with different data you should to call this method
after each table has been generated to clear the previous table information. Example::
$this->load->library('table');
+ $this->table->set_caption('Preferences');
$this->table->set_heading('Name', 'Color', 'Size');
$this->table->add_row('Fred', 'Blue', 'Small');
$this->table->add_row('Mary', 'Red', 'Large');
@@ -289,6 +290,7 @@ Class Reference
$this->table->clear();
+ $this->table->set_caption('Shipping');
$this->table->set_heading('Name', 'Day', 'Delivery');
$this->table->add_row('Fred', 'Wednesday', 'Express');
$this->table->add_row('Mary', 'Monday', 'Air');