2017 © Pedro Peláez
 

yii2-extension yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

image

kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  • Thursday, May 4, 2017
  • by kartik-v
  • Repository
  • 4 Watchers
  • 25 Stars
  • 177,152 Installations
  • PHP
  • 22 Dependents
  • 0 Suggesters
  • 19 Forks
  • 20 Open issues
  • 8 Versions
  • 8 % Grown

The README.md

Krajee Logo
yii2-tabs-x
Donate       kartikv

Stable Version Untable Version License Total Downloads Monthly Downloads Daily Downloads, (*1)

An extended tabs widget for Yii Framework 2 based on the bootstrap-tabs-x jQuery plugin by Krajee. This plugin includes various CSS3 styling enhancements and various tweaks to the core Bootstrap Tabs plugin. The extension supports Bootstrap 5.x or 4.x or 3.x library versions. It also helps you align tabs in multiple ways, add borders, achieve rotated/sideways titles, load tab content via ajax, and more., (*2)

Features

The plugin offers these enhanced features:, (*3)

  • Supports various tab opening directions: above (default), below, right, and left.
  • Allows you to box the tab content in a new bordered style. This can work with any of the tab directions above.
  • Allows you to align the entire tab content to the left (default), center, or right of the parent container/page.
  • Automatically align & format heights and widths for bordered tabs for right and left positions.
  • Allows a rotated sideways tab header orientation for the right and left tab directions.
  • Auto detect overflowing header labels for sideways orientation (with ellipsis styling) and display full label as a title on hover.

Demo

You can see detailed documentation and examples on usage of the extension., (*4)

Installation

The preferred way to install this extension is through composer., (*5)

NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*6)

Either run, (*7)

$ php composer.phar require kartik-v/yii2-tabs-x "@dev"

or add, (*8)

"kartik-v/yii2-tabs-x": "@dev"

to the require section of your composer.json file., (*9)

Usage

TabsX

use kartik\tabs\TabsX;

echo TabsX::widget([
    'position' => TabsX::POS_ABOVE,
    'align' => TabsX::ALIGN_LEFT,
    'items' => [
        [
            'label' => 'One',
            'content' => 'Anim pariatur cliche...',
            'active' => true
        ],
        [
            'label' => 'Two',
            'content' => 'Anim pariatur cliche...',
            'headerOptions' => ['style'=>'font-weight:bold'],
            'options' => ['id' => 'myveryownID'],
        ],
        [
            'label' => 'Dropdown',
            'items' => [
                 [
                     'label' => 'DropdownA',
                     'content' => 'DropdownA, Anim pariatur cliche...',
                 ],
                 [
                     'label' => 'DropdownB',
                     'content' => 'DropdownB, Anim pariatur cliche...',
                 ],
            ],
        ],
    ],
]);

Sticky Tabs

You can provides pushState (back and forward button support) to Bootstrap tabs. You can enable or disable sticky tabs behaviour by setting enableStickyTabs property. This will use the jquery.stickytabs plugin to enable the sticky tabs push state behavior. If you want to change the sticky tabs plugin settings you can set the stickyTabsOptions property., (*10)

echo TabsX::widget([
    'enableStickyTabs' => true,
    'stickyTabsOptions' => [
        'selectorAttribute' => 'data-target',
        'backToTop' => true,
    ],
    'items' => [
    // ... items here
    ]
]);

License

yii2-tabs-x is released under the BSD-3-Clause License. See the bundled LICENSE.md for details., (*11)

The Versions

04/05 2017

dev-master

9999999-dev https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs

04/05 2017

v1.2.4

1.2.4.0 https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs

09/09 2016

v1.2.3

1.2.3.0 https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs

12/01 2016

v1.2.2

1.2.2.0 https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs

27/06 2015

v1.2.1

1.2.1.0 https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs

05/03 2015

v1.2.0

1.2.0.0 https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs

10/11 2014

v1.1.0

1.1.0.0 https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs

05/10 2014

v1.0.0

1.0.0.0 https://github.com/kartik-v/yii2-tabs-x

An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap modal tabs extended tabs-x modal-tabs