Download the PHP package nedarta/yii2-extended-navbar without Composer
On this page you can find all versions of the php package nedarta/yii2-extended-navbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nedarta/yii2-extended-navbar
More information about nedarta/yii2-extended-navbar
Files in nedarta/yii2-extended-navbar
Download nedarta/yii2-extended-navbar
More information about nedarta/yii2-extended-navbar
Files in nedarta/yii2-extended-navbar
Vendor nedarta
Package yii2-extended-navbar
Short Description An extended NavBar widget for Yii2 with support for external items and Bootstrap 5.
License MIT
Package yii2-extended-navbar
Short Description An extended NavBar widget for Yii2 with support for external items and Bootstrap 5.
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-extended-navbar
Yii2 Extended NavBar Widget
nedarta/yii2-extended-navbar provides an extended Bootstrap 5 NavBar for Yii2 with support for rendering additional navigation items outside the collapsible container.
Features
- Built on top of
yii\bootstrap5\NavBar - Render extra items outside the collapse area (
externalItems) - Configure extra items as a plain array or full
Nav::widget()config (externalItemsArray) - Control whether extra items appear before or after the toggle button (
externalItemsPosition) - Optional active route highlighting for array-based external items (
highlightActiveItems)
Installation
Basic Usage
Array-Based External Items
You can also pass externalItemsArray as a plain list of items; it will be wrapped as:
Configuration
| Property | Type | Default | Description |
|---|---|---|---|
externalItems |
string |
'' |
Pre-rendered HTML rendered outside the collapse container. |
externalItemsArray |
array |
[] |
External items config. Accepts either a plain item list or full Nav::widget() config. |
externalItemsPosition |
string |
'before' |
Position of external items relative to toggle button: 'before' or 'after'. |
highlightActiveItems |
bool |
true |
Sets activateItems for array-based external items rendering. |
Notes
externalItemsArraytakes precedence overexternalItemswhen both are set.- Invalid
externalItemsPositionvalues throwyii\base\InvalidConfigException.
Contributing
- Fork the repository.
- Create a feature branch (
git checkout -b feature/my-change). - Commit your changes.
- Push your branch.
- Open a Pull Request.
License
This project is licensed under the MIT License. See LICENSE.
All versions of yii2-extended-navbar with dependencies
PHP Build Version
Package Version
The package nedarta/yii2-extended-navbar contains the following files
Loading the files please wait ...