this is already supported: https://github.com/yiisoft/yii2/blob/master/extensions/bootstrap/Nav.php#L32