{"id":15964448,"url":"https://github.com/lesha724/yii2-bootstrap-tree","last_synced_at":"2025-03-17T22:30:39.935Z","repository":{"id":57014113,"uuid":"81207775","full_name":"lesha724/yii2-bootstrap-tree","owner":"lesha724","description":"yii2 widget for   bootstrap tree ( https://github.com/patternfly/patternfly-bootstrap-treeview )","archived":false,"fork":false,"pushed_at":"2019-07-30T12:06:18.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T05:25:33.615Z","etag":null,"topics":["bootstrap","bootstrap-tree","bootstrap-treeview","tree","treeview","widget","yii2","yii2-bootstrap-tree","yii2-extension","yii2-widgets"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lesha724.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-07T12:51:53.000Z","updated_at":"2018-01-19T10:56:17.000Z","dependencies_parsed_at":"2022-08-21T14:50:31.373Z","dependency_job_id":null,"html_url":"https://github.com/lesha724/yii2-bootstrap-tree","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesha724%2Fyii2-bootstrap-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesha724%2Fyii2-bootstrap-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesha724%2Fyii2-bootstrap-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesha724%2Fyii2-bootstrap-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lesha724","download_url":"https://codeload.github.com/lesha724/yii2-bootstrap-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243886526,"owners_count":20363747,"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","bootstrap-tree","bootstrap-treeview","tree","treeview","widget","yii2","yii2-bootstrap-tree","yii2-extension","yii2-widgets"],"created_at":"2024-10-07T17:01:57.132Z","updated_at":"2025-03-17T22:30:39.683Z","avatar_url":"https://github.com/lesha724.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"yii2-bootstrap-tree\n===================\nWidget for [bootstrap-treeview](https://github.com/patternfly/patternfly-bootstrap-treeview)\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist lesha724/yii2-bootstrap-tree \"*\"\n```\n\nor add\n\n```\n\"lesha724/yii2-bootstrap-tree\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\n\nUsage\n-----\n\nOnce the extension is installed, simply use it in your code by  :\n\n```php\n\n\u003c?php\n// Example of data. $items structure https://github.com/patternfly/patternfly-bootstrap-treeview#data-structure\n$items = [\n    [\n        'text' =\u003e 'Node 1'\n        'icon' =\u003e \"glyphicon glyphicon-stop\",\n        'selectedIcon' =\u003e \"glyphicon glyphicon-stop\",\n        'href' =\u003e \"#node-1\",\n        'selectable' =\u003e true,\n        'state' =\u003e [\n            'checked' =\u003e true,\n            'disabled' =\u003e true,\n            'expanded' =\u003e true,\n            'selected' =\u003e true\n        ],\n        'tags' =\u003e ['available'],\n        ...,\n        'nodes'=\u003e\n        [\n            ...\n        ]\n    ],\n    [\n        'text' =\u003e 'Folder 2',\n        'nodes' =\u003e [\n            ['text' =\u003e 'Node 2.1'],\n            ['text' =\u003e 'Node 2.2']\n        ]\n    ]\n];\n?\u003e\n\n\u003c?= \\lesha724\\bootstraptree\\TreeView::widget([\n    'htmlOptions'=\u003e[\n                'id'=\u003e'treeview-tabs'\n    ],\n    'options'=\u003e[\n\t\t//https://github.com/patternfly/patternfly-bootstrap-treeview#options\n        'data'=\u003e$items,\n        'enableLinks'=\u003etrue,\n        'showTags'=\u003etrue,\n        'levels'=\u003e3\n    ],\n    'events'=\u003e[\n\t\t//https://github.com/patternfly/patternfly-bootstrap-treeview#events\n        'onNodeSelected'=\u003e'function(event, data) {\n            // Your logic goes here\n            alert(data.href);\n        }'\n    ]\n]); ?\u003e\n```\n\nLinks\n-----\n* [items structure](https://github.com/patternfly/patternfly-bootstrap-treeview#data-structure)\n* [widget options](https://github.com/patternfly/patternfly-bootstrap-treeview#options)\n* [js events](https://github.com/patternfly/patternfly-bootstrap-treeview#events)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesha724%2Fyii2-bootstrap-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesha724%2Fyii2-bootstrap-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesha724%2Fyii2-bootstrap-tree/lists"}