Download the PHP package jmf/twig-tabs without Composer
On this page you can find all versions of the php package jmf/twig-tabs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jmf/twig-tabs
More information about jmf/twig-tabs
Files in jmf/twig-tabs
Download jmf/twig-tabs
More information about jmf/twig-tabs
Files in jmf/twig-tabs
Please rate this library. Is it a good library?
Informations about the package twig-tabs
Twig extension : tabs
Renders tabbed content from Twig templates.
Installation
Setup
Pass the Twig FilesystemLoader when registering the extension.
The @JmfTwigTabs namespace is registered automatically:
Usage in Twig templates
tabs() and tab()
Or passing an array:
tab() builder methods
| Method | Description |
|---|---|
.label(string $label) |
Tab header label |
.content(string $html) |
Raw HTML content for the tab pane |
.include(string $path, array $parameters) |
Render a template as the tab pane content |
.badge(?string $badge) |
Optional badge displayed next to the label |
Customising templates
Override individual templates by pointing $templatePath to your own entry point, or replace the @JmfTwigTabs namespace with your own templates directory. The five templates are:
bootstrap/tabs.html.twig— entry point, includes nav and contentbootstrap/nav-tabs.html.twig—<ul>tab navigationbootstrap/nav-item.html.twig— individual tab<li>+<a>bootstrap/tab-content.html.twig—<div class="tab-content">wrapperbootstrap/tab-pane.html.twig— individual tab pane<div>
All versions of twig-tabs with dependencies
PHP Build Version
Package Version
The package jmf/twig-tabs contains the following files
Loading the files please wait ...