{"id":21001029,"url":"https://github.com/derekisbusy/yii2-panel","last_synced_at":"2025-05-14T23:32:19.176Z","repository":{"id":56965905,"uuid":"44827158","full_name":"derekisbusy/yii2-panel","owner":"derekisbusy","description":"Collapsable Bootstrap panel widget","archived":false,"fork":false,"pushed_at":"2019-06-21T17:47:45.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T08:07:42.968Z","etag":null,"topics":["bootstrap-panel","panel","widget","yii2-panel"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/derekisbusy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-23T17:11:44.000Z","updated_at":"2023-01-30T11:43:52.000Z","dependencies_parsed_at":"2022-08-21T10:20:59.686Z","dependency_job_id":null,"html_url":"https://github.com/derekisbusy/yii2-panel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekisbusy%2Fyii2-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekisbusy%2Fyii2-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekisbusy%2Fyii2-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekisbusy%2Fyii2-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derekisbusy","download_url":"https://codeload.github.com/derekisbusy/yii2-panel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225316320,"owners_count":17455232,"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":["bootstrap-panel","panel","widget","yii2-panel"],"created_at":"2024-11-19T08:13:24.071Z","updated_at":"2024-11-19T08:13:24.903Z","avatar_url":"https://github.com/derekisbusy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-panel\n[![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)](https://github.com/derekisbusy/yii2-panel/blob/master/LICENSE.md)\n[![Packagist](https://img.shields.io/packagist/dt/derekisbusy/yii2-panel.svg)](https://packagist.org/packages/derekisbusy/yii2-panel)\n\n\nCollapsable Bootstrap panel widget.\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\n$ composer require derekisbusy/yii2-panel \"dev-master\"\n```\n\nor add\n\n```\n\"derekisbusy/yii2-panel\": \"dev-master\"\n```\n\nto the ```require``` section of your `composer.json` file then run composer update.\n\n## Options\n - **title**    title displayed in the head section of the panel\n \n - **content**  content displayed in the body section of the panel. Only use if using widget() method.\n \n - **footer** content displayed in the footer section of the panel.\n \n - **type** style to be applied to the panel.\n  * info\n  * default\n  * danger\n  * primary\n  * success\n  \n- **collapsable** whether the panel is collapsable.\n\n- **collapse** whether or not the panel is collapsed.\n\n- **widget** whether or not to include javascript. Can be used to disable javascript if using as style element only.\n\n## Examples\n\n### Basic Example\n```php\nuse derekisbusy\\panel\\PanelWidget;\necho PanelWidget::widget([\n    'collapse'=\u003etrue,\n    'title'=\u003e'My Panel',\n    'content'=\u003e'...',\n    'footer'=\u003e'footer content'\n    ])\n]);\n```\n\n### Style Only\nIf you only need to create HTML for bootstrap panel and don't need any js functionality set widget to false.\n```php\nuse derekisbusy\\panel\\PanelWidget;\n\necho PanelWidget::begin([\n    'title'=\u003e'My Panel',\n    'widget'=\u003efalse, // no js included (ie. style only)\n    'footer'=\u003e'footer content'\n]);\n\n// the body\n\nPanelWidget::end();\n```\n\n### Example with Form Widget\n\n```php\nuse derekisbusy\\panel\\PanelWidget;\n\necho PanelWidget::begin([\n    'title'=\u003e$title,\n    'widget'=\u003efalse,\n    'footer'=\u003eHtml::submitButton($model-\u003eisNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' =\u003e $model-\u003eisNewRecord ? 'btn btn-success' : 'btn btn-primary'])\n]);\n\n// the form\n\nPanelWidget::end();\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekisbusy%2Fyii2-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderekisbusy%2Fyii2-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekisbusy%2Fyii2-panel/lists"}