Skip to content

Commit 3bb4f51

Browse files
committed
Merge pull request mgcrea#217 from francisl/master
feat(modal): added possibilities to have icons in dropdown list
2 parents e3273e9 + 5102da0 commit 3bb4f51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/directives/dropdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ angular.module('$strap.directives')
1010
if(item.divider) return ul.splice(index + 1, 0, '<li class="divider"></li>');
1111
var li = '<li' + (item.submenu && item.submenu.length ? ' class="dropdown-submenu"' : '') + '>' +
1212
'<a tabindex="-1" ng-href="' + (item.href || '') + '"' + (item.click ? '" ng-click="' + item.click + '"' : '') + (item.target ? '" target="' + item.target + '"' : '') + (item.method ? '" data-method="' + item.method + '"' : '') + '>' +
13+
(item.icon && '<i class="' + item.icon + '"></i>&nbsp;' || '') +
1314
(item.text || '') + '</a>';
1415
if(item.submenu && item.submenu.length) li += buildTemplate(item.submenu).join('\n');
1516
li += '</li>';

0 commit comments

Comments
 (0)