Skip to content

Commit 1e07ee4

Browse files
committed
change jonmiles to patternfly
1 parent df27dda commit 1e07ee4

File tree

3 files changed

+6
-39
lines changed

3 files changed

+6
-39
lines changed

README.md

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
yii2-bootstrap-tree
22
===================
3-
Widget for [bootstrap-treeview](https://github.com/jonmiles/bootstrap-treeview)
3+
Виджет основыный на [bootstrap-treeview](https://github.com/patternfly/patternfly-bootstrap-treeview)
44

55
Installation
66
------------
@@ -28,52 +28,17 @@ Usage
2828
Once the extension is installed, simply use it in your code by :
2929

3030
```php
31-
32-
<?php
33-
// Example of data. $items structure https://github.com/jonmiles/bootstrap-treeview#data-structure
34-
$items = [
35-
[
36-
'text' => 'Node 1'
37-
'icon' => "glyphicon glyphicon-stop",
38-
'selectedIcon' => "glyphicon glyphicon-stop",
39-
'href' => "#node-1",
40-
'selectable' => true,
41-
'state' => [
42-
'checked' => true,
43-
'disabled' => true,
44-
'expanded' => true,
45-
'selected' => true
46-
],
47-
'tags' => ['available'],
48-
...,
49-
'nodes'=>
50-
[
51-
...
52-
]
53-
],
54-
[
55-
'text' => 'Folder 2',
56-
'nodes' => [
57-
['text' => 'Node 2.1'],
58-
['text' => 'Node 2.2']
59-
]
60-
]
61-
];
62-
?>
63-
6431
<?= \lesha724\bootstraptree\TreeView::widget([
6532
'htmlOptions'=>[
6633
'id'=>'treeview-tabs'
6734
],
6835
'options'=>[
69-
//https://github.com/jonmiles/bootstrap-treeview#options
7036
'data'=>$items,
7137
'enableLinks'=>true,
7238
'showTags'=>true,
7339
'levels'=>3
7440
],
7541
'events'=>[
76-
//https://github.com/jonmiles/bootstrap-treeview#events
7742
'onNodeSelected'=>'function(event, data) {
7843
// Your logic goes here
7944
alert(data.href);

TreeViewAsset.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
class TreeViewAsset extends AssetBundle
1515
{
1616
public static $customCss = null;
17-
public $sourcePath = '@bower/bootstrap-treeview/dist';
17+
18+
public $sourcePath = '@bower/patternfly-bootstrap-treeview/dist';
1819

1920

2021
public $css = [

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "lesha724/yii2-bootstrap-tree",
3-
"description": "Виджет основаный на bootstrap-treeview (https://github.com/jonmiles/bootstrap-treeview)",
3+
"description": "Виджет основаный на bootstrap-treeview",
44
"type": "yii2-extension",
55
"keywords": ["yii2","extension","bootstrap","tree","widget","treeview"],
6+
"homepage": "https://github.com/lesha724/yii2-bootstrap-tree",
67
"license": "MIT",
78
"authors": [
89
{
@@ -12,7 +13,7 @@
1213
],
1314
"require": {
1415
"yiisoft/yii2": "*",
15-
"bower-asset/bootstrap-treeview": "@dev"
16+
"bower-asset/patternfly-bootstrap-treeview": "^2.1"
1617
},
1718
"autoload": {
1819
"psr-4": {

0 commit comments

Comments
 (0)