2017 © Pedro Peláez
 

yii2-extension yii2-stacked

A tabbed initerface alternative using a jquery plugin I also wrote

image

johnsnook/yii2-stacked

A tabbed initerface alternative using a jquery plugin I also wrote

  • Friday, July 6, 2018
  • by johnsnook
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

I was testing some software the other day, and was having trouble remembering where I'd put a particular feature when I realized it had been under my nose the whole time, in a tab pane. So I started thinking about a new way to put content out of the way without putting it out of sight, and this is what I came up with., (*1)

Requirements

  • PHP >= v5.4
  • Yii2 v2.14
  • jQuery v3.x
  • Bootstrap 3

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist johnsnook/yii2-stacked "*"

or add, (*4)

"johnsnook/yii2-stacked": "*"

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

Usage

Once the extension is installed, you can start using it in views immediately:, (*6)

<?php
    use johnsnook\stacked\StackedWidget;
    use johnsnook\stacked\PanelWidget;
?>
....

The PanelWidget is completely optional since the jQuery plugin will assume all top level children of the selected container are to be displayed, but PanelWidget makes panels quickly. Then main thing is that the nesting is kept clean and everything is between the StackedWidget::begin() and StackedWidget::end(), (*7)

...
 35,
        'containerOptions' => ['style' => 'margin-top:40px; margin-bottom:40px;'],
    ]);
    /** the panel widget makes nice and easy bootstrap 3 panels */
    PanelWidget::begin([
        'containerOptions' => ['class' => 'panel-success'],
        'title' => "Panel #1"
    ]);
?>


The two British divers who found 12 missing boys and their football coach alive in a flooded cave in Thailand boast extensive experience. Rick Stanton and John Volanthen, who reached the group nine days after they vanished, are so well known among cave rescuers that they had reportedly been requested specially. Yet their work is entirely voluntary; one is a firefighter, the other a computer engineer. And far from glorying in their role, Mr Volanthen had brushed off reporters as he entered the cave, saying only: “We’ve got a job to do.”, (*8)

['class' => 'panel-primary'], 'title' => "Panel #2" ]); ?>

An intensifying debate over Judge Brett M. Kavanaugh, a front-runner in President Trump’s search for a Supreme Court nominee, gripped Republicans on Tuesday, with conservative critics highlighting past rulings and his links to GOP leaders while his allies — including inside the White House — forcefully defended him., (*9)

Screenshot

stacked bs 3, (*10)

The Versions

06/07 2018

dev-master

9999999-dev https://snooky.biz/

A tabbed initerface alternative using a jquery plugin I also wrote

  Sources   Download

MIT

The Requires

 

by John Snook

plugin extension yii2 jquery widget tabbed

05/07 2018

v0.2

0.2.0.0 https://snooky.biz/

A tabbed initerface alternative using a jquery plugin I also wrote

  Sources   Download

MIT

The Requires

 

by John Snook

plugin extension yii2 jquery widget tabbed

04/07 2018

v0.1

0.1.0.0 https://snooky.biz/

A tabbed initerface alternative using a jquery plugin I also wrote

  Sources   Download

MIT

The Requires

 

by John Snook

plugin extension yii2 jquery widget tabbed