{"id":22692892,"url":"https://github.com/mgrechanik/gridviewfilterfix","last_synced_at":"2026-02-18T04:33:40.009Z","repository":{"id":267271140,"uuid":"900728921","full_name":"mgrechanik/gridviewfilterfix","owner":"mgrechanik","description":"Fixing yii2 gridview  filter functionality to work with Bootstrap 4 and Bootstrap 5","archived":false,"fork":false,"pushed_at":"2024-12-11T05:13:52.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T19:56:13.167Z","etag":null,"topics":["bootstrap4","bootstrap5","filter","gridview","yii2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgrechanik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-09T11:12:53.000Z","updated_at":"2024-12-11T05:13:56.000Z","dependencies_parsed_at":"2025-04-12T07:28:09.078Z","dependency_job_id":null,"html_url":"https://github.com/mgrechanik/gridviewfilterfix","commit_stats":null,"previous_names":["mgrechanik/gridviewfilterfix"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mgrechanik/gridviewfilterfix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgrechanik%2Fgridviewfilterfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgrechanik%2Fgridviewfilterfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgrechanik%2Fgridviewfilterfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgrechanik%2Fgridviewfilterfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgrechanik","download_url":"https://codeload.github.com/mgrechanik/gridviewfilterfix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgrechanik%2Fgridviewfilterfix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29568561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T04:18:28.490Z","status":"ssl_error","status_checked_at":"2026-02-18T04:13:49.018Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bootstrap4","bootstrap5","filter","gridview","yii2"],"created_at":"2024-12-10T02:08:18.187Z","updated_at":"2026-02-18T04:33:34.997Z","avatar_url":"https://github.com/mgrechanik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fix for Yii2 GridView filter functionality to work properly with Bootstrap 4 and Bootstrap 5\n\n## What is it about? \u003cspan id=\"demo\"\u003e\u003c/span\u003e\n\nWhen you are using Yii2 default GridView you might meet a problem that validation errors for filter model are not displayed properly, like this:\n\n![Fix for Yii2 GridView DataColumn for filter validational errors to be properly shown with bootstrap 4 and 5](https://raw.githubusercontent.com/mgrechanik/gridviewfilterfix/refs/heads/main/docs/yii2-gridview-filter-fix-for-bootstrap4-and-5.png \"Fix for Yii2 GridView DataColumn for filter validational errors to be properly shown with bootstrap 4 and 5\")\n\n## Installing \u003cspan id=\"installing\"\u003e\u003c/span\u003e\n\n#### Installing through composer::\n\nThe preferred way to install this library is through composer.\n\nEither run\n```\ncomposer require --prefer-dist mgrechanik/gridviewfilterfix\n```\n\nor add\n```\n\"mgrechanik/gridviewfilterfix\" : \"~1.0.0\"\n```\nto the require section of your `composer.json`.\n\n## How to use  \u003cspan id=\"use\"\u003e\u003c/span\u003e \n\nAdd the following lines of code to your main configuration file:\n1) For Bootstrap 4\n```php\n    'container' =\u003e [\n        'definitions' =\u003e [\n            \\yii\\grid\\GridView::class =\u003e [\n                'dataColumnClass' =\u003e \\mgrechanik\\gridviewfilterfix\\Bs4DataColumn::class\n            ]\n        ]\n    ],\n```\n\n\n2) For Bootstrap 5\n```php\n    'container' =\u003e [\n        'definitions' =\u003e [\n            \\yii\\grid\\GridView::class =\u003e [\n                'dataColumnClass' =\u003e \\mgrechanik\\gridviewfilterfix\\Bs5DataColumn::class\n            ]\n        ]\n    ],\n```\n\n\n## Similar problems with Forms or GridView and Bootstrap 4 / 5\n\n#### Paginator does not look good  \u003cspan id=\"paginator problem\"\u003e\u003c/span\u003e\n\nSolution:\n\n```php\n    'container' =\u003e [\n        'definitions' =\u003e [\n            \\yii\\widgets\\LinkPager::class =\u003e \\yii\\bootstrap5\\LinkPager::class,\n        ],\n    ],\n```\n\n#### Error block under field is now shown, after failed validation, since this block is not at the same level with input.is-invalid\n\nThere is a [library](https://github.com/mgrechanik/yii2-activefield-additional-error \"Solve problem when invalid-feedback block is not visible for bootstrap in Yii2\") to solve this problem\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgrechanik%2Fgridviewfilterfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgrechanik%2Fgridviewfilterfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgrechanik%2Fgridviewfilterfix/lists"}