Class dmitrybtn\yimp\widgets\Menu
Inheritance | dmitrybtn\yimp\widgets\Menu » yii\bootstrap4\Nav |
---|
Extension of yii\bootstrap4\Nav, providing some additional functionality.
The following functionality is provided:
- Generate item as a
<span>
tag if it'surl
property is not set. - Config default HTML attributes for all items.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$linkOptions | array | The HTML attributes, used if item linkOptions is not set. |
dmitrybtn\yimp\widgets\Menu |
Public Methods
Method | Description | Defined By |
---|---|---|
renderItem() | Overrides yii\bootstrap4\Nav::renderItem to work with items with empty url. | dmitrybtn\yimp\widgets\Menu |
Property Details
The HTML attributes, used if item linkOptions
is not set.
Method Details
Overrides yii\bootstrap4\Nav::renderItem to work with items with empty url.
public array|string renderItem ( $sttItem ) | ||
$sttItem | array|string | |
throws | \yii\base\InvalidConfigException |
---|