Skip to content

Commit

Permalink
Updates to release v1.2.3"
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Sep 19, 2018
1 parent b1af977 commit f94d9bb
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log: `yii2-nav-x`
========================

## Version 1.2.3

**Date:** 19-Sep-2018

- Correct README for dependencies.

## Version 1.2.2

**Date:** 19-Sep-2018
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,33 @@ You can see detailed [documentation](http://demos.krajee.com/nav-x) on usage of

## Installation

Install the dependencies depending on the Bootstrap version used in your app:

1. For Bootstrap 3.x install `kartik-v/yii2-dropdown-x`

```
$ php composer.phar require kartik-v/yii2-dropdown-x "@dev"
```

2. For Bootstrap 4.x install `kartik-v/yii2-bootstrap4-dropdown`
```
$ php composer.phar require kartik-v/yii2-bootstrap4-dropdown "@dev"
```

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

> NOTE: Check the [composer.json](https://github.com/kartik-v/yii2-nav-x/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.
Either run

```
$ php composer.phar require kartik-v/yii2-nav-x "dev-master"
$ php composer.phar require kartik-v/yii2-nav-x "@dev"
```

or add

```
"kartik-v/yii2-nav-x": "dev-master"
"kartik-v/yii2-nav-x": "@dev"
```

to the ```require``` section of your `composer.json` file.
Expand Down
13 changes: 1 addition & 12 deletions src/NavX.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2018
* @package yii2-nav-x
* @version 1.2.2
* @version 1.2.3
*/

namespace kartik\nav;
Expand Down Expand Up @@ -80,17 +80,6 @@ class NavX extends Widget
*/
public $dropdownOptions = [];

/**
* @inheritdoc
*/
public function init()
{
if (!class_exists($this->dropdownClass)) {
throw new InvalidConfigException("The dropdownClass '{$this->dropdownClass}' was not found. Please ensure the '{$this->dropdownClass}' extension is installed and accessible.");
}
parent::init();
}

/**
* @inheritdoc
*/
Expand Down
12 changes: 11 additions & 1 deletion src/NavXBs3.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2018
* @package yii2-nav-x
* @version 1.2.2
* @version 1.2.3
*/

namespace kartik\nav;
Expand All @@ -24,4 +24,14 @@ class NavXBs3 extends Nav
* @var string the class name to render the Dropdown items. Defaults to `\kartik\dropdown\DropdownX`.
*/
public $dropdownClass = 'kartik\dropdown\DropdownX';

/**
* @inheritdoc
* @throws InvalidConfigException
*/
public function init()
{
$this->checkDependency();
parent::init();
}
}
12 changes: 11 additions & 1 deletion src/NavXBs4.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2018
* @package yii2-nav-x
* @version 1.2.2
* @version 1.2.3
*/

namespace kartik\nav;
Expand All @@ -24,4 +24,14 @@ class NavXBs4 extends Nav
* @var string the class name to render the Dropdown items. Defaults to `\kartik\dropdown\DropdownX`.
*/
public $dropdownClass = 'kartik\bs4dropdown\Dropdown';

/**
* @inheritdoc
* @throws InvalidConfigException
*/
public function init()
{
$this->checkDependency();
parent::init();
}
}
2 changes: 1 addition & 1 deletion src/NavXTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2018
* @package yii2-nav-x
* @version 1.2.2
* @version 1.2.3
*/

namespace kartik\nav;
Expand Down

0 comments on commit f94d9bb

Please sign in to comment.