Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SideNav.php missing link options custom configuration #111

Closed
disem opened this issue Jul 17, 2014 · 1 comment
Closed

SideNav.php missing link options custom configuration #111

disem opened this issue Jul 17, 2014 · 1 comment

Comments

@disem
Copy link
Contributor

disem commented Jul 17, 2014

How about adding possibility to adjust linkTemplate from items array?

$template = ArrayHelper::getValue($item, 'template', $this->linkTemplate);
            return strtr($template, [
                '{url}' => Url::to($item['url']),
                '{label}' => $item['label'],
            ]);

as in parent Menu widget. This can help us with adding options like data-pjax=0
Or add htmlOptions support to fill link with some custom stuff.

@kartik-v
Copy link
Owner

Resolved via latest commit (upgrade to release v2.7.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants