{"id":15585903,"url":"https://github.com/johnsnook/yii2-stacked","last_synced_at":"2025-03-29T08:46:18.500Z","repository":{"id":57000999,"uuid":"139646284","full_name":"johnsnook/yii2-stacked","owner":"johnsnook","description":"A tabbed interface alternative using a jquery plug I also wrote","archived":false,"fork":false,"pushed_at":"2018-07-06T16:35:49.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T23:35:58.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnsnook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-03T23:30:52.000Z","updated_at":"2018-07-06T16:35:50.000Z","dependencies_parsed_at":"2022-08-21T13:20:43.224Z","dependency_job_id":null,"html_url":"https://github.com/johnsnook/yii2-stacked","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsnook%2Fyii2-stacked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsnook%2Fyii2-stacked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsnook%2Fyii2-stacked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsnook%2Fyii2-stacked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnsnook","download_url":"https://codeload.github.com/johnsnook/yii2-stacked/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162113,"owners_count":20733354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T21:04:33.928Z","updated_at":"2025-03-29T08:46:18.479Z","avatar_url":"https://github.com/johnsnook.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Stacked: a tabbed alternative for Yii2\n=====================\n[![Latest Stable Version](https://poser.pugx.org/johnsnook/yii2-stacked/v/stable)](https://packagist.org/packages/johnsnook/yii2-stacked)![img](https://poser.pugx.org/johnsnook/yii2-stacked/downloads) ![img](https://poser.pugx.org/johnsnook/yii2-stacked/v/unstable) ![img](https://poser.pugx.org/johnsnook/yii2-stacked/license) ![img](https://poser.pugx.org/phpunit/phpunit/composerlock)\n\nI 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.\n\n## Requirements\n\n- PHP \u003e= v5.4\n- Yii2 v2.14\n- jQuery v3.x\n- Bootstrap 3\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```bash\nphp composer.phar require --prefer-dist johnsnook/yii2-stacked \"*\"\n```\n\nor add\n\n```\n\"johnsnook/yii2-stacked\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\n## Usage\n\n\nOnce the extension is installed, you can start using it in views immediately:\n\n```php\n\u003c?php\n\tuse johnsnook\\stacked\\StackedWidget;\n\tuse johnsnook\\stacked\\PanelWidget;\n?\u003e\n....\n```\n\nThe 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()`\n```php\n...\n\u003c?php\n    StackedWidget::begin([\n        'gutterSize' =\u003e 35,\n        'containerOptions' =\u003e ['style' =\u003e 'margin-top:40px; margin-bottom:40px;'],\n    ]);\n    /** the panel widget makes nice and easy bootstrap 3 panels */\n    PanelWidget::begin([\n        'containerOptions' =\u003e ['class' =\u003e 'panel-success'],\n        'title' =\u003e \"Panel #1\"\n    ]);\n?\u003e\n\u003cp\u003eThe 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.”\u003c/p\u003e\n\u003c?php\n    PanelWidget::end();\n\n    PanelWidget::begin([\n        'containerOptions' =\u003e ['class' =\u003e 'panel-primary'],\n        'title' =\u003e \"Panel #2\"\n    ]);\n?\u003e\n\u003cp\u003eAn 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.\u003c/p\u003e\n\u003c?php\n\tPanelWidget::end();\n\t/** all panels should be closed with ::end() before closing the StackedWidget. */\n    StackedWidget::end();\n?\u003e\n```\n\nScreenshot\n-----\n![stacked bs 3](https://user-images.githubusercontent.com/4065107/42294996-0c1528fc-7fb4-11e8-9f21-399ef994c82b.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsnook%2Fyii2-stacked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnsnook%2Fyii2-stacked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsnook%2Fyii2-stacked/lists"}