-
Notifications
You must be signed in to change notification settings - Fork 130
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
Use with google icon fonts #63
Comments
Up. |
Is it possible to use with Font-Awesome library? |
You can create your own template and set it to "template-url".
$templateCache.put('custom-fam-template.html',
'<ul class="mfb-component--{{position}} mfb-{{effect}}"' +
' data-mfb-toggle="{{togglingMethod}}" data-mfb-state="{{menuState}}">' +
' <li class="mfb-component__wrap">' +
' <a ng-click="clicked()" ng-mouseenter="hovered()" ng-mouseleave="hovered()"' +
' ng-attr-data-mfb-label="{{label}}" class="mfb-component__button--main">' +
' <i class="mfb-component__main-icon--resting material-icons" style="font-size: 24px">{{resting}}</i>' +
' <i class="mfb-component__main-icon--active material-icons" style="font-size: 24px">{{active}}</i>' +
' </a>' +
' <ul class="mfb-component__list" ng-transclude>' +
' </ul>' +
'</li>' +
'</ul>');
$templateCache.put('custom-fab-child-template.html',
'<li>' +
' <a data-mfb-label="{{label}}" class="mfb-component__button--child>' +
' <i class="mfb-component__child-icon material-icons" style="font-size: 24px">{{icon}}</i>' +
' </i>' +
' </a>' +
'</li>'); and in HTML: <nav mfb-menu position="br" template-url="custom-fam-template.html" effect="zoomin" active-icon="clear" resting-icon="more_vert" toggling-method="click">
<mfb-button icon="favorite" label="Favorite" ng-click="vm.foo()" mfb-button-close template-url="custom-fab-child-template.html"></mfb-button>
</nav> |
@pcsantana Good solution. There is one small typo:
should be
i.e., there is a missing double quotation mark. |
Is it possible to use with Google Icon Fonts, as follows:
<i class="material-icons">menu</i>
in order to show for example, menu (hamburguer) icon?
The text was updated successfully, but these errors were encountered: