Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zwacky/codeigniter_tab_builder
CodeIgniter library to build uniform tab elements with bootstrap styling
https://github.com/zwacky/codeigniter_tab_builder
Last synced: 5 days ago
JSON representation
CodeIgniter library to build uniform tab elements with bootstrap styling
- Host: GitHub
- URL: https://github.com/zwacky/codeigniter_tab_builder
- Owner: zwacky
- Created: 2013-07-05T09:06:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-10T11:24:44.000Z (over 11 years ago)
- Last Synced: 2024-04-13T17:06:34.665Z (7 months ago)
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Codeigniter Tab Builder
=======================CodeIgniter library to build uniform tab elements with bootstrap styling.
Functions
=========add_tabs($tabs)
---------------
* **$tabs** array adds a new tab. array must contain **id** and **name**.start_tab()
-----------
starts the wrapper for all the tab contentsstart_tab_content($id, $is_active)
----------------------------------
starts the content of a specific tab.
* **$id** string refers to the tab id, that will be activated upon click.
* **$is_active** boolean whether the tab should be shown at firstend_tab_content()
-----------------
ends the specific tab content.end_tab()
---------
ends all tab contents all together.Example
=======within the controller:
$this->load->library('tab_builder');
within the view:"tabContract{$idx}", 'name' => "Tab {$idx}"));
}
$this->tab_builder->add_tabs($_tabs);
?>
tab_builder->start_tab();
foreach (array(1, 2, 3) as $idx) {
$this->tab_builder->start_tab_content("tab{$target->contract_id}", ($idx == 1));
?>
tab content
tab_builder->end_tab_content();
} // end foreach
$this->tab_builder->end_tab();
?>